Well..perhap this will be my last release until i have fixed my Laptop in the upcoming days....
[ Update ] : Added a Limited Items Script :
Description :
Well, this script actually is the previously script --- "Banned Items" . Due to the demand of some users asking for making it to allow configuration for different map and restrict different items, so i have update it this and renamed it to suit the script better than before. This script actually work like the title said. It limit the users from bring items with only certain amount only before he/she can enter a map. The limitation can be certain amount of the specific items...or can be 0 which disable users from bringing the items to the maps.
and yet..this is also a "Double Edged" Script xD what i refer here was : Pros and Cons......
Configuration :
Set what Level for GM Bypass , Checking Interval , Map + Zone Configuration.
// GM Level to Bypass
set .GMLevel,80;
// Check Every X Seconds
set .Seconds,5;
// Apply on Which Maps and what Zone No.
setarray .DisableMap$, // "<mapname>","<zone numbe",
"guild_vs1","0",
"guild_vs2","1",
"guild_vs3","2",
"guild_vs4","3",
"guild_vs5","4";
the Map setting can set up to limit of ~64 Maps.
for the Zone...actually can be any number you want. but limit of ~64 Zone.
Whenever you have edit / defined a map with a zone inside this function.. Make sure you did add the zone stuff here .
an DEBUGMES will be shown if you didnt added it correctly.
function LimitItems {
switch( getarg(0) ){
// Case <zone>: CheckItems( <Item>,<Amount>,<Item>,<Amount>,.....,<Item>,<Amount> ); break;
Case 0: CheckItems( 607,1 ); break;
Case 1: CheckItems( 607,5,608,1 ); break;
Case 2: CheckItems( 607,2,608,3,4002,1 ); break;
Case 3: CheckItems( 607,5,608,1,4002,1,5022,1 ); break;
Case 4: CheckItems( 607,1,608,15,5022,2,7227,10 ); break;
default:
debugmes "[NPC : "+strnpcinfo(0)+"] - Invalid Zone:"+getarg(0);
break;
}
return;
}
Item Limitation Settings :
Case <zone>: CheckItems( <Item>,<Amount>,<Item>,<Amount>,.....,<Item>,<Amount> ); break;
You can add about ~64 items ( items + Amount ) restriction here for each zone.
Sample Explanation :
I will use these 3 cases to explain to you as simple as possible.
Case 0: CheckItems( 607,1 ); break;
Case 1: CheckItems( 607,5,608,1 ); break;
Case 2: CheckItems( 607,2,608,3,4002,1 ); break;
as you can see...the above coded content show you 3 different zone with different item limitation..
[ Zone 0 ] : Limiting Users to only able to bring 1 Yggdrasilberry to Maps with Zone 0.
[ Zone 1 ] : Limiting Users to only able to bring Maximum of 5 Yggdrasilberry and 1 Yggdrasilberry Seed to Maps with Zone 1.
[ Zone 2 ] : Limiting Users to only able to bring Maximum of 2 Yggdrasilberry and 3 Yggdrasilberry Seed and 1 Poring Card to Maps with Zone 2.
And yes...you would be asking me what about the rest of the items that are not listed....
so, the answer is....any items that are not listed inside the function is not bind to the Limitation..
and for the Card Issue...
whether the Card is located in your Inventory or compounded into Equipments...it will still counted.
Limited Items [ Version 2 ]
Changelog :
Scripts : View ♥ Download
Please make sure you did read everything i write....assuming that you should be able to setup the script by your own already since steps and explaination already provided. Well, you still can leave me a message at here if you still face some problems.