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

help me with basic coding

churobot

New Member
Joined
Dec 21, 2011
Messages
168
Reaction score
1
View attachment enchant test.xml

hi guys,

what have i done wrong in my coding, trying to overwrite the replace enchant button but my coding seems horribly wrong

PS i am relatively noob at coding, just trying to build an enchant script
 
Like I said in the PM you sent me:
Replace:
PHP:
<CustomAction Code="Lua.DoString(&quot;click (StaticPopUp1Button1)&quot;);" />
With:
PHP:
<CustomAction Code="Lua.DoString(&quot;RunMacroText(\&quot;/click StaticPopup1Button1\&quot;)&quot;);" />
 
Please note that the quotes "inside" the CustomAction Code has to be written like &quot; (the forum turns it into quotes automatically, but you can quote this message to get the real code that can be copy-pasted) and there's also a shorter version of the code to click the button here:
PHP:
<CustomAction Code="Lua.DoString(&quot;StaticPopup1Button1:Click()&quot;);" />
 
Last edited:
thank.....but still no cigar

View attachment help me.xml

have inserted my latest attempt here....was wondering if somebody could make the necessary edits so i could get cranking on an enchanting script

if i can get this one line to work...and press yes to the dialog box i will be on my way!

ur last post was blank,couldnt see the script but appreciate your time
 
Yea it wasn't blank, it's just the forums that can't show some profile tags properly. If you quote my msg you can see the code snippet.
 
I just saw your other thread, so instead of clicking a static button you can just write this into the custom action field:
PHP:
Lua.DoString("ReplaceEnchant()");
and that should be enough.
 
Back
Top