xxx69 Posted May 1, 2014 Posted May 1, 2014 I found some scripts that disables mvp cards but only when they are not compounded in an item, im looking for a script that will prevent player to bring a mvp or mini boss card in a certain woe map like prtg_cas01, prtg_cas02 but not all woe maps. Hope someone can help me... Thank you very much! More power Rathena! Quote
xxx69 Posted May 1, 2014 Author Posted May 1, 2014 try http://upaste.me/r/07d344 it is not working Quote
Emistry Posted May 1, 2014 Posted May 1, 2014 prtg_cas01 mapflag loadevent add for all maps that you need updated try http://upaste.me/r/07d344 Quote
xxx69 Posted May 1, 2014 Author Posted May 1, 2014 prtg_cas01 mapflag loadevent add for all maps that you need updated try http://upaste.me/r/07d344 do i need to reload the server? will loadnpc works? coz i tried loadnpc and nothing happens. Quote
Capuche Posted May 8, 2014 Posted May 8, 2014 an if miss a bracket if( compare( .map_list$,"|"+strcharinfo(3)+"|" ) ) Quote
Fresh prince Posted May 9, 2014 Posted May 9, 2014 Hello, is there a limit on the item list? when i put around 100 items to restrict, it flooded the console with [Debug]: mapindex_name2id: Map "" not found in index list! [Debug]: mapindex_name2id: Map "" not found in index list! [Debug]: mapindex_name2id: Map "" not found in index list! [Debug]: mapindex_name2id: Map "" not found in index list! [Debug]: mapindex_name2id: Map "" not found in index list! Thanks! Looks like it's limited Quote
Fresh prince Posted May 9, 2014 Posted May 9, 2014 (edited) Heres it is Sir, -<tab>script<tab>test<tab>-1,{ OnInit: // map list setarray .map$, "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04"; // item list setarray .item,20171,20172,20173,20174,20175,20176,20261,20262,20263,20264,20107,20104,20220,20223,20215,20168,20169,20170,20265,20266,20203,20204,20205,20206,20214,20226,20216,20229,20236,20359,20380,20057,20056,20124,20179,20180,20181,20182,20977,20978,20979,20980; .map_size = getarraysize( .map$ ); .item_size = getarraysize( .item ); .map_list$ = "|"; for( .@i = 0; .@i < .item_size; .@i++ ){ setmapflag .map$[.@i],mf_loadevent; .map_list$ = .map_list$ + .map$[.@i] + "|"; } end; OnPCLoadMapEvent: if( compare( .map_list$,"|"+strcharinfo(3)+"|") ) while( .@i < .item_size ){ if( countitem( .item[.@i] ) ){ mes "You cant bring "+getitemname( .item[.@i] ); close2; warp "SavePoint",0,0; end; } .@i++; } end; } Edited May 9, 2014 by Fresh prince Quote
Capuche Posted May 9, 2014 Posted May 9, 2014 replace for( .@i = 0; .@i < .item_size; .@i++ ){ by for( .@i = 0; .@i < .map_size; .@i++ ){ 1 Quote
Erba Posted May 31, 2014 Posted May 31, 2014 does this script also restrict equipment items? and does it have a number limitation of items to be restricted? Quote
Eros Posted June 23, 2014 Posted June 23, 2014 Look at the script carefuly it will answer your question sir Erba. Quote
Erba Posted June 23, 2014 Posted June 23, 2014 Look at the script carefuly it will answer your question sir Erba. does it have a limitations in items that can be disabled? Quote
Capuche Posted June 23, 2014 Posted June 23, 2014 only 128 items can be restricted in this script, defined by the max array size Quote
Eros Posted June 27, 2014 Posted June 27, 2014 Elo ma'am/sirs sad to say the script has a bug i'm disabling ghostring card in my WoE Map but then someone can still wear ghostring they compound it on a armor that is allow during that woe and the script can't detect when the player compound the card in it how can i fix this one ? Quote
Question
xxx69
I found some scripts that disables mvp cards but only when they are not compounded in an item, im looking for a script that will prevent player to bring a mvp or mini boss card in a certain woe map like prtg_cas01, prtg_cas02 but not all woe maps.
Hope someone can help me...
Thank you very much!
More power Rathena!
16 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.