Break San Posted January 22, 2015 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 04/06/13 Last Seen: July 28, 2015 Share Posted January 22, 2015 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; } Quote Link to comment Share on other sites More sharing options...
Luciar Posted January 22, 2015 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 177 Reputation: 21 Joined: 01/31/12 Last Seen: March 8, 2020 Share Posted January 22, 2015 Look into mapflag restrictions Quote Link to comment Share on other sites More sharing options...
Break San Posted January 22, 2015 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 04/06/13 Last Seen: July 28, 2015 Author Share Posted January 22, 2015 Look into mapflag restrictions Can you explain how it works? I tried but I could not place. Quote Link to comment Share on other sites More sharing options...
Radian Posted January 22, 2015 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted January 22, 2015 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) Quote Link to comment Share on other sites More sharing options...
Break San Posted January 26, 2015 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 04/06/13 Last Seen: July 28, 2015 Author Share Posted January 26, 2015 There's no way for the script? if(countitem(.@donates[@i]) >= 1 || isequipped(.@donates[@i])){ Quote Link to comment Share on other sites More sharing options...
Question
Break San
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.
Link to comment
Share on other sites
4 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.