would it be somewhere else thats making it not work?
|
it does not work, ive tried and looked at everything
npc handler
if(c.respawnTimer <= 0) {
int damage = 0;
if(npcs[i].attackType == 0) {
damage = Misc.random(npcs[i].maxHit);
if (10 + Misc.random(c.getCombat().calculateMeleeDefence()) > Misc.random(Server.npcHandler.npcs[i].attack)) {
damage = 0;
}
if(c.prayerActive[18]) { // protect from melee
damage = 0;
}
if (c.playerLevel[3] - damage < 0) {
damage = c.playerLevel[3];
}
}
if(npcs[i].attackType == 1) { // range
damage = Misc.random(npcs[i].maxHit);
if (10 + Misc.random(c.getCombat().calculateRangeDefence()) > Misc.random(Server.npcHandler.npcs[i].attack)) {
damage = 0;
}
if(c.prayerActive[17]) { // protect from range
damage = 0;
}
if (c.playerLevel[3] - damage < 0) {
damage = c.playerLevel[3];
}
}
if(npcs[i].attackType == 2) { // magic
damage = Misc.random(npcs[i].maxHit);
boolean magicFailed = false;
if (10 + Misc.random(c.getCombat().mageDef()) > Misc.random(Server.npcHandler.npcs[i].attack)) {
damage = 0;
magicFailed = true;
}
if(c.prayerActive[16]) { // protect from magic
damage = 0;
magicFailed = true;
}
if (c.playerLevel[3] - damage < 0) {
damage = c.playerLevel[3];
}
if(npcs[i].endGfx > 0 && (!magicFailed || isFightCaveNpc(i))) {
c.gfx100(npcs[i].endGfx);
} else {
c.gfx100(85);
}
}
would it be somewhere else thats making it not work?
try that and use [ code][ /code]Code:if(c.respawnTimer <= 0) { int damage = 0; if(npcs[i].attackType == 0) { damage = Misc.random(npcs[i].maxHit); if (10 + Misc.random(c.getCombat().calculateMeleeDefence()) > Misc.random(Server.npcHandler.npcs[i].attack)) { damage = 0; } if (c.playerLevel[3] - damage < 0) { damage = c.playerLevel[3]; } if(c.prayerActive[18]) { // protect from melee damage = 0; } } if(npcs[i].attackType == 1) { // range damage = Misc.random(npcs[i].maxHit); if (10 + Misc.random(c.getCombat().calculateRangeDefence()) > Misc.random(Server.npcHandler.npcs[i].attack)) { damage = 0; } if (c.playerLevel[3] - damage < 0) { damage = c.playerLevel[3]; } if(c.prayerActive[17]) { // protect from range damage = 0; } } if(npcs[i].attackType == 2) { // magic damage = Misc.random(npcs[i].maxHit); boolean magicFailed = false; if (10 + Misc.random(c.getCombat().mageDef()) > Misc.random(Server.npcHandler.npcs[i].attack)) { damage = 0; magicFailed = true; } if (c.playerLevel[3] - damage < 0) { damage = c.playerLevel[3]; } if(c.prayerActive[16]) { // protect from magic damage = 0; magicFailed = true; } if(npcs[i].endGfx > 0 && (!magicFailed || isFightCaveNpc(i))) { c.gfx100(npcs[i].endGfx); } else { c.gfx100(85); } }
im having same problem with my server...que the fuck
still doesnt work and with that coding errors appear during gameplay in the command prompt
theres 100's of topics asking about this with not 1 person knowing how to fix,
i was guessing on that lol...
if this dosnt work(cause this is basically mine) then theres something else...
Code:if(c.respawnTimer <= 0) { int damage = 0; if(npcs[i].attackType == 0) { damage = Misc.random(npcs[i].maxHit); if (10 + Misc.random(c.getCombat().calculateMeleeDefence()) > Misc.random(Server.npcHandler.npcs[i].attack)) { damage = 0; } if(!c.prayerActive[18]) { // protect from melee if (c.playerLevel[3] - damage < 0) { damage = c.playerLevel[3]; } else { damage = 0; } if(npcs[i].attackType == 1) { // range damage = Misc.random(npcs[i].maxHit); if (10 + Misc.random(c.getCombat().calculateRangeDefence()) > Misc.random(Server.npcHandler.npcs[i].attack)) { damage = 0; } if(!c.prayerActive[17]) { // protect from range if (c.playerLevel[3] - damage < 0) { damage = c.playerLevel[3]; } else { damage = 0; } if(npcs[i].attackType == 2) { // magic damage = Misc.random(npcs[i].maxHit); boolean magicFailed = false; if (10 + Misc.random(c.getCombat().mageDef()) > Misc.random(Server.npcHandler.npcs[i].attack)) { damage = 0; magicFailed = true; } if(!c.prayerActive[16]) { // protect from magic if (c.playerLevel[3] - damage < 0) { damage = c.playerLevel[3]; } else { damage = 0; magicFailed = true; } if(npcs[i].endGfx > 0 && (!magicFailed || isFightCaveNpc(i))) { c.gfx100(npcs[i].endGfx); } else { c.gfx100(85); } }
posted on ur wall
it was prayersunder clicking buttons that were fucked up, not npchandler. payed awesome dude 20 bucks to figure that shit out rofl, none of my mates could figure it out
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |