Jump to content
  • 0

N>Script that disables MVP and Mini Boss Cards in a certain maps


Question

Posted

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

Posted

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

Posted (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 by Fresh prince
Posted

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 ?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...