Jump to content

i am prod

Member
  • Content count

    37
  • Joined

  • Last visited

  1. Nice release, using now. Thanks!
  2. Nice source as far as I can tell, thanks for release!
  3. Damn, didn't even change your leeched source's name. Terrible.
  4. [MENTION=17381]Hash[/MENTION] Idk if that will work or not I might try it later but I already fixed it hehe. Here is the fragment that made it so you get 2 Pkp inside Fun Pk (Yes I know I said I wanted one before, but w.e) and 5 outside of Fun Pk when you kill someone. [code] if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) { if (c.inFunPk()) { o.pkPoints = (o.pkPoints + 2); o.sendMessage("You get 2 PK Point for killing someone in Fun Pk! But no Exp :("); return; } o.pkPoints = (o.pkPoints + 5); o.sendMessage("You received 5 PK Points for NOT being in Fun Pk!"); o.sendMessage("You wiped the floor with " +Misc.optimizeText(c.playerName)+ "!"); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; o.getPA().addSkillXP(150000, 23); //c.getPA().addSkillXP(-4000, 23); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], o.playerId); o.sendMessage("You received an EP drop, Congratulations!"); o.sendMessage("Your EP decreased to: "+c.earningPotential+" :(."); } } else { //c.getPA().addSkillXP(-4000, 23); o.sendMessage("You do not recieve PK Points because you have killed " +c.playerName+ " twice in a row, fight others!"); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], c.playerId); o.sendMessage("Your EP decreased to: "+c.earningPotential+" :(.");[/code] As you can see, this is what I added: [code] if (c.inFunPk()) { o.pkPoints = (o.pkPoints + 2); o.sendMessage("You get 2 PK Point for killing someone in Fun Pk! But no Exp :("); return; }[/code] and it seems to be working. If you spot something that could pose a problem...please tell me! And thank you very much hash for trying to help! :)
  5. === I SOLVED THIS, CHECK POST #4 :D === Alright so I do have a Public Boolean for whether or not you're in Fun Pk, [code]inFunPk()[/code] and I was going to try it here in my PlayerAssistant [code] if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) { o.pkPoints = (o.pkPoints + 3); o.sendMessage("You received 3 PK Points"); o.sendMessage("You wiped the floor with " +Misc.optimizeText(c.playerName)+ "!"); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; o.getPA().addSkillXP(150000, 23); //c.getPA().addSkillXP(-4000, 23); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], o.playerId); o.sendMessage("You received an EP drop, Congratulations!"); o.sendMessage("Your EP decreased to: "+c.earningPotential+" :(."); } } else { //c.getPA().addSkillXP(-4000, 23); o.sendMessage("You do not recieve PK Points because you have killed " +c.playerName+ " twice in a row, fight others!"); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], c.playerId); o.sendMessage("Your EP decreased to: "+c.earningPotential+" :(."); } } } }[/code] but I don't know how to make it give different Pkp's. I would like if you're in fun pk to only get 1 Pkp but if you're in the wild you get 5. Anyone help, please? Not too savvy with java so any help is appreciated :P
  6. Fixed it by comparing differences in files and then copying and pasting from the original files (without mucking up stuff that I have done to the client.java lol) But anyways thanks anyone who tryed to help, but I guess I still need help on the error when you die (This error pops up in the CMD) [code][8/21/12 2:11 AM]: java.lang.NullPointerException [8/21/12 2:11 AM]: at server.model.players.PlayerAssistant.applyDead(Player Assistant.java:1626) [8/21/12 2:11 AM]: at server.model.players.Client.process(Client.java:1791) [8/21/12 2:11 AM]: at server.model.players.PlayerHandler.process(PlayerHand ler.java:152) [8/21/12 2:11 AM]: at server.Server.main(Server.java:202)[/code]
  7. It double posted the above post :\ Edited it gone..Sorry! D:
  8. Yea actually that always does that already, nnot when you "die"
  9. Isn't that in the PlayerAssistant file? Because I posted my entire file. [MENTION=17381]Hash[/MENTION] - Nothing happens in the Server CMD but in the Client CMD it has this [code]Error: T1 - 123,0 - 36,36 Error: T2 - 126,126,71 - 20,0,0 - 84,111,116,97,108,32,76,101,118,101,108,58,32 50,51,55,54,10,121,95, Error: T2 - 126,126,126 - 7,0,0 - 50,51,55,54,10,121,96, Error: T2 - 126,126,126 - 24,0,0 - 84,111,116,97,108,32,88,80,58,32,45,49,54,56 56,48,52,55,50,49,51,10,121,94, 1 1 2 1 1 1[/code] But I am pretty sure it was doing that before this even happened.. Idk. :\
  10. If anyone needs any of my other files posted or something just let me know! Please help lol
  11. Got most of it fixed, but check my last few posts as there is still a bug I need help on...if you're feeling nice I would greatly appreciate any help :)
  12. Thanks!! :D You're Awesome haha
×