Jump to content
  • 0

Mapflag noequip


Deviszh

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   3
  • Joined:  09/04/16
  • Last Seen:  

Can anyone help me restrict ygg berry, seed in pvp_y maps?

 

My client using: 2013-08-07a

 

i already did this.

 

item_noequip

//
// 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
//
// Passing negative value as flag will unset the flag instead.
//
// 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)
// 519,-2   // Unset `restricted in PVP` flag from Milk. Making it usable in PVP again.


//----------------------------------------------------------------------------
// Zone 3 - Izlude Battle Arena
//----------------------------------------------------------------------------
601,128	//Wing_Of_Fly
607,130

restricted.txt

//Pvp
pvp_y_2-2	mapflag	restricted	3
Edited by Deviszh
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   3
  • Joined:  09/04/16
  • Last Seen:  

 

1º:

 

items.conf

// Allow the consumption of usable items that are disabled by item_noequip.txt? (Note 1)
// no = can't be consumed
// yes = consumed with no effect
allow_consume_restricted_item: no

item_noequip.txt

608,2

mapflag/restricted.txt

pvp_y_2-2    mapflag    restricted    2

Let me try this when i got home. Thank you sir!

 

Update: Not working sir, still can use ygg and still effecting.

 

This is my example:

 

pvp_y_1-2 // can use berry and seeds

pvp_y_2-2 // cannot use berry and seeds

 

Because when im applying restricted all pvp map cant use berry and seeds.

 

Update Fixed: i just disabled pvp_y_2-2 in pvp.txt, so this map is not considered as pvp map.

 

Now, just trying to add restriction in gvg map if the class is soul linker and taekwon they cant enter the gvg map.

 

Done! Fixed!

https://rathena.org/board/topic/68457-utility-class-restriction/
Edited by Deviszh
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

1º:

 

items.conf

// Allow the consumption of usable items that are disabled by item_noequip.txt? (Note 1)
// no = can't be consumed
// yes = consumed with no effect
allow_consume_restricted_item: no

item_noequip.txt

608,2

mapflag/restricted.txt

pvp_y_2-2    mapflag    restricted    2
Edited by Kakaroto
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...