Jump to content
  • 0

How to set don't use item in cell ?


XenaNyx

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

How to set don't use item in cell ?

because i use call function in item when i use item near emperium if function script have mes command emperium is hide.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   12
  • Joined:  02/02/12
  • Last Seen:  

function script XY_Check {
getmapxy(.@m$,.@x,.@y,0);
if( .@m$ == getarg(0) &&
( .@x >= ((getarg(1)>getarg(3))?getarg(3):getarg(1)) && .@x <= ((getarg(1)<getarg(3))?getarg(3):getarg(1)) ) &&
( .@y >= ((getarg(2)>getarg(4))?getarg(4):getarg(2)) && .@y <= ((getarg(2)<getarg(4))?getarg(4):getarg(2)) )
) return 1;
return 0;
}

if(callfunc("XY_Check", "map", x1, y1, x2, y2)) end;

Add this to the beggining of your script, xy1 and 2 work kind of like setcell.

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

wow nice it's work

thank you so much

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...