Jump to content

SweeTs

Legendary Member
  • Posts

    8,941
  • Credits

  • Joined

  • Last visited

  • Days Won

    25
  • Feedback

    0%

Everything posted by SweeTs

  1. New -> Project -> Load from ant build, as I rem :) For datapack new -> project -> empty project -> drag and drop? Smthing like
  2. To let you know, with longer text it look bad (look @ ss) :) Click Also, I just added it fast on Interlude and well.. it's buggy with at least two words in title or I messed it up :rage:. Title should be: I am SweeTs and the text: O rly? ;D Click and Click
  3. But be aware of that in case of full install, you will lose all added npcs and spawns. :P So, better clean accounts and character tables.
  4. Doesn't exist. Create 'one'! ;D
  5. Any preview? Video or so.. :)
  6. First 'clean' and then register again. Put hexid to config folder and you're done. Just in case: make sure it's hexid and not hixid(server1) or so.. :P There is no way "it doesn't work" or "nothing happens" :)
  7. Create NEW hexid, simple like that.
  8. Haa! You see Tryky, lazy polako has sometimes good ideas :-beep- yeah: I knew that will work since I did the same before.. :P Anyway, I'm glad that I could help :P
  9. You can do a small trick. Create a SVN with clean version, download project from SVN, c/p all files from edited one, and commit it. I think it should work, i'm not sure :P
  10. If you used SVN and added your own changes, yes. Then you will notice a * at your project. Right click on project -> Team -> Create Patch
  11. Profile Posts
  12. So dont spam? If you want "see" how it looks like, check 1st or 2nd page, you can find a photo.
  13. Once again read error, you miss one table in you database. Reinstall your database, and make sure the name is correct in properties and in navicat :P
  14. Change name of database to correct one? Read damn error. Unknows database: "l2jdbl2jdb"
  15. And what's not working with gm shop? Error while executing .sql file, lol..? Take a look here and stop dat drama... Ehhh Warning: SQL files are outdatted.
  16. OR, use any py buffer (since you're using old rev with py support) and try to understand the error. You fail, so you post here your error and the script, so someone will help you/give some tips, simple like that. It's not a supermarket that someone will search for you ready stuff. On my 4shared acc I got 2 (if im not wrong) buffers, but not so easy :P Show little engagement.
  17. Here you go Click meh.
  18. Or you can do it via core side ### Eclipse Workspace Patch 1.0 #P gameserver Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 125) +++ java/net/sf/l2j/Config.java (working copy) @@ -294,6 +294,10 @@ /** Misc */ public static int STARTING_ADENA; + public static boolean SPAWN_CHAR; + public static int SPAWN_X; + public static int SPAWN_Y; + public static int SPAWN_Z; public static boolean EFFECT_CANCELING; public static double HP_REGEN_MULTIPLIER; public static double MP_REGEN_MULTIPLIER; @@ -899,6 +903,10 @@ is.close(); STARTING_ADENA = Integer.parseInt(players.getProperty("StartingAdena", "100")); + SPAWN_CHAR = Boolean.parseBoolean(players.getProperty("CustomSpawn", "false")); + SPAWN_X = Integer.parseInt(players.getProperty("SpawnX", "")); + SPAWN_Y = Integer.parseInt(players.getProperty("SpawnY", "")); + SPAWN_Z = Integer.parseInt(players.getProperty("SpawnZ", "")); EFFECT_CANCELING = Boolean.valueOf(players.getProperty("CancelLesserEffect", "True")); HP_REGEN_MULTIPLIER = Double.parseDouble(players.getProperty("HpRegenMultiplier", "100")) /100; MP_REGEN_MULTIPLIER = Double.parseDouble(players.getProperty("MpRegenMultiplier", "100")) /100; Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 125) +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy) @@ -192,7 +192,10 @@ L2PcTemplate template = newChar.getTemplate(); newChar.addAdena("Init", Config.STARTING_ADENA, null, false); - newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ); + if (Config.SPAWN_CHAR) + newChar.setXYZInvisible(Config.SPAWN_X, Config.SPAWN_Y, Config.SPAWN_Z); + else + newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ); newChar.setTitle(""); newChar.registerShortCut(new L2ShortCut(0,0,3,2,-1,1)); // attack shortcut Players.properties # Set true for custom spawn location. CustomSpawn = True SpawnX = 83414 SpawnY = 148628 SpawnZ = -3410
  19. Well, I'm so kind (right now) so, try this, it's supposed to work -- small c/p ;D --- gameserver/config/players.properties +++ gameserver/config/players.properties @@ -341,3 +341,9 @@ PKRewardEnabled = True PKRewardItemId = 6392 PKRewardAm-beep-t = 1 + +# On / off infinite nipples (SS/BSS) +DontDestroySS = True + +#On / Off don`t destroy arrows +DontDestroyArrows = True \ No newline at end of file --- gameserver/java/net/sf/l2j/Config.java +++ gameserver/java/net/sf/l2j/Config.java @@ -416,6 +416,8 @@ public static int PK_REWARD_ID; public static int PK_REWARD_A-beep-T; + public static boolean DONT_DESTROY_SS; + public static boolean DONT_DESTROY_ARROWS; /** Augmentations */ public static int AUGMENTATION_NG_SKILL_CHANCE; @@ -1186,6 +1188,12 @@ PK_REWARD_ID = Integer.parseInt(players.getProperty("PKRewardItemId", "6392")); PK_REWARD_A-beep-T = Integer.parseInt(players.getProperty("PKRewardAm-beep-t", "1")); + /** other settings **/ + // Destroy ss + DONT_DESTROY_SS = Boolean.parseBoolean(players.getProperty("DontDestroySS", "false")); + // Destroy arrows + DONT_DESTROY_ARROWS = Boolean.parseBoolean(players.getProperty("DontDestroyArrows", "false")); + AUGMENTATION_NG_SKILL_CHANCE = Integer.parseInt(players.getProperty("AugmentationNGSkillChance", "15")); AUGMENTATION_NG_GLOW_CHANCE = Integer.parseInt(players.getProperty("AugmentationNGGlowChance", "0")); AUGMENTATION_MID_SKILL_CHANCE = Integer.parseInt(players.getProperty("AugmentationMidSkillChance", "30")); --- gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/BeastSoulShot.java +++ gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/BeastSoulShot.java @@ -14,6 +14,7 @@ */ package net.sf.l2j.gameserver.handler.itemhandlers; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; @@ -93,13 +94,15 @@ } // If the player doesn't have enough beast soulshot remaining, remove any auto soulshot task. + if(!Config.DONT_DESTROY_SS) + { if (!activeOwner.destroyItemWithoutTrace("Consume", item.getObjectId(), shotConsumption, null, false)) { if (!activeOwner.disableAutoShot(itemId)) activeOwner.sendPacket(SystemMessageId.NOT_ENOUGH_SOULSHOTS_FOR_PET); return; } - + } activeOwner.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.PET_USES_S1).addItemName(itemId)); Broadcast.toSelfAndKnownPlayersInRadiusSq(activeOwner, new MagicSkillUse(activePet, activePet, 2033, 1, 0, 0), 360000); } --- gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/BeastSpiritShot.java +++ gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/BeastSpiritShot.java @@ -14,6 +14,7 @@ */ package net.sf.l2j.gameserver.handler.itemhandlers; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; @@ -97,14 +98,15 @@ else weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_SPIRITSHOT); } - + if(!Config.DONT_DESTROY_SS) + { if (!activeOwner.destroyItemWithoutTrace("Consume", item.getObjectId(), shotConsumption, null, false)) { if (!activeOwner.disableAutoShot(itemId)) activeOwner.sendPacket(SystemMessageId.NOT_ENOUGH_SPIRITSHOTS_FOR_PET); return; } - + } activeOwner.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.PET_USES_S1).addItemName(itemId)); Broadcast.toSelfAndKnownPlayersInRadiusSq(activeOwner, new MagicSkillUse(activePet, activePet, ((itemId == 6646) ? 2008 : 2009), 1, 0, 0), 360000); } --- gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/BlessedSpiritShot.java +++ gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/BlessedSpiritShot.java @@ -14,6 +14,7 @@ */ package net.sf.l2j.gameserver.handler.itemhandlers; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; @@ -90,6 +91,8 @@ } // Consume bss if player has enough of them + if(!Config.DONT_DESTROY_SS) + { if (!activeChar.destroyItemWithoutTrace("Consume", item.getObjectId(), weaponItem.getSpiritShotCount(), null, false)) { if (!activeChar.disableAutoShot(itemId)) @@ -97,7 +100,7 @@ return; } - + } // Charge bss weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_BLESSED_SPIRITSHOT); --- gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/SoulShots.java +++ gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/SoulShots.java @@ -14,6 +14,7 @@ */ package net.sf.l2j.gameserver.handler.itemhandlers; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; @@ -94,6 +95,8 @@ return; // Consume Soul shots if player has enough of them + if(!Config.DONT_DESTROY_SS) + { int saSSCount = (int) activeChar.getStat().calcStat(Stats.SOULSHOT_COUNT, 0, null, null); int SSCount = saSSCount == 0 ? weaponItem.getSoulShotCount() : saSSCount; @@ -104,7 +107,7 @@ return; } - + } // Charge soulshot weaponInst.setChargedSoulshot(L2ItemInstance.CHARGED_SOULSHOT); } --- gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/SpiritShot.java +++ gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/SpiritShot.java @@ -14,6 +14,7 @@ */ package net.sf.l2j.gameserver.handler.itemhandlers; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; @@ -89,6 +90,8 @@ } // Consume sps if player has enough of them + if(!Config.DONT_DESTROY_SS) + { if (!activeChar.destroyItemWithoutTrace("Consume", item.getObjectId(), weaponItem.getSpiritShotCount(), null, false)) { if (!activeChar.disableAutoShot(itemId)) @@ -96,7 +99,7 @@ return; } - + } // Charge sps weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_SPIRITSHOT); --- gameserver/java/net/sf/l2j/gameserver/model/actor/L2Character.java +++ gameserver/java/net/sf/l2j/gameserver/model/actor/L2Character.java @@ -859,10 +859,12 @@ boolean miss1 = Formulas.calcHitMiss(this, target); // Consume arrows + if(!Config.DONT_DESTROY_ARROWS) + { reduceArrowCount(); _move = null; - + } // Check if hit isn't missed if (!miss1) { Bubu, bad mama Tryskell ;D
  20. This is what you're looking for ;) http://maxcheaters.com/forum/index.php?topic=222420.0
  21. Old .sql part, add it by hand or c/p other npc's structure :x
×
×
  • Create New...