-
Posts
507 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Rio
-
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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? -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
hmm i tried this method but it doesnt reward players :/ -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
-bump- -
L2Java - Faction WIPE TODAY 6PM!!! LEFT ONLY SOME HOURS!!!
Rio replied to Dreigons's topic in Private Servers
i meantioned that on video all daggers wear heavy :o , anyway i like faction server, cool features pretty nice community and much more, recomended :) -
[Share]Different Name Color Between races
Rio replied to ServeSATAN's topic in Server Shares & Files [L2J]
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] ^ -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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 :/ -
[Share]Different Name Color Between races
Rio replied to ServeSATAN's topic in Server Shares & Files [L2J]
it is working tested on interlude. -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
Hah yeah that was the problem double getrace :D MULTUMESC MULT! thank you !!! c ya around dude :') -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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 :( -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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. -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
here it is :http://pastebin.com/CxVC95k6 -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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 :/ -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
i did smth wrong? -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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!"); } -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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 -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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 -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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); -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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? -
[Share]Different Name Color Between races
Rio replied to ServeSATAN's topic in Server Shares & Files [L2J]
thank you -
[Help] Class related pvp reward
Rio replied to Rio's question in Request Server Development Help [L2J]
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 -
[Share]Different Name Color Between races
Rio replied to ServeSATAN's topic in Server Shares & Files [L2J]
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? -
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 :)
-
[Help] Quak System Alternative...
Rio replied to CrazyDeagle's question in Request Server Development Help [L2J]
/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())); :-\ -
[Help] Quak System Alternative...
Rio replied to CrazyDeagle's question in Request Server Development Help [L2J]
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 -
[Help] Quak System Alternative...
Rio replied to CrazyDeagle's question in Request Server Development Help [L2J]
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 :/