Jump to content
  • 0

How to unequip items by using item_noequip.txt


Netsrot

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   5
  • Joined:  12/05/12
  • Last Seen:  

Hello ^^

 

I would like to have an automatic unequip and blocking of restricted items as listed in item_noequip.txt on my server. My server uses rAthena REV 17205 and higher, cuz i will update to 173xx in the next days.

 

My reason:

We have costumes for styling only, no stats or effects. Sadly costumes can be used, or abused,  to hide the real equip in PvP, GvG, WoE and Battleground, to get an unfair advance. The actual official rAthena solution is to disable effects and bonus by using item_noequip.txt, but it still allows to hide equips behind costumes. I already read about changes to be reverted, but my knowledge in C/C++ is not that good.

 

So my question is how to fix this problem.

 

Best Regards :)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Did you set the map in trunk/conf/mapflag/restricted.txt?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   5
  • Joined:  12/05/12
  • Last Seen:  

Did you set the map in trunk/conf/mapflag/restricted.txt?

 

Yes, I did that and checked it out. I added a pvp-map to restriction-zone 1 ( in restrict.txt ) and set the item to 46 ( see below ).

 

 

// The equipment/items/cards restriction file
// here you define which items may not be used at PvP / GvG
// format: <item id>,<mode>
// mode
// 1    - restricted in normal maps
// 2    - restricted in PVP
// 4    - restricted in GVG
// 8    - restricted in Battlegrounds
// Restricted zones - they're 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 you can't use KNIFE(ID 1201) on normal maps
//608,4 you can't use Yggdrasil Seed(ID 608) on both GvG and WoE Castles
//4174,6 Forbid Deviling Card in every PVP or GVG map, and during woes.
//501,32 you can't use Red Potion on map marked as 'restricted zone 1'
//502,64 you can't use Orange Potion on map marked as 'restricted zone 2'
//503,128 you can't use Yellow Potion on map marked as 'restricted zone 3'
// you can even mix modes
//519,322 (256+64+2) you can't use Milk on PVP, and maps marked as 'restricted zone 2' and 'restricted zone 4'

 

Equipment is not stripped, its bonus and effects are only disabled.

 

I need a code that fits to Rev.: 17205 and higher and an explanation where to put it.

 

Best Regards :)

 

UPDATE:

 

Just checked it again with a bonus of 500 to all stats in the costume headgear to make myself sure. The bonus is disabled but the costume headgear is not stripped.

 

Best Regards :)

Edited by Netsrot
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Did you set the map in trunk/conf/mapflag/restricted.txt?

 

Yes, I did that and checked it out. I added a pvp-map to restriction-zone 1 ( in restrict.txt ) and set the item to 46 ( see below ).

 

 

// The equipment/items/cards restriction file
// here you define which items may not be used at PvP / GvG
// format: <item id>,<mode>
// mode
// 1    - restricted in normal maps
// 2    - restricted in PVP
// 4    - restricted in GVG
// 8    - restricted in Battlegrounds
// Restricted zones - they're 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 you can't use KNIFE(ID 1201) on normal maps
//608,4 you can't use Yggdrasil Seed(ID 608) on both GvG and WoE Castles
//4174,6 Forbid Deviling Card in every PVP or GVG map, and during woes.
//501,32 you can't use Red Potion on map marked as 'restricted zone 1'
//502,64 you can't use Orange Potion on map marked as 'restricted zone 2'
//503,128 you can't use Yellow Potion on map marked as 'restricted zone 3'
// you can even mix modes
//519,322 (256+64+2) you can't use Milk on PVP, and maps marked as 'restricted zone 2' and 'restricted zone 4'

 

Equipment is not stripped, its bonus and effects are only disabled.

 

I need a code that fits to Rev.: 17205 and higher and an explanation where to put it.

 

Best Regards :)

 

UPDATE:

 

Just checked it again with a bonus of 500 to all stats in the costume headgear to make myself sure. The bonus is disabled but the costume headgear is not stripped.

 

Best Regards :)

Yes it's official, item effect will disabled inside the map.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   5
  • Joined:  12/05/12
  • Last Seen:  

Hello Anakid,

 

but how to get auto-strip and auto-reequip-block for that items ?

 

Somehow i think nobody understands me ~ sighs ~

 

Best Regards :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   5
  • Joined:  12/05/12
  • Last Seen:  

**BUMP**

 

I am in Rev.: 17435 now and i still would like to have restricted equips to  be stripped instead of disable effects they do not have.

Edited by Netsrot
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...