I have a question, I have this script, what it does in short: it kicks out players that have certain items in their inventory.
but there is one problem with it. If I have the items in the array in my cart, I don't get kicked out. So, in this case of war of emperium, if i go to the emp-room, take my items out of my cart i can equips or use them just fine!
How can i also disable cart items?
- script Restrict-1,{OnPCLoadMapEvent:getmapxy(.@map$,.@mapx,.@mapy,0);if(.@map$=="prtg_cas01"){for(set.@i,0;.@i< getarraysize(.itemcheck);set.@i,.@i+1){if(countitem(.itemcheck[.@i])){ dispbottom "[ Info ] : ["+getitemname(.itemcheck[.@i])+"] found. Kicking you out!"; warp "prontera",200,180;end;}}}end;OnInit:setarray .itemcheck[0],2383,2204,30873,20009,20010,etc;end;}prtg_cas01 mapflag loadevent
Hello Hercules
I have a question, I have this script, what it does in short: it kicks out players that have certain items in their inventory.
but there is one problem with it. If I have the items in the array in my cart, I don't get kicked out. So, in this case of war of emperium, if i go to the emp-room, take my items out of my cart i can equips or use them just fine!
How can i also disable cart items?
Share this post
Link to post
Share on other sites