Eros Posted April 1, 2014 Posted April 1, 2014 I need a script that won't allow the player to wear some items in my pvp room. Quote
Patskie Posted April 1, 2014 Posted April 1, 2014 db/pre-re/item_noequip.txt or db/re/item_noequip.txt Quote
Emistry Posted April 2, 2014 Posted April 2, 2014 setarray .@eq,5011,5001; .@size = getarraysize( .@eq ); for( .@i = 0; .@i < .@size; .@i++ ) if( countitem( .@eq[.@i] ){ mes "You cant take "+getitemname( .@eq[.@i]; close; } warp "prontera",155,181; end; anyway...still have no idea why wouldnt you just pick the better way instead of picking the way done by script which can be bypass by characters Quote
Eros Posted April 2, 2014 Author Posted April 2, 2014 Emistry can u give me the full script ? and can you add maps ? like two maps Quote
EL Dragon Posted April 2, 2014 Posted April 2, 2014 - script test -1,{ OnPCLoadMapEvent: getmapxy(.@map$,.@mapx,.@mapy,0); if(.@map$ == "MAP_NAME"){ for(set .@i,0; .@i < getarraysize(.itemcheck); set .@i, .@i + 1){ if(countitem(.itemcheck[.@i])){ dispbottom "You cannot have any "+getitemname(.itemcheck[.@i])+" in your possession on this map."; warp "prontera",200,180; end; } } } end; OnInit: setarray .itemcheck[0],2383,ID,ID; end; } MAP_NAME mapflag loadevent Quote
Question
Eros
I need a script that won't allow the player to wear some items in my pvp room.
6 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.