Jump to content

dachi15

Members
  • Posts

    40
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

Everything posted by dachi15

  1. when i start server it gives errors about all weapons that server cant read weapon sql can someone help? it was working 5 minutes ago then i made //reload item and now server is not loading weapons. please need help very fast
  2. hey ppl sry if wrong section. when i start server it gives errors about all weapons that server cant read weapon sql can someone help? it was working 5 minutes ago then i made //reload item and now server is not loading weapons. please need help very fast
  3. lol i am luckiest guy on the earth :D just was making server 5 month all the day and now for the fking attribute stones i need to start from zero :|
  4. ok for now i just need to edit max enchant on element stones or if you know what i need please help i have element jewels and energys but they are not working on weapon or armor they are not working on any levels not on 7 just not working with admin i can enchant to 9 lvl but i have energys and jewels for 13 lvl
  5. i said i found that file but even if i edit when i apply patch what happens? all my server will delete? yes? all edited files
  6. yeah but i dont have that file :D thats what i am talking about :D. lets say i edited that file what to do next if i patch my whole server all files will be deleted yes? ok found that file
  7. yeah where add codes? :D Index: D:/Aqua/mid-core/config/pvp.properties =================================================================== --- D:/Aqua/mid-core/config/pvp.properties (revision 5153) +++ D:/Aqua/mid-core/config/pvp.properties (working copy) @@ -41,4 +41,29 @@ # Length one stays in PvP mode after hitting a purple player (in ms) PvPVsPvPTime = 60000 -CursedWeaponNpcInteract = False \ No newline at end of file +CursedWeaponNpcInteract = False + +# ------------------------------------------------------------- +# Costum PVP/PK settings +# ------------------------------------------------------------- +# Costum pvp/pk message +# after pvp: "Good fight,enemy pwned:)" +# after pk: "Nice kill!You are so dangerous!" +AllowCostumPvPMessage = True +# Pvp reward system +AllowPvpRewardSystem = False +# Pvp reward itemId +PvpRewardItem = 57 +# Pvp reward amount +PvpRewardAmount = 1 +# Pk reward system +AllowPkRewardSystem = False +# Pk reward itemId +PkRewardItem = 57 +# Pk reward amount +PkRewardAmount = 1 +# Allow the default PK system(+1 pk,+karma) +UseDefaultSystem = True +# Allow costum pk system (pvp point for pk,no karma) +# UseDefaultSystem need to be False! +UseCostumSystem = False \ No newline at end of file Index: D:/Aqua/mid-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- D:/Aqua/mid-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java (revision 5153) +++ D:/Aqua/mid-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -5325,7 +5325,16 @@ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); - + if(Config.ALLOW_PVP_REWARD) + { + // Item Reward system + addItem("Loot", Config.PVP_REWARD_ITEM, Config.PVP_REWARD_COUNT, this, true); + sendMessage("You will be rewarded for pvp kill!"); + } + if(Config.COSTUM_MSG_ALLOWED) + { + sendMessage("Good fight,enemy pwned:)"); + } // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } @@ -5380,9 +5389,25 @@ newKarma = Integer.MAX_VALUE - getKarma(); // Add karma to attacker and increase its PK counter - setPkKills(getPkKills() + 1); - setKarma(getKarma() + newKarma); - + if(Config.DEFAULT_PK_SYSTEM) + { + setPkKills(getPkKills() + 1); + setKarma(getKarma() + newKarma); + } + if(Config.COSTUM_PK_SYSTEM) + { + setPvpKills(getPvpKills() + 1); + } + if(Config.ALLOW_PK_REWARD) + { + // Item Reward system + addItem("Loot", Config.PK_REWARD_ITEM, Config.PK_REWARD_COUNT, this, true); + sendMessage("You will be rewarded for pk kill!"); + } + if(Config.COSTUM_MSG_ALLOWED) + { + sendMessage("Nice kill!You are so dangerous!"); + } // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } Index: D:/Aqua/mid-core/src/main/java/com/l2jfree/Config.java =================================================================== --- D:/Aqua/mid-core/src/main/java/com/l2jfree/Config.java (revision 5153) +++ D:/Aqua/mid-core/src/main/java/com/l2jfree/Config.java (working copy) @@ -689,6 +689,16 @@ public static int PVP_PVP_TIME; // Duration (in ms) while a player stay in PVP mode // after hitting a purple player public static boolean CURSED_WEAPON_NPC_INTERACT; + + public static boolean COSTUM_MSG_ALLOWED; + public static boolean ALLOW_PVP_REWARD; + public static int PVP_REWARD_ITEM; + public static int PVP_REWARD_COUNT; + public static boolean ALLOW_PK_REWARD; + public static int PK_REWARD_ITEM; + public static int PK_REWARD_COUNT; + public static boolean DEFAULT_PK_SYSTEM; + public static boolean COSTUM_PK_SYSTEM; // ******************************************************************************************* public static void loadPvpConfig() @@ -732,6 +742,18 @@ PVP_PVP_TIME = Integer.parseInt(pvpSettings.getProperty("PvPVsPvPTime", "60000")); PVP_TIME = PVP_NORMAL_TIME; CURSED_WEAPON_NPC_INTERACT = Boolean.parseBoolean(pvpSettings.getProperty("CursedWeaponNpcInteract", "false")); + + //Costum PVP/PK Message - Start + COSTUM_MSG_ALLOWED = Boolean.parseBoolean(IntrepidSettings.getProperty("AllowCostumPvPMessage", "True")); + ALLOW_PVP_REWARD = Boolean.parseBoolean(IntrepidSettings.getProperty("AllowPvpRewardSystem", "False")); + PVP_REWARD_ITEM = Integer.parseInt(IntrepidSettings.getProperty("PvpRewardItem", "57")); + PVP_REWARD_COUNT = Integer.parseInt(IntrepidSettings.getProperty("PvpRewardAmount", "1")); + ALLOW_PK_REWARD = Boolean.parseBoolean(IntrepidSettings.getProperty("AllowPkRewardSystem", "False")); + PK_REWARD_ITEM = Integer.parseInt(IntrepidSettings.getProperty("PkRewardItem", "57")); + PK_REWARD_COUNT = Integer.parseInt(IntrepidSettings.getProperty("PkRewardAmount", "1")); + DEFAULT_PK_SYSTEM = Boolean.parseBoolean(IntrepidSettings.getProperty("UseDefaultSystem", "True")); + COSTUM_PK_SYSTEM = Boolean.parseBoolean(IntrepidSettings.getProperty("UseCostumSystem", "False")); + //Costum PVP/PK Message - End } catch (Exception e) please i want it very much explain where add this code then how to compile (i think i know how to do that) and then i think i know where files will be but just say anyways its just 1 problem i have compiled other version of server i have l2j and i have compiled OFF l2j i think :D
  8. fk someone help i cant add anything to this fking server :| tell me how to add this to l2j , java server just l2j just explain how to add 1 thing i'll understand others what to do with this fking codes. i want to change max element enchant to 13 lvl i cant enchant more than 7 lvl. not only this i want pvp pk reward, ctf , dm , unlimited shots and other things, and many more.
  9. i have 1 question what to do with l2j server? lol same question for only l2j java server. wait i dont understand what to do next if i compile or something then i want to add something in this site all are for java things like pvp rewards and something like that how to add that things?? and where to add?
  10. there are guides for old eclipse :| i'll try now again i found something maybe new guide.
  11. thanks can you pm me or something how to do that? :( cause i dont know :( and i wrote it here because in english section i couldnt find similar thread
  12. can someone teach me how to add this things into server :(
  13. hey ppl can you write English? i have same problem i think i can enchant max to 7 lvl and then "attribute item usage has been cancelled" . can someone help me?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock