How to add slayer helmet correct effect

Go down

How to add slayer helmet correct effect

Post by str very low on Tue Jun 11, 2013 7:01 pm

Go to your Client class declare this

Code:
Code:
public boolean slayerHelmetEffect;
Go to your CombatAssistant class then search the function calculateMeleeMaxHit() and within it place this

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;
avatar
str very low

Posts : 5
Join date : 2013-06-11

View user profile

Back to top Go down

Re: How to add slayer helmet correct effect

Post by Cooley on Wed Jun 12, 2013 6:56 pm

added

Cooley
Admin

Posts : 21
Join date : 2013-06-03

View user profile http://olympus.forumakers.com

Back to top Go down

Re: How to add slayer helmet correct effect

Post by bito on Thu Jun 13, 2013 6:43 am

damn it seems u can code, i don't undertand nothing about it :d
avatar
bito

Posts : 39
Join date : 2013-06-12

View user profile

Back to top Go down

Re: How to add slayer helmet correct effect

Post by Happiness on Mon Jun 17, 2013 6:23 pm

Seems very complicated lol

Happiness

Posts : 3
Join date : 2013-06-17

View user profile

Back to top Go down

Re: How to add slayer helmet correct effect

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum