tryCode:hitDiff = misc_random(35);
|
hey guys i need help changing the amount an npc hits. Here is my code in npchandler:
I want to make it so that it can hit up to 35 with or without melee pray. At the moment it hits 35, but its all the time that it hits 35.Code:else if(npcs[NPCID].npcType == 4 && misc.random(3)==1) { npcs[NPCID].animNumber = 1843; hitDiff = 35; plr.playerLevel[5] -= 3; plr.sendQuest("" + plr.playerLevel[5] + "", 4012); } else if(npcs[NPCID].npcType == 4 && !plr.ProtMelee) { npcs[NPCID].animNumber = 1843; hitDiff = 35; plr.playerLevel[5] -= 3; plr.sendQuest("" + plr.playerLevel[5] + "", 4012); }
tryCode:hitDiff = misc_random(35);
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |