So what I'm trying to do is to have the script check if a player is still within the OnTouch zone. Here is an example NPC:
brasilis,249,60,0 script School of Fish#fs1 723,2,2,{
end;
OnTouch:
set .fishno,1;
callfunc "fishfunc",.fishno;
end;
}
In the function "fishfunc" I want it to perform a check to see if that player is still within the 2x2 cell radius around 249,60. If the user is still in that area they can continue with fishing, if not, they cannot fish. There is already a menu that pops up immediately stating if they wish to fish when they enter that OnTouch zone as long as they meet the required conditions. I just dont want people to walk across an OnTouch zone bypassing the area around the fishing zone and continue to fish. Just doesn't make sense.
getmapxy(.npcMap$, .npcX, .npcY, 1, strnpcinfo(0)) might somehow be used in this. I need some help here ;x
Question
Syouji
So what I'm trying to do is to have the script check if a player is still within the OnTouch zone. Here is an example NPC:
In the function "fishfunc" I want it to perform a check to see if that player is still within the 2x2 cell radius around 249,60. If the user is still in that area they can continue with fishing, if not, they cannot fish. There is already a menu that pops up immediately stating if they wish to fish when they enter that OnTouch zone as long as they meet the required conditions. I just dont want people to walk across an OnTouch zone bypassing the area around the fishing zone and continue to fish. Just doesn't make sense.
getmapxy(.npcMap$, .npcX, .npcY, 1, strnpcinfo(0)) might somehow be used in this. I need some help here ;x
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.