Description: Alright, as requested, im showing how to make a weapon "stronger"
Difficulty : 1/10
Classes Modified : Client and item.cfg
open up item.cfg
Lets use a whip as an example.
CODE
Code:
item = 4151 Abyssal_whip A_weapon_from_the_abyss. 4000000 4000000 4000000 0 102 0 0 0 0 0 0 0 0 52 0
(remember to space/tab them well)
Ignore the first three numbers, they are prices.
the numbers following that, is the bonus.
if im correct, 102 should be the Strength bonus in mine.
Now, what if you want to change the max hits?
Open up Client Class. (or client.java if you dont understand)
search for
Code:
"//viewTo(server.playerHandler.players[AttackingOn].absX, server.playerHandler.players[AttackingOn].absY);"
(something like this)
Underneath look for
CODE
Code:
if(playerEquipment[playerWeapon] == (4151)) // whip
{
PkingDelay = 2;
wepdelay = 2;
}
now all you have to do, is add this.
CODE
Code:
hitDiff = 0 + misc.random(45);
What does this do?
hitDiff = 0 means that thats whats definatly gonna hit.
+ misc.random(45); means that it can randomly hit 0-45 adding onto the hitdiff.
so your code should look like
CODE
Code:
if(playerEquipment[playerWeapon] == (4151)) // whip
{
PkingDelay = 2;
wepdelay = 2;
hitDiff = 0 + misc.random(45);
}
credits to figment 99% 1% to me for posting......