Olympus Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to add slayer helmet correct effect

4 posters

Go down

How to add slayer helmet correct effect Empty How to add slayer helmet correct effect

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

Posts : 5
Join date : 2013-06-11

Back to top Go down

How to add slayer helmet correct effect Empty Re: How to add slayer helmet correct effect

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

added

Cooley
Admin

Posts : 21
Join date : 2013-06-03

https://olympus.forumakers.com

Back to top Go down

How to add slayer helmet correct effect Empty Re: How to add slayer helmet correct effect

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

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

Posts : 39
Join date : 2013-06-12

Back to top Go down

How to add slayer helmet correct effect Empty Re: How to add slayer helmet correct effect

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

Seems very complicated lol

Happiness

Posts : 3
Join date : 2013-06-17

Back to top Go down

How to add slayer helmet correct effect Empty 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