|
|
My first tutorial enjoy.
First up
Client Side
Add these ints to you ItemDef.java
Server Sidecase 16022:
itemDef.actions = new String[5];
itemDef.modifiedModelColors = new int[1];
itemDef.originalModelColors = new int[1];
itemDef.actions[1] = "Wield";
itemDef.modelID = 5412;
itemDef.maleEquip1 = 5409;
itemDef.femaleEquip1 = 5409;
itemDef.modelZoom = 840;
itemDef.modelRotation1 = 280;
itemDef.modelRotation2 = 0;
itemDef.modelOffset1 = -2;
itemDef.modelOffset2 = 56;
itemDef.anInt204 = 0;
itemDef.name = "Lime whip";
itemDef.description = "Whip from the abyss.".getBytes();
itemDef.modifiedModelColors[0] = 17350;
itemDef.originalModelColors[0] = 528;
break;
Now lets add the poison to the whip
CombatAssistant.java
Search for
Replace that with} else if (c.playerEquipment[c.playerWeapon] == 5698 && o.poisonDamage <= 0 && Misc.random(3) == 1) {
Now to add the special bar & the healing special.} else if (c.playerEquipment[c.playerWeapon] == 5698 || (c.playerEquipment[c.playerWeapon] == 16022 && o.poisonDamage <= 0 && Misc.random(3) == 1)) {
Search for
and look for case 4151:switch(c.playerEquipment[c.playerWeapon]) {
under
case 4151:
add
case 16022:
Search for
and find case 4151:switch(c.playerEquipment[c.playerWeapon]
under
case 4151:
add
case 16022:
Find
search for case 4151:switch(c.playerEquipment[c.playerWeapon]) {
under
case 4151:
add
case 16022:
Search for
You should see thisc.startAnimation(1658);
case 4151: // whip
if(Server.npcHandler.npcs[i] != null) {
Server.npcHandler.npcs[i].gfx100(341);
}
c.specAccuracy = 1.10;
c.startAnimation(1658);
c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquip ment[c.playerWeapon]).toLowerCase());
break;
Under it add
And there you go.case 16022: //limewhip
if(Server.npcHandler.npcs[i] != null) {
}
c.specAccuracy = 1.10;
c.specEffect = 4;
c.startAnimation(1658);
c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquip ment[c.playerWeapon]).toLowerCase());
break;
Enjoy.

I hate customs but creative snippet
FFs cant you use tags?
nice job tho
Q3MDVK56GGJ

Why would anyone want this, lol?
| « Good Killstreak system [PI] | Very useful ::getid command » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
| Tags for this Thread |