What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Userdialog to query and print string in active text window.

DocTalbuk

Community Developer
Joined
Jan 7, 2015
Messages
578
Reaction score
13
Hey,

I am currently working with someone on a profile that needs the following function:

It needs to enter a string into a text box inside a dialog window with an NPC. I already have the interaction with the npc to get to the part where a text needs to be entered.
I am pretty much a beginner at this and cant find the right command for this. I tried, runmacro, lua print command, sendmessage, postmessage. I cant seem to get it working. It will only type it in chat or give me errors.

Ideally, there would be a user dialog opening, asking the user to type in the name of the guild, or the profile pauses until the user has input the text, clicked the button and has received the item.

Heres the code where i need it implemented:

Code:
<While Condition="Me.Gold &gt; 10">

<CustomBehavior File="NoCombatMoveTo" X="-8888.056" Y="606.1039" Z="95.25863" />
<CustomBehavior File="InteractWith" WaitTime="2000" NumOfTimes="1" WaitForNpcs="false" MobId="4974" />
<CustomBehavior File="Misc\RunLua" Lua="GossipTitleButton1:Click()" WaitTime="2000" />
<CustomBehavior File="Misc\RunLua" Lua="GuildRegistrarButton1:Click()" WaitTime="2000" />
QUERY FOR STRING AND ENTER IN INGAME TEXT BOX HERE  
<CustomBehavior File="Misc\RunLua" Lua="GuildRegistrarFramePurchaseButton:Click()" WaitTime="2000" />
</While>


2nd Question:

I tried to make this macro command to enable postal addon:

Code:
<CustomBehavior File=RunMacro" Macro="/run EnableAddOn("Postal"); ReloadUI()" WaitTime= "200" />

Here I get the error:
"Postal" Is an unexpected Token.

Why doesnt this work?
 
Last edited:
Back
Top