Jump to content
  • 0

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


xxx69

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  12/01/13
  • Last Seen:  

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!

Link to comment
Share on other sites

16 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

prtg_cas01    mapflag    loadevent

add for all maps that you need

 

 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  12/01/13
  • Last Seen:  

prtg_cas01    mapflag    loadevent

add for all maps that you need

 

 

 

do i need to reload the server? will loadnpc works?

coz i tried loadnpc and nothing happens. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  12/01/13
  • Last Seen:  

Up!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

an if miss a bracket

if( compare( .map_list$,"|"+strcharinfo(3)+"|" ) )
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Post the script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

replace

for( .@i = 0; .@i < .item_size; .@i++ ){

by

for( .@i = 0; .@i < .map_size; .@i++ ){
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

does this script also restrict equipment items? and does it have a number limitation of items to be restricted?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

Look at the script carefuly it will answer your question sir Erba.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

Look at the script carefuly it will answer your question sir Erba.

does it have a limitations in items that can be disabled?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

only 128 items can be restricted in this script, defined by the max array size

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites

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.

×
×
  • Create New...