Would have a set of defined commands to start and stop teaching based upon tells. Also trying to change languages 2-25 depending on which language I want to learn.
I am having some issues when trying /gsay wanting to send the text in the current language.
I issue say in tell Lang15 the bot changed his language to Goblin<15>
Next issue Teach where the "/gsay this is a test" is issued.
The text from /gsay appears in common instead of goblin any ideas?
Is there a way to /click left on a Hotkey bank button?
Here is inital code:
Code: Select all
#define MasterName v50
#define RelayTell v74
#chat tell
Sub Main
/if n $strlen("$p0")<=0 {
/echo Usage: /macro generic <Master Name>
/endmacro
}
/varset MasterName $p0
/varset RelayTell 1
/tell $MasterName What is thy bidding my master?
:MainLoop
/doevents
/delay 5
/goto :MainLoop
/return
Sub Event_Chat
/if "$MasterName"=="$p1" {
/if $arg(1,"$p2")==Teach {
/gsay This is a test
}
/if $arg(1,"$p2")==Lang15 {
/lang 15
/reply I am now teaching Goblin
}
else {
/if n $RelayTell==1 /tell $MasterName $p1 told me: $p2
}
/return


