[Ask] Checking Player With Macro

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
indrakid
Noob
Noob
Posts: 3
Joined: 01 Feb 2010, 21:12
Noob?: Yes
Location: Indonesia, Depok
Contact:

[Ask] Checking Player With Macro

#1 Post by indrakid »

I'm sorry if you feel i am noob,,

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
}
anyone can help me?? Or any other alternative logic??

Thanks for your attention... :)
.::Learning Openkore Again::.

Locked