XenaNyx Posted February 19, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Share Posted February 19, 2012 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. Quote Link to comment Share on other sites More sharing options...
Wynn_ Posted February 19, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 17 Reputation: 12 Joined: 02/02/12 Last Seen: November 13, 2012 Share Posted February 19, 2012 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. 2 Quote Link to comment Share on other sites More sharing options...
XenaNyx Posted February 19, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Author Share Posted February 19, 2012 wow nice it's work thank you so much Quote Link to comment Share on other sites More sharing options...
Question
XenaNyx
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.