PDA

View Full Version : Help please



XxBryantD
June 25th, 2010, 02:56
iv not seen this b4 but my players say they die when they log in and i searched what was said when they die i get this

newWalkCmdX[0] = newWalkCmdY[0] = tmpNWCX[0] = tmpNWCY[0] = 0;
specialAmount = 100;
specAttack();
currentHealth = playerLevel[playerHitpoints];
inPitsGame = false;
PlayerHandler.playersInPit -= 1;
AtkPray = 0;
StrPrayer = 0;
DefPray = 0;
RangePray = 0;
MagePray = 0;
PrayHeal = false;
ProtItem = false;
ProtMage = false;
ProtRange = false;
ProtMelee = false;
Redemption = false;
Retribution = false;
Smite = false;
Chivalry = false;
Piety = false;
turnpray();
heightLevel = 0;
currentHealth = playerLevel[playerHitpoints];
deathStage = 0;
prayOn = false;
AntiTeleDelay = 0;
EntangleDelay = 0;
sM("What a bummer, you just got owned!");
resetOtherAtk();
followID = 0;
followID2 = 0;
sendQuest("" + currentHealth + "", 4016);
sendQuest("" + getLevelForXP(playerXP[3]) + "", 4017);
}

Shane
June 25th, 2010, 09:29
What do you mean they die when they spawn?

XxBryantD
June 25th, 2010, 15:32
lol opps i mean log in

tlozoot
June 25th, 2010, 18:23
Because there hp is set to 0 when they log in..

XxBryantD
June 26th, 2010, 08:21
how do i set to 1 or 99

XxBryantD
June 27th, 2010, 02:39
help...

gilles
June 27th, 2010, 03:35
Search for this in ur Player.java:


public int currentHealth =

Tell us what is in there. I think the glitch is there.

Godly Angel
June 27th, 2010, 03:40
sendQuest("" + currentHealth + "", 4016);
its that make it this... :
sendQuest("" + currentHealth + "10", 4016);

tlozoot
June 27th, 2010, 04:21
It used to happen to my server alot too, what i did was went there and just edited something else besides that hp thing compiled restarted server ran it and there ya go it was fixed (for me)

XxBryantD
June 27th, 2010, 18:26
ok i tryed it sohopeffully they wont die when logng on

Canownueasy`
June 27th, 2010, 19:15
Remove the calling of your die method wherever unecessary.

XxBryantD
July 9th, 2010, 14:56
still need help

Emperor
July 9th, 2010, 15:07
Simply change the coordinates where TzTok-Jad goes on logout. It should be the killMyNpcs method, change the coordinates from X: 0, Y: 0 to something like X: 200, Y: 200.