Thread Tools Display Modes
07-15-10, 07:34 PM   #1
evilentity
A Defias Bandit
Join Date: Jul 2010
Posts: 3
Could use some help with new addon

So ive got tired of manually creating all my mount macros so i decided to fix it in simplest way possible. By writing my own addon of course! Sadly im strange to LUA and WoW api thingies... I can code in C++/pascal such things so playing with lua or xml is not that hard. Just that bloody wow api. Ive been reading wowwiki for most of the time. Search engine is just bad there. Cant find nothing.

So. My addon can make working macro however i have problem with adding current names/IDs to use.

Theres CallCompanion( type,id) but i have trouble getting correct id without manually typing it in. Theres this call that outputs spellid and creature ids but i cant seem to use them in any way. Ideally Id like to just drag icon from companion panel to add it or even better create my own list of mounts sorted by ground/flying type.

I dunno if thats possible with current API so dont kill me

Also in threads ive read people tend to use lua exclusively for everything is there any reason for that?

Thanks in advance!
  Reply With Quote
07-15-10, 10:46 PM   #2
Elhana
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 51
This:
http://www.wowwiki.com/API_GetNumCompanions
http://www.wowwiki.com/API_GetCompanionInfo
http://www.wowwiki.com/API_CallCompanion
  Reply With Quote
07-16-10, 07:45 AM   #3
evilentity
A Defias Bandit
Join Date: Jul 2010
Posts: 3
Thanks for reply!

Ive seen those, but im not really sure how to use those. Are you suggesting to make table with all mounts and just use that to get correct number? That would make sense I guess...

Also do you know how to make my editbox get filled with name when i shift click ability?
  Reply With Quote
07-16-10, 08:07 AM   #4
d87
A Chromatic Dragonspawn
 
d87's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 163
Take this as example
http://www.wowinterface.com/download...-NugMount.html
  Reply With Quote
07-16-10, 06:49 PM   #5
evilentity
A Defias Bandit
Join Date: Jul 2010
Posts: 3
Originally Posted by d87 View Post
Thats very helpful thanks!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Could use some help with new addon


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off