• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows Change skill

Cornex

Web Developer
Senator
Joined
Jun 15, 2008
Messages
3,443
Solutions
6
Reaction score
1,170
Location
Sweden
Hello there.

I'm chaning the "Fist" skill bar to "Cocking" etc.

But if i still atk an monster with fist it keep add me the skill.
I never done this before thats why i asked here, i hope there is someone willing to help!

Thanks in advance
 
requires some heavy source edits, which I do not really recommend you, as they can easily debug the client or crash the server if they aren't written well.
 
requires some heavy source edits, which I do not really recommend you, as they can easily debug the client or crash the server if they aren't written well.

Got any ideas how i can make it instead? Maybe i can have the bar there, but remove that function that make it advance etc
 
weapons.cpp:
Code:
if(!player->hasFlag(PlayerFlag_NotGainSkill) && player->getAddAttackSkill())
		player->addSkillAdvance(SKILL_FIST, 1);
remove that part, shouldn't cause any errors but use it on your own risk :p
 
did you mean to remove it for all skills or just for fist? cause atm just fist is disabled.

if you want it for all:
Code:
if(getSkillType(player, item, skillType, skillPoint))
			player->addSkillAdvance(skillType, skillPoint);
remove that aswell.
 
did you mean to remove it for all skills or just for fist? cause atm just fist is disabled.

I want it to remove for all skills, i tried to remove whole weapons.cpp, no errors or something but it still grow ;p

- - - Updated - - -

I think it is wrong file. I deleted it all but it still grows, i tried delete that you say also
 
are you using devcpp? if so do a rebuild.

for shield skill:
player.cpp
Code:
if(hasShield())
			addSkillAdvance(SKILL_SHIELD, 1);
 
Last edited:
No source edit needed for that:
In data/xml/groups.xml change:
XML:
	<group id="1" name="Player"/>
for:
XML:
	<group id="1" name="Player" flags="268435456"/>
 
Back
Top