Jump to content
  • 0

How to block certain item on the map


Question

Posted

I need to block some item in pvp map, how can I do this in the script .. tried to make it more if the item is equipped normally passes.

case 4:
if((Class == 24) || (Class == 25) || (Class == 26) || (Class == 4045) || (Class == 4046) || (Class == 4047) || (Class == 4048) || (Class == 4049) || (Class == 4001) || (Class == 4002) || (Class == 4003) || (Class == 4004) || (Class == 4005) || (Class == 4006) || (Class == 4007) || (Class == 4008) || (Class == 4009) || (Class == 4010) || (Class == 4011) || (Class == 4012) || (Class == 4013) || (Class == 4014) || (Class == 4015) || (Class == 4016) || (Class == 4017) || (Class == 4018) || (Class == 4019) || (Class == 4020) || (Class == 4021))
{dispbottom "^D20000Desculpe, The input TransClasses and Expanded Classes is prohibited in the Old Times arena.^000000"; close;}
else{
setarray .@donates[0],607,608,4365,4128,4441,4433,4357,4146,4359,4132,4143,4148,4169,4198,4241,4330,4372,4374,4403,4047,4054,4135,4302,4324,4342,4363,4386,4408,4419,4121,4134,4137,4142,4147,4263,4276,4305,4318,4367,4425,4174,4123,4131,4168,4236,4290,4352,4376,4144,4145,4384,4430;
for(set @i,0;@i < getarraysize(.@donates);set @i,@i+1){
if(countitem(.@donates[@i]) >= 1){
mes .@n$;
mes "You can not use some items in this PvP (Fruit of Yggdrasil / Seed of Yggdrasil / Cards MvP's)!";
	cutin "",255;
close;
}

4 answers to this question

Recommended Posts

Posted

Just go to your trunk/db/pre-[re]/item_noequip.txt just follow the format

// Forbidden Items Database
// Defines restrictions on equipment, items, and cards in map types and zones.
//
// Structure of Database:
// ItemID,Flag
//
// Legend for 'Flag' field (bitmask):
// 1    - restricted in normal maps
// 2    - restricted in PVP
// 4    - restricted in GVG
// 8    - restricted in Battlegrounds
// Restricted zones - configured by 'restricted <number>' mapflag
// 32   - restricted in zone 1
// 64   - restricted in zone 2
// 128  - restricted in zone 3
// 256  - restricted in zone 4
// 512  - restricted in zone 5
// 1024 - restricted in zone 6
// 2048 - restricted in zone 7
//
// Examples:
// 1201,1   // Knife can't be worn on normal maps
// 608,4    // Yggdrasil Seed can't be consumed in both GvG and WoE Castles
// 4174,6   // Deviling Card has no effect in every PVP or GVG map, and during WoE
// 501,32   // Red Potion can't be consumed on maps marked as 'restricted zone 1'
// 519,322  // Milk can't be consumed in PVP and maps marked as 'restricted zone 2' or 'restricted zone 4' (256+64+2)

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...