[TuT - A] [508] Change weapon features (weapon bonuses, etc.)
Ok. This is all about weapons features on 508 servers.
I have been helping people in the Help section.
The thing is people new to 508 dont know what the hell there doing, and when that happens and they ask for help i got to keep writing it out for them bla bla bla.
This is why im doing this just to help those guys.
Ok This is very very simple guys, so meh.. I will start.
Strength bonuses
Right so weapon features. Ok lets start on the strength bonuses?
Alright this is one of the most easiest things im gonna show you.
So firstly IF you are using a palidino server follow this.
1. Open your folders in this order.. bin >data > items > items.cfg
2. You are going to simply look for the 14th line in each of the items to add the strength.
3. So for example, lets search abyssal_whip WITH the _ which is called an underscore.
4. Here is what abyssal_whip looks like.
Code:
item = 4151 Abyssal_whip A_weapon_from_the_abyss. 100001 100001 100001 0 400 0 0 0 0 0 0 0 0 100 0
5. Right you see i have added the strength bonus on my whip to 100.
6. You can mess around also to add attack, defence and other skill bonuses onto the item.
7. Ok i hope that sorted that problem out....
Specials
Ok now another problem people are having with items is the specials.
Im gonna show you what the code of the abyssal whip will look like when finished and explain.
Code:
} else if (p.equipment[3] == 4151 && p.specialAmount >= 50) { // Abyssal whip.
hitDamage = Misc.random(
(int) (maxMeleeHit(p) * 0.9));
p.usingSpecial = false;
p.specialAmount -= 50;
p.requestAnim(1658, 0);
p2.requestGFX(341, 100);
Right lets start from line 1 and work down....
Line 1:
Code:
} else if (p.equipment[3] == 4151 && p.specialAmount >= 50) { // Abyssal whip.
This line is telling us that when we have equiped id 4151 it will activate a special amount.
The special amount at the moment is 50. So when you hit someone with the special it will take 50% of the bar away... Ok thats pretty simple. Oh and the // Abyssal whip is just a commented out word just so we know what item it is...
Line 2:
Code:
hitDamage = Misc.random(
This is'nt really anything you need to change or worry about to be honest.
Just simply keep that there. Its calling the hitDamage on the player.
Line 3:
Code:
(int) (maxMeleeHit(p) * 0.9));
Yeh also leave this one alone, you dont need to touch this....
Line 4:
Code:
p.usingSpecial = false;
Also dont touch this one, this is just saying, if your using special return false.
Nothing you really need to know about.
Line 5:
Code:
p.specialAmount -= 50;
Remember line 1? well if you dont look back at it..
Whatever you changed that 50 too, then change it on this line aswell.
Line 6:
Code:
p.requestAnim(1658, 0);
Ok this line is just simply calling an animation. If you dont know what to do here then wtf?
You can get a List of animations from some site i guess. Not sure where.
But 1658 is the id you would have to change if you wanted to change the animation.
Line 7:
Code:
p2.requestGFX(341, 100);
Ok finally this is the code that is used on Player 2.
As you can see p2 = Player 2.
So when we hit with the whips special it will do the GFX 341 on P2 (Player 2)
The guy your fighting against...
Ok lol, If you wanna know anything else on weapons then feel free to ask me below.
- Joe
Re: [TuT] [508] Change weapon features....
This is nice Joe, you think you could explain what each part of;
item = 4151 Abyssal_whip A_weapon_from_the_abyss. 100001 100001 100001 0 400 0 0 0 0 0 0 0 0 100 0
Does, I've been lost for weeks on this.
Re: [TuT] [508] Change weapon features....
how I can add darkbow's special?
Re: [TuT - A] [508] Change weapon features (weapon bonuses, etc.)
dude!! tyvvvm much for this guide i realy helped me and i mean really helped
and darkblitz i think u need to hav a gfx for special i dunno much about it though sorry maybe make a thread in RS help section on it?
Re: [TuT - A] [508] Change weapon features (weapon bonuses, etc.)
Uh... Which one is attack, defence?
Re: [TuT - A] [508] Change weapon features (weapon bonuses, etc.)
Awesome Change Weapon Stats is really important lol...
Re: [TuT - A] [508] Change weapon features (weapon bonuses, etc.)
} else if (p.equipment[3] == 35 && p.specialAmount >= 25) { // Vesta Longsword.
hitDamage = Misc.random(
(int) (maxMeleeHit(p) * 0.9));
p.usingSpecial = false;
p.specialAmount -= 25;
p.requestAnim(6998, 0);
p2.requestGFX(437, 100);
where do i put this?
Re: [TuT - A] [508] Change weapon features (weapon bonuses, etc.)
This is great, thanks a lot Joe!