DO Command on PM
Posted: 02 Nov 2008, 23:57
This macro was based on Do command from pm by windows98SE@thaikore on the old forums.
This macro will let a bot do a certain Do Command on a PM when the sender is on the list of allowed players.
This is useful in using bots while playing non-bots simultaneously.
Example Situation 1 (Player1 is allowed):
Player1 PMs Bot: do openshop
Bot opens the shop
Bot PMs Player1: done
Example Situation 2 (Player2 is also allowed):
Player2 PMs Bot: do e heh
Bot uses emoticon heh
Bot PMs Player2: done
Example Situation 3 (Player3 is not allowed):
Player3 PMs Bot: do relog 9999999
Bot does nothing
Bot PMs Player3: Asa...
Example Situation 4 (Player1 is allowed):
Player1 PMs Bot: do relog 9999999
Bot relogs
This macro can be a part of a more complex macro... I'm using this to manually trade and chat... Hope this helps...
This macro will let a bot do a certain Do Command on a PM when the sender is on the list of allowed players.
This is useful in using bots while playing non-bots simultaneously.
Code: Select all
## DO Command at PM ##
automacro DOonPM {
console /\(From: (.*)\) : do (.*)/
run-once 1
call {
#Multiple IF Statements can be added for flexibility
# Player1 is an in-game name
# Player2 is an in-game name
if ("$.lastMatch1" == "Player1") goto ok
if ("$.lastMatch1" == "Player2") goto ok
do pm "$.lastMatch1" Asa... #any message to say rejection on request...
release DOonPM
stop
:ok
release DOonPM
do $.lastMatch2
pause 2
do pm "$.lastMatch1" done
stop
}
}
Player1 PMs Bot: do openshop
Bot opens the shop
Bot PMs Player1: done
Example Situation 2 (Player2 is also allowed):
Player2 PMs Bot: do e heh
Bot uses emoticon heh
Bot PMs Player2: done
Example Situation 3 (Player3 is not allowed):
Player3 PMs Bot: do relog 9999999
Bot does nothing
Bot PMs Player3: Asa...
Example Situation 4 (Player1 is allowed):
Player1 PMs Bot: do relog 9999999
Bot relogs
This macro can be a part of a more complex macro... I'm using this to manually trade and chat... Hope this helps...