Berserk skill modification

BattleGrounds

New member
Messages
8
Points
0
I'm trying to allow chat, item usage, equipment switching, and healing while in Berserk, but can't find where to do this.

Any help would be appreciated, thanks.

 
Mainly search all the code for SC_BERSERK, you'll find where it's used to prevent chatting, gears changing and so on. There are just too many places to mention them all here >.<

 
Last edited by a moderator:
So far these are the changes I've been able to make to the skill:

- Triple HP

- ATK +200%

- Enabled skills

- Removed SP penalty

But haven't been able to find where to enable item usage during the skill. Do you know where can I find this? Thanks.

 
src/map/pc.c, pc_useitem.

Code:
	// Statuses that don't let the player use items	if (sd->sc.count && (		sd->sc.data[SC_BERSERK] ||		(sd->sc.data[SC_GRAVITATION] && sd->sc.data[SC_GRAVITATION]->val3 == BCT_SELF) ||		sd->sc.data[SC_TRICKDEAD] ||		sd->sc.data[SC_HIDING] ||		sd->sc.data[SC__SHADOWFORM] ||		sd->sc.data[SC__INVISIBILITY] ||		sd->sc.data[SC__MANHOLE] ||		sd->sc.data[SC_KG_KAGEHUMI] ||		sd->sc.data[SC_WHITEIMPRISON] ||		sd->sc.data[SC_DEEP_SLEEP] ||		sd->sc.data[SC_SATURDAY_NIGHT_FEVER] ||		sd->sc.data[SC_COLD] ||		(sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1&MANNER_NOITEM)	    ))		return 0;
 
Thank you very much 
default_smile.png


 
Back
Top