Jump to content

Rio

Members
  • Posts

    507
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Rio

  1. sorry but it doesnt :/ this method works fine but it rewards x4 all classes except humans :/ if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace() == Race.dwarf || target.getRace() == Race.orc || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.darkelf && target.getRace() == Race.human || target.getRace() == Race.dwarf || target.getRace() == Race.orc || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.dwarf && target.getRace() == Race.human || target.getRace() == Race.darkelf || target.getRace() == Race.orc || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.orc && target.getRace() == Race.human || target.getRace() == Race.darkelf || target.getRace() == Race.dwarf || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.elf && target.getRace() == Race.human || target.getRace() == Race.darkelf || target.getRace() == Race.dwarf || target.getRace() == Race.orc) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } This one doesnt reward any of races. if (this.getRace() != target.getRace()) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } :( any ideas?
  2. hmm i tried this method but it doesnt reward players :/
  3. i meantioned that on video all daggers wear heavy :o , anyway i like faction server, cool features pretty nice community and much more, recomended :)
  4. Hey matim i think these codes arent right check this out: [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\network\clientpackets\EnterWorld.java:583: ')' expected [javac] player.getAppearance().setNameColor(0000FF); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\network\clientpackets\EnterWorld.java:583: illegal start of expression [javac] player.getAppearance().setNameColor(0000FF); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\network\clientpackets\EnterWorld.java:589: ')' expected [javac] player.getAppearance().setNameColor(6600CC); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\network\clientpackets\EnterWorld.java:589: illegal start of expression [javac] player.getAppearance().setNameColor(6600CC); [javac] ^
  5. well i have problem here :/ // pvp class related reward if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace() == Race.dwarf || target.getRace() == Race.orc || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.darkelf && target.getRace() == Race.human || target.getRace() == Race.dwarf || target.getRace() == Race.orc || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.dwarf && target.getRace() == Race.human || target.getRace() == Race.darkelf || target.getRace() == Race.orc || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.orc && target.getRace() == Race.human || target.getRace() == Race.darkelf || target.getRace() == Race.dwarf || target.getRace() == Race.elf) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } if (getRace() == Race.elf && target.getRace() == Race.human || target.getRace() == Race.darkelf || target.getRace() == Race.dwarf || target.getRace() == Race.orc) { addItem("Loot", 6373, 1, this, true); sendMessage("You won 1 PvP Skull from your enemy!"); } when i kill with other classes they dont take reward, only dwarf takes and he takes 4 rewards for a kill :/
  6. it is working tested on interlude.
  7. Hah yeah that was the problem double getrace :D MULTUMESC MULT! thank you !!! c ya around dude :')
  8. i clicked >Raw>http://pastebin.com/raw.php?i=6AZsh5z3>copy>paste in my eclipse > error: [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4559: cannot find symbol [javac] symbol : variable getRace [javac] location: class com.it.br.gameserver.model.actor.instance.L2PcInstance [javac] if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace.getRace() == Race.dwarf) [javac] ^ [javac] Note: C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 1 error :(
  9. not working error: [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4464: increasePvpKills(com.it.br.gameserver.model.actor.instance.L2PcInstance) in com.it.br.gameserver.model.actor.instance.L2PcInstance cannot be applied to () [javac] increasePvpKills(); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4479: increasePvpKills(com.it.br.gameserver.model.actor.instance.L2PcInstance) in com.it.br.gameserver.model.actor.instance.L2PcInstance cannot be applied to () [javac] increasePvpKills(); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4494: increasePvpKills(com.it.br.gameserver.model.actor.instance.L2PcInstance) in com.it.br.gameserver.model.actor.instance.L2PcInstance cannot be applied to () [javac] increasePvpKills(); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4559: cannot find symbol [javac] symbol : variable getRace [javac] location: class com.it.br.gameserver.model.actor.instance.L2PcInstance [javac] if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace.getRace() == Race.dwarf) [javac] ^ [javac] Note: C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 4 errors i did add your confings :( anyway i dont wanna trouble you anymore, also this thing gets spammy, i quit for now , see you in few weeks i guess when i get some java basic skills. thnx for your time.
  10. here it is :http://pastebin.com/CxVC95k6
  11. alright guys ill start learning but i want to solve this 1st please :( xAddytzu when i typed increasePvpKills(this); i got this error [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4515: invalid method declaration; return type required [javac] increasePvpKills(this); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4515: illegal start of type [javac] increasePvpKills(this); [javac] ^ [javac] 2 errors thats why i tried with that method :/
  12. i did smth wrong?
  13. public void increasePvpKills(this); if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace.getRace() == Race.dwarf) { addItem("Loot", 8732, 1, this, true); sendMessage("You won 1 lifestone for a pvp kill!"); }
  14. error: [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4515: invalid method declaration; return type required [javac] increasePvpKills(this); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4515: illegal start of type [javac] increasePvpKills(this); [javac] ^ [javac] 2 errors
  15. i did tried it man but i got error : [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4464: increasePvpKills(com.it.br.gameserver.model.actor.instance.L2PcInstance) in com.it.br.gameserver.model.actor.instance.L2PcInstance cannot be applied to () [javac] increasePvpKills(); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4479: increasePvpKills(com.it.br.gameserver.model.actor.instance.L2PcInstance) in com.it.br.gameserver.model.actor.instance.L2PcInstance cannot be applied to () [javac] increasePvpKills(); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4494: increasePvpKills(com.it.br.gameserver.model.actor.instance.L2PcInstance) in com.it.br.gameserver.model.actor.instance.L2PcInstance cannot be applied to () [javac] increasePvpKills(); [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4558: cannot find symbol [javac] symbol : variable getRace [javac] location: class com.it.br.gameserver.model.actor.instance.L2PcInstance [javac] if (getRace() == Race.human && ((L2PcInstance)target).getRace() == Race.darkelf || ((L2PcInstance)target).getRace.getRace() == Race.dwarf) [javac] ^ [javac] Note: C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 4 errors
  16. look man while i set public void increasePvpKills(L2PcInstance target) public void increasePvpKills() i get this error [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4515: ';' expected [javac] public void increasePvpKills(L2PcInstance target) [javac] ^ [javac] 1 error p.s i tried it in many ways:1) void increasePvpKills((L2PcInstance)target) 2)increasePvpKills((L2PcInstance)target); 3)increasePvpKills(L2PcInstance target);
  17. nop not working with ((L2PcInstance)target) error: [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4558: cannot find symbol [javac] symbol : variable target [javac] location: class com.it.br.gameserver.model.actor.instance.L2PcInstance [javac] if (getRace() == Race.human && ((L2PcInstance)target).getRace() == Race.darkelf || ((L2PcInstance)target).getRace() == Race.dwarf) [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4558: cannot find symbol [javac] symbol : variable target [javac] location: class com.it.br.gameserver.model.actor.instance.L2PcInstance [javac] if (getRace() == Race.human && ((L2PcInstance)target).getRace() == Race.darkelf || ((L2PcInstance)target).getRace() == Race.dwarf) [javac] ^ [javac] Note: C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 2 errors what do you mean to declare in my method L2PcInstance target?
  18. here we go again :/ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); // pvp class related reward if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace() == Race.dwarf) { addItem("Loot", 8732, 1, this, true); sendMessage("You won 1 lifestone for a pvp kill!"); } error: [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4559: cannot find symbol [javac] symbol : variable target [javac] location: class com.it.br.gameserver.model.actor.instance.L2PcInstance [javac] if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace() == Race.dwarf) [javac] ^ [javac] C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\model\actor\instance\L2PcInstance.java:4559: cannot find symbol [javac] symbol : variable target [javac] location: class com.it.br.gameserver.model.actor.instance.L2PcInstance [javac] if (getRace() == Race.human && target.getRace() == Race.darkelf || target.getRace() == Race.dwarf) [javac] ^ [javac] Note: C:\Server SVN\L2JBrasil_CORE\java\com\it\br\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 2 errors
  19. how about if i want to set my own colors? # case human: player.getAppearance().setNameColor(0xff7f00); break; case elf: player.getAppearance().setNameColor(0xff0000); break; case darkelf: player.getAppearance().setNameColor(0x00ffff); break; case orc: player.getAppearance().setNameColor(0x0099ff); break; case dwarf: player.getAppearance().setNameColor(0x70db93); where can i find codes for other colors?
  20. well i saw that:http://www.maxcheaters.com/forum/index.php?topic=170488.0 and wanted to make it like when human class kills ( light elf, dark elf, orc or dwarf class, gets reward for exaple 1 ls) P.S if human kills his own race human dont take reward How can this be done? it must be smth like this if ( class id of human ) kills ( L.ELF id , D.ELF id, ORC id, DWARF id) { addItem("Loot", 8732, 1, this, true); sendMessage("You won 1 lifestone for a pvp kill!"); } please help me with this code, give me human example and ill make it on my own with the other classes ty :)
  21. /offtopic wish it was so easy :/ i ordered a book to learn java. i think its gonna take me some time untill i learn the basics. /ontopic public int getSpreeKills() { return quakeSystem; } quakeSystem++; for (L2PcInstance player : L2World.getInstance().getAllPlayers()) { if(target.getSpreeKills() > 4) player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills())); switch(quakeSystem) { case 4: Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!"); if(target.getSpreeKills() > 4) player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the domination to "+target.getName()+" with "+target.getSpreeKills())); :-\
  22. so it should be like this?: Create the method getSpreeKills public int getSpreeKills() { return spreeKills; } @@ quakeSystem++; for (L2PcInstance player : L2World.getInstance().getAllPlayers()) { if(target.getSpreeKills() > 4) player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills())); switch(quakeSystem) { case 4: Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!"); if(target.getSpreeKills() > 4) player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the domination to "+target.getName()+" with "+target.getSpreeKills())); afff i'm rly pain in the -beep- :S
  23. alright i made it look like this: quakeSystem++; for (L2PcInstance player : L2World.getInstance().getAllPlayers()) { if(target.getSpreeKills() > 4) player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills())); switch(quakeSystem) { case 4: Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!"); if(target.getSpreeKills() > 4) player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the domination to "+target.getName()+" with "+target.getSpreeKills())); but i think i forgot smth cause i still get error :/
×
×
  • Create New...