• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Block swapping/equipping only armor parts in combat mode

Initiate Mage
Joined
Jun 8, 2015
Messages
4
Reaction score
0
Hi there!

I've been trying to search about this subject for a while on RageZone and even on other forums and after a lot of search I was able to find how to edit gs on PlayerEquipItem to check if the player is in Combat Mode (editing from 0E to 14 on .text:080925C3). The problem is that this way it block any item to be equipped/change during the combat mode and I only want to block armor parts (not accessories or weapons, specially weapons as WR can use swords, axes and fist on combat and need to switch between them to use certain skills).So I'd be glad if some of you can help me to figure out how to block only armor parts to not be changed during combat.

Thank you!
 
Last edited:
Initiate Mage
Joined
Jun 8, 2015
Messages
4
Reaction score
0
I was able to achieve it by changing .text:080925C3 from 14 back to 0E and changing the condition to enter in the IsCombatState function (which is originally index_equip == 23, which means to lock the daimon during PvP). I changed it to == 0 and now it's locking only the weapon by checking if IsCombatState before allowing the change.
 
Last edited:
Elite Diviner
Joined
Jun 26, 2013
Messages
486
Reaction score
91
There is a cooler way to do this by linking the same function you mentioned to a GUID such as "Unable to be discarded" then making the exact items you wanted to be unswappable unable to be discarded. or some minor GUID like this. Hope this helps. :p:
 
Back
Top