-
Posts
7,281 -
Credits
0 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Posts posted by Fanky
-
-
May I ask something?
Why someone must be UNDER 18?
-
2)AION pvp system(delay)
can you provide some more informations/stuff about this feature?I want some fresh ideas and I currently lack of
-
You should learn how to use arrays,it would help you a lot.
-
That's logically wrong, kinda..
+ // Add Fighter or Mage Tattoos + if (getPvpKills() == Config.PVP_COUNT) + { + if (Config.FIGHTER_TATTOO_ENABLE && !isMageClass()) + { + addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true); + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Fighter Tattoo."); + } + else if(Config.MAGE_TATTOO_ENABLE) + { + addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true); + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Mage Tattoo."); + } + }
From my pov, first of all, you should check if the config is enabled. If yes, proceed, else do nothing. :P
That's logically wrong, kinda..
+ // Add Fighter or Mage Tattoos + if (getPvpKills() == Config.PVP_COUNT) + { + if (Config.FIGHTER_TATTOO_ENABLE && !isMageClass()) + { + addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true); + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Fighter Tattoo."); + } + else if(Config.MAGE_TATTOO_ENABLE) + { + addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true); + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Mage Tattoo."); + } + }
From my pov, first of all, you should check if the config is enabled. If yes, proceed, else do nothing. :P
you are right,I didnt noticed it
-
nice! =)
As I said for something like that - i mean such small and easy2do codes - there isn't any reason to make your life harder.Just use the existing methods and you are done.
gl in your next ones
-
near the 'console' there is another field called 'problems'
press on this,and get a picture
-
mate just do it:
+ if (Config.FIGHTER_TATTOO_ENABLE && pvpKillCount == Config.PVP_COUNT && !isMageClass())+ {+ addItem(Config.TATTOO_FIGHTER_ID);+ sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Fighter Tattoo.");also here need a invetory-items update+ }+ else if(Config.MAGE_TATTOO_ENABLE && pvpKillCount == Config.PVP_COUNT1 )+ {+ addItem(Config.TATTOO_MAGE_ID);+ sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Mage Tattoo.");also here need a invetory-items update+ }+ }it won't work,lol.check the way he created the method he calls.
baggos,there's no reason to make your life harder by doing all these(which doesn't work btw) stuff for something simple.
check below,for such a code you need just a simple check in the place that pvps are increased,nothing else.
### Eclipse Workspace Patch 1.0 #P gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 42) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -4811,6 +4811,18 @@ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); + if (getPvpKills() == 100) + { + if (!isMageClass()) + { + addItem("PvP Reward", Config.REWARD_FIGHTER_ID, Config.REWARD_FIGHTER_COUNT, this, true); + sendMessage("You've been rewarded with a fighter tattoo"); + } + else + { + addItem("PvP Reward", Config.REWARD_MAGE_ID, Config.REWARD_MAGE_COUNT, this, true); + sendMessage("You've been rewarded with a mage tatoo"); + } + } + PvpPkColorSystem.getInstance().checkPvpColors(this); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 41) +++ java/net/sf/l2j/Config.java (working copy) @@ -422,6 +422,11 @@ /** Buffs */ public static boolean STORE_SKILL_COOLTIME; public static byte BUFFS_MAX_AMOUNT; + + public static int REWARD_FIGHTER_ID; + public static int REWARD_FIGHTER_COUNT; + public static int REWARD_MAGE_ID; + public static int REWARD_MAGE_COUNT; //-------------------------------------------------- // Server @@ -1134,6 +1139,10 @@ BUFFS_MAX_AMOUNT = Byte.parseByte(players.getProperty("MaxBuffsAmount","20")); STORE_SKILL_COOLTIME = Boolean.parseBoolean(players.getProperty("StoreSkillCooltime", "true")); + REWARD_FIGHTER_ID = Integer.parseInt(players.getProperty("RewardFighterID","1")); + REWARD_FIGHTER_COUNT = Integer.parseInt(players.getProperty("RewardFightCount","2")); + REWARD_MAGE_ID = Integer.parseInt(players.getProperty("RewardMageId","3")); + REWARD_MAGE_COUNT = Integer.parseInt(players.getProperty("RewardMageCount","4")); } catch (Exception e) { Index: config/players.properties =================================================================== --- config/players.properties (revision 41) +++ config/players.properties (working copy) @@ -310,4 +310,10 @@ MaxBuffsAmount = 20 # Store buffs/debuffs on user logout? -StoreSkillCooltime = True \ No newline at end of file +StoreSkillCooltime = True + +#Class Based pvp reward at 100 pvps +RewardFighterID = 1 +RewardFighterCount = 2 +RewardMageID = 3 +RewardMageCount = 4 \ No newline at end of file
-
Posted 25 November 2014 - 05:22 PMcheck the date for what?
-
ανα 2 μερες κανει καποιος ποστ εδω?
Πάνε οι καλες εποχές :D
-
Acis for sure ...and its clean stable but still miss some things (quests rewrite skil formul and refactor movment ..)
did you even checked the date?
lol
-
only maxtor can help you with this issue
-
www.l2jserver.com
-
srsly?
all these replies & 3 pages for one line of code?
are you serious?
-
Υπάρχουν αρκετά τέτοια npc shared,γιατι δεν ψάχνεις λιγο;
-
Δοκίμασε μία το παρακάτω... Πήγαινε net.sf.l2j.gameserver.network.clientpackets.RequestRestartPoint.java
(Δεν μπορώ να δοκιμάσω αν δουλέψει γιατί τα'χει παίξει το pc).
case 27: // to jail
if (!activeChar.isInJail())
return;
loc = new Location(-114356, -249645, -2984);
break;
-
- default:
- loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);
- break;
- }
+
+ default:
+ if (activeChar.isDead())
+ {
+ loc = new Location(82480, 149087, -3350);
+ break;
+ }
+ loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);
+ break;
+ }
τι εκανες εκει..;;
geia sas ftiaxnw ena server kai thelw na kanw otan paithenis na se bgazi giran 3erei kaneis na me boithisi?
requestrestartpoint.java
- loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);
+ loc = new Location(X, Y, Z);
-
Δεν κατάλαβα το δεύτερο μέρος,θες να το εξηγήσεις καλύτερα;;
'
Επειτα να επιστρεφει σε ενα HTML περνωντας τις τιμες απο την βαση δεδομενων.'
-
You didn't say the package :3
L2GrandBossInstance
-
by 'custom' you mean a totally new weapon?
because,in that case,your request has nothing to do with java side
-
client/project/rev
-
-
Actually i was going to copy pride's inspect but i thought it will be cool to make it like that: (As it is now)
Target player press .inspect (shows the whole inventory ) not a html, just a real inventory like the ALT+G menu packet
.inspectoff if you dont want to be inspected , yea you might had it before 2 years. Indeed i did not made a research. But in the end, isnt the same right?
dude changing some packets doesn't make your idea unique nor different..
no offense
-
You are being sarcastic ofc
Ι can assure you,i wasn't.
I'm telling you the truth,I admire your imagination.
-
lol
i was always admiring your imagination,
I wish I had such imagination >>>
-
Help
in Request Server Development Help [Greek]
Posted
δείξε μας το error που σου βγάζει.