celeron0134
Members-
Content Count
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by celeron0134
-
npc that checks cells if there's already a player on that cell
celeron0134 replied to celeron0134's question in Script Support
thankyou for your reply.. but kindly post the fixed script i cant do it im a noob at scripting -
npc that checks cells if there's already a player on that cell
celeron0134 replied to celeron0134's question in Script Support
Problem of the script .@n = getareausers("quiz_02", 246, 372, 246, 372); 1) if player A is on .@n and player B is not on .@n ~ Player B can talk to the NPC what to do: 1) if Player A is on .@n (talking or not talking to the NPC) Player B will not be able to talk to the NPC for example .. on a soda machine.. only 1 person at a time can use the soda machine if ((.@n == 1) && (strcharinfo(0) is not on .@n)) mes "someone is on front of me"; mes "and i am waiting for him/her to talk to me"; mes "wait till the player leave the cell"; end; -
npc that checks cells if there's already a player on that cell
celeron0134 replied to celeron0134's question in Script Support
i dont know how to do it.. i just made that up based on what i think it is.. if possible i need the full script -
npc that checks cells if there's already a player on that cell
celeron0134 posted a question in Script Support
this NPC checks if the user is on the right cell so the user can talk or not talk to the NPC.. if you are outside the cell.. and a player is already in the cell you cant talk to the NPC or a dialogue will pop up that someone is still in front of me wait for him/her to leave the cell quiz_02,246,374,4 script cell checker 112,{ .@n = getareausers("quiz_02", 246, 372, 246, 372); if (.@n < 1) { mes "["+ strnpcinfo(0) +"]"; mes "Please stand in front of me to talk"; close; } if (.@n == 1) mes "["+ strnpcinfo(0) +"]"; mes "Congrats you are now in front of me"; close; }else{ npctalk "Too many people in front of me, only one person will be teleported in next 10 minute."; end; } i need something like this if ((.@n == 1) && (strcharinfo(0) != .@n)) mes "someone is on front of me"; mes "and i am waiting for him/her to talk to me"; mes "wait till the player leave the cell"; end;