First the idea is i want to make a macro that will check player in map that has been interact with us,
Then it will send message to him if he is far away from us.
I already see this logic in CoreLogic.pm that using Follow in config (knowing as master-slave function)
Well, just want to know, how do i make this happen in macro, because i'm still confuse in detect the player, and send him message if he was already not visible from me.
well i'm already write the logic code like this:
Code: Select all
automacro check {
### Don't Know what i have to do to get the player ID ###
call {
lock check
$ID = ### This Is Suppose to be the ID from the trigger ###
$actUser = @eval($::playersID[$ID]) <------- To Get User true ID
log $actUser
call playerExist
}
}
macro playerExist {
### Suppose to be some Code Using variable from $actUser then it will return 1 if exist and 0 if not exist ###
if (#something# == 1) goto exist
do pm $actUser #or maybe the name# You are to far away from me
stop
:exist
do pm $actUser #or maybe the name# You are in map
stop
}
Thanks for your attention...