How to add slayer helmet correct effect
4 posters
Page 1 of 1
How to add slayer helmet correct effect
Go to your Client class declare this
Code:
Code:
It also needs to boost attack so search the function calculateMeleeAttack() and within it place this
Code:
After that search c.faceUpdate(i); which is located within the attackNpc function below that place this
Code:
And after that we need to make it so this effect fades away when the boolean is at true and you are fighting a player, so before the playerDelayedHit function gets called we need to set it to false so search if(!usingBow && !c.usingMagic && !usingOtherRangeWeapons) { which is located within the attackPlayer function and above that add this
Code:
Code:
- Code:
public boolean slayerHelmetEffect;
Code:
- Code:
if (c.slayerHelmetEffect && c.slayerTask != 0)
maxHit = (int)(maxHit * 1.15);
It also needs to boost attack so search the function calculateMeleeAttack() and within it place this
Code:
- Code:
if (c.slayerHelmetEffect && c.slayerTask != 0)
attackLevel += c.getLevelForXP(c.playerXP[c.playerAttack]) * 0.15;
After that search c.faceUpdate(i); which is located within the attackNpc function below that place this
Code:
- Code:
c.slayerHelmetEffect = c.playerEquipment[c.playerHat] == 15492 && c.slayerTask == i;
And after that we need to make it so this effect fades away when the boolean is at true and you are fighting a player, so before the playerDelayedHit function gets called we need to set it to false so search if(!usingBow && !c.usingMagic && !usingOtherRangeWeapons) { which is located within the attackPlayer function and above that add this
Code:
- Code:
c.slayerHelmetEffect = false;
str very low- Posts : 5
Join date : 2013-06-11
Re: How to add slayer helmet correct effect
damn it seems u can code, i don't undertand nothing about it :d
bito- Posts : 39
Join date : 2013-06-12
Re: How to add slayer helmet correct effect
Seems very complicated lol
Happiness- Posts : 3
Join date : 2013-06-17
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|