Asmodei
25-03-2006, 09:41 PM
I'm trying to make my first mod, and having no experience with lua or xml, its a little tricky.
Here is what the mod will do.
User logs in, loads mods.
Opens mod window, and Profession window.
Shift-click on item adds the item to the mod database. GetTradeSkillItemLink(index)
Duplicate items (items already in mod database) are not stored twice. (Unique itemID used as Primary key)
Mod window shows the list of items stored.
Items can be removed from the list.
Items can have a short comment next to them, which will be output with the item. (Text field in item DB)
Macro is set with /nameofmod
Macro is placed on the actionbar.
When the macro is run, the mod:
Detects the chat channels received by the chatwindow
If Trade - City is present, mod continues. If not, it stops, and prompts user. GetChatWindowChannels(index)
Items in mod database are listed, one per line.
ItemLink, comment.
ItemLink, comment.
ItemLink, comment.
The idea for this mod is simply to link the items that crafters normally advertise in macros. I know it is possible to link items in macros, but you are limited to about 4-5 links, due to the 255 character limit. When you are trying to advertise 9 or 10 items, it is frustrating.
If the basic functions are in, then I can work on the tweaks later.
These include being able to re-order the list, and being able to have the first line of output as a comment by the User.
Any ideas on how to do this? I'll keep editing as I find functions I think will help.
Here is what the mod will do.
User logs in, loads mods.
Opens mod window, and Profession window.
Shift-click on item adds the item to the mod database. GetTradeSkillItemLink(index)
Duplicate items (items already in mod database) are not stored twice. (Unique itemID used as Primary key)
Mod window shows the list of items stored.
Items can be removed from the list.
Items can have a short comment next to them, which will be output with the item. (Text field in item DB)
Macro is set with /nameofmod
Macro is placed on the actionbar.
When the macro is run, the mod:
Detects the chat channels received by the chatwindow
If Trade - City is present, mod continues. If not, it stops, and prompts user. GetChatWindowChannels(index)
Items in mod database are listed, one per line.
ItemLink, comment.
ItemLink, comment.
ItemLink, comment.
The idea for this mod is simply to link the items that crafters normally advertise in macros. I know it is possible to link items in macros, but you are limited to about 4-5 links, due to the 255 character limit. When you are trying to advertise 9 or 10 items, it is frustrating.
If the basic functions are in, then I can work on the tweaks later.
These include being able to re-order the list, and being able to have the first line of output as a comment by the User.
Any ideas on how to do this? I'll keep editing as I find functions I think will help.