tubajedimr
New Member
- Joined
- Apr 6, 2010
- Messages
- 441
- Reaction score
- 24
Useful Gossip Macros
Hey guys. Well again, a wonderful macro useage, thanks in all to axazol for his RunMacro.CS
This macro is used when TalkToAndListenToStory will do so but get stuck in a frame where it has to say Goodbye and would rather just stand there for eternity. An example of this would be quest "The New You" in Kezan, where you talk to and listen to story but it will stand and wait on the last screen.
Instead of using:
Use:
Notice we did have to include an "InteractWith", otherwise the bot won't know where to go for the macro and will just move on to the next step.
In addition this must be done with each NPC given in the original TalkToAndListenToStory scripting.
Other uses:
You can also specify in the macro which gossip option
If there's multiple lines they are indeed numbered 1, 2, 3, etc...
This should be very useful for some people.
This can also be done in perpetuity.
Notice:
In the RunMacro CB this would look like this:
The WaitTime in milliseconds gives you the option to let it stand there before performing the next macro. This give the computer time to react. This is useful for lag situations as well where it may not immediately react.
More Macro Gossip Functions
Simply add "/script " (without quotes) to the front of any macro line:
CloseGossip() - Dismiss the gossip window.
ForceGossip() - Returns whether the gossip text must be displayed. (New: 3.3.3)
GetGossipActiveQuests() - Retrieves a list of the active (?) quests on the NPC you are talking to.
GetGossipAvailableQuests() - Retrieves a list of the available (!) quests on the NPC you are talking to.
GetGossipOptions() - Retrieves a list of the available gossip items on the NPC you are talking to.
GetGossipText() - Retrieves the gossip text.
GetNumGossipActiveQuests() - Returns the number of active quests that you should eventually turn in to this NPC.
GetNumGossipAvailableQuests() - Returns the number of quests (that you are not already on) offered by this NPC.
GetNumGossipOptions() - Returns the number of conversation options available with this NPC.
SelectGossipActiveQuest(index) - Selects an active quest.
SelectGossipAvailableQuest(index) - Selects an available quest.
SelectGossipOption(index) - Selects on a gossip item.
For a complete list of all World of Warcraft API/LUA Functions click here.
Hey guys. Well again, a wonderful macro useage, thanks in all to axazol for his RunMacro.CS
This macro is used when TalkToAndListenToStory will do so but get stuck in a frame where it has to say Goodbye and would rather just stand there for eternity. An example of this would be quest "The New You" in Kezan, where you talk to and listen to story but it will stand and wait on the last screen.
Instead of using:
PHP:
<CustomBehavior File="TalkToAndListenToStory" QuestId="14110" NpcIds="35126 35128 35130" />
Use:
PHP:
<If Condition="HasQuest(14110)">
<CustomBehavior File="InteractWith" QuestId="14110" MobId="35128" NumOfTimes="1" CollectionDistance="10" ObjectType="Npc" X="-8231.323" Y="1620.245" Z="34.7084" />
<CustomBehavior File="RunMacro" Macro="/script SelectGossipOption(1)\n/script CloseGossip()" NumOfTimes="1" WaitTime="1000" /></If>
Notice we did have to include an "InteractWith", otherwise the bot won't know where to go for the macro and will just move on to the next step.
In addition this must be done with each NPC given in the original TalkToAndListenToStory scripting.
Other uses:
You can also specify in the macro which gossip option
PHP:
/script SelectGossipOption(1)
If there's multiple lines they are indeed numbered 1, 2, 3, etc...
This should be very useful for some people.
This can also be done in perpetuity.
Notice:
PHP:
/script SelectGossipOption(1)
/script SelectGossipOption(4)
/script SelectGossipOption(3)
/script SelectGossipOption(1)
/script CloseGossip()
In the RunMacro CB this would look like this:
PHP:
<CustomBehavior File="RunMacro" Macro="/script SelectGossipOption(1)\n/script SelectGossipOption(4)\n/script SelectGossipOption(3)\n/script SelectGossipOption(1)\n/script CloseGossip()" NumOfTimes="1" WaitTime="1000" />
The WaitTime in milliseconds gives you the option to let it stand there before performing the next macro. This give the computer time to react. This is useful for lag situations as well where it may not immediately react.
More Macro Gossip Functions
Simply add "/script " (without quotes) to the front of any macro line:
CloseGossip() - Dismiss the gossip window.
ForceGossip() - Returns whether the gossip text must be displayed. (New: 3.3.3)
GetGossipActiveQuests() - Retrieves a list of the active (?) quests on the NPC you are talking to.
GetGossipAvailableQuests() - Retrieves a list of the available (!) quests on the NPC you are talking to.
GetGossipOptions() - Retrieves a list of the available gossip items on the NPC you are talking to.
GetGossipText() - Retrieves the gossip text.
GetNumGossipActiveQuests() - Returns the number of active quests that you should eventually turn in to this NPC.
GetNumGossipAvailableQuests() - Returns the number of quests (that you are not already on) offered by this NPC.
GetNumGossipOptions() - Returns the number of conversation options available with this NPC.
SelectGossipActiveQuest(index) - Selects an active quest.
SelectGossipAvailableQuest(index) - Selects an available quest.
SelectGossipOption(index) - Selects on a gossip item.
For a complete list of all World of Warcraft API/LUA Functions click here.
Attachments
Last edited: