Jump to content

Acacia

Members
  • Posts

    53
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by Acacia

  1. i think he meant info for zones like elven forest 10-15 elven fortress 15-20 etc etc , to add info on his html on gk unfortunately i don't know , incase you know any website to help him drop it
  2. there are countless Spree Systems shared bro .
  3. it changes the current equiped Item's visual ( saves in db under item id in inventory table ). if u equip another equipment it wont have the other visual . u'll have to reuse
  4. DressMe for L2JSunrise Got this now from a random forum , Its Tested i adapted it before on both acis and l2j worked as a charm HF
  5. Its possible though it should located in client's interface
  6. Its an old adapted code i made many years ago , just adapted it for latest Acis rev feel free to correct any unnecessary lines or issues ( it works as intended and good to go though ) its easy to extend *Missing Mods ( Teleporter & Symbol Maker , didn't had time to adapt from my old rev ) DIFF ( CODE ) HTML FILES Locate : data/xml/items/5500-5599.xml ( Tutorial Guide ) Locate Item Id : 5588 change : <set name="handler" val="Book" /> to : ----> <set name="handler" val="Cubic" />
  7. Hello , i coded this one a lil while ago for someone that requested it , i'll just drop it here aswell PVP PK TITLE RANK <--- DIFF Format for Latest Acis Rev Code: @Kishin Apply it using the diff or navigate and do it manually It does Updates when a new PvP / PK or when changing your Title max title letters changed to 9 ( more than that it hides the pvp/count letters ) Have fun
  8. PVP PK RANK UPDATE <-- Code: @Kishin Here you go ready to use . coded on latest sources of acis on diff format , or you can apply it or navigate and paste it manually . it does updates when new pvp / pk or changing title max title letters changed to 9 ( more than that it hides the pvp/count letters )
  9. ye was about to do that , but was curious of its purpose . since even if i did implement it how it was , i would have to rework the whole src . though ty for the file . i'll look around and work around on these
  10. any news about compiler for prot 152 , salvation etina's ?
  11. Never had an issue with kara , any order i requested were given to me as he did promised and even done more than that. i don't see any reason to flag him as scammer . even if you ended getting half of the codes probably your attitude was the problem on that part learn to be able to understand people's lifes first and their current problems and listen to them instead raging cause you didnt got what u wanted on * time * cause even if your at work and end up sick, you'll get a day off next day / 's understand that. good luck
  12. create a class on -> model.actor.instance that extends Folk / L2Npc / Npc (depend the source u using) based on ur code instead using the voice command , use it on the onBypassFeedback and call ur code and appends to show the NpcHtmlWindow with onAction to Player/PlayerInstance/L2PcInstance etc create an npc afterwards as type "name of your class instance"
  13. Mobius for sure the only and best way around
  14. many classes has been moved / renamed etc java versions also has been updated , so you need to adapt em to the newest revision . if you read where and what goes , you'll find your way most of us learnt like this , so gl
  15. you can easily add the missing database sql files from the shared one , and add the the 2 missing fields on the characters/accounts file
  16. its fine mate and thank you , we all know how this forum works , everyone is a java diva around here so you dont have to take anything personal and argue about it . you walk in prepared :D
  17. ohh forgot to remove the true false part on isdouble :D was typed to be readable then remove on the other hand yes admincommand i used an old code as pattern , thank you for reply :)
  18. Okay , a simple drop event coded on l2j Sources it multiplies the drops of item only if its 100% rate you type //dropevent to start the event after 15 mins ex. and re-type //dropevent if you wish to force stop it there is a configuration on the rate default is x1.2 the event will last for 60 minutes , and it will announce back when it ends if event is active and a player logs in he will get a notification by pm Create a new class : DropEvent package com.event; import net.sf.l2j.Config; import net.sf.l2j.gameserver.Announcements; import net.sf.l2j.gameserver.ThreadPoolManager; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.clientpackets.Say2; import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; /** * @author Kishin */ public class DropEvent { private int startIn = Config.DROP_EVENT_START; private int stopIn = Config.DROP_EVENT_END; public void sendDropEventInfo(L2PcInstance player) { player.broadcastPacket(new CreatureSay(player.getObjectId() ,Say2.TELL," "+player.getName()+":","Drop Event is currently running!")); player.sendMessage("Drop event is currently running!"); } public void startEvent() { Announcements.getInstance().announceToAll("Double drop event will start in "+startIn+" minutes"); ThreadPoolManager.getInstance().scheduleGeneral(new startTimer(), (startIn *60 * 1000)); } public void forceStop() { setDoubleDrop(false); } public class startTimer implements Runnable { public void run() { setDoubleDrop(true); Announcements.getInstance().announceToAll("Double drop event has started !"); Announcements.getInstance().announceToAll("Event will end in "+stopIn+" minutes !"); ThreadPoolManager.getInstance().scheduleGeneral(new stopTimer(), (stopIn * 60 * 1000)); } } public class stopTimer implements Runnable { public void run() { if (isDoubleDrop()) { setDoubleDrop(false); Announcements.getInstance().announceToAll("Double drop event has ended"); } } } public static DropEvent getInstance() { return DropEvent.SingletonHolder._instance; } private static class SingletonHolder { protected static final DropEvent _instance = new DropEvent(); } private boolean _isDoubleDrop; public void setDoubleDrop(boolean isDoubleDrop) { _isDoubleDrop = isDoubleDrop; } public boolean isDoubleDrop() { return _isDoubleDrop; } } L2Attackable.java search this -> private RewardItem calculateCategorizedRewardItem and under this : dropChance *= Config.L2JMOD_CHAMPION_REWARDS; paste : if (DropEvent.getInstance().isDoubleDrop()) { if ( dropChance == 1000000) { dropChance *= Config.DROP_EVENT_RATE; } } EnterWorld.java -> paste somewhere if (DropEvent.getInstance().isDoubleDrop()) { DropEvent.getInstance().sendDropEventInfo(activeChar); } in Config.java paste somewhere this : public static int DROP_EVENT_START; public static int DROP_EVENT_END; public static float DROP_EVENT_RATE; pick your destination file mine is customSettings paste : DROP_EVENT_START = Integer.parseInt(customsSettings.getProperty("dropEventStart", "15")); DROP_EVENT_END = Integer.parseInt(customsSettings.getProperty("dropEventEnd", "60")); DROP_EVENT_RATE = Float.parseFloat(customsSettings.getProperty("dropEventRate", "1.2")); Create a new class in admincommandhandlers AdminDropEvent <- package net.sf.l2j.gameserver.handler.admincommandhandlers; import com.event.DropEvent; import net.sf.l2j.gameserver.Announcements; import net.sf.l2j.gameserver.handler.IAdminCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * @author Kishin */ public class AdminDropEvent implements IAdminCommandHandler { private static final String[] ADMIN_COMMANDS = { "admin_dropevent" }; @Override public boolean useAdminCommand(String command, L2PcInstance activeChar) { try { if (command.equals("admin_dropevent")) { if (DropEvent.getInstance().isDoubleDrop()) { DropEvent.getInstance().forceStop(); Announcements.getInstance().announceToAll("Admin has ended the drop event"); } else { DropEvent.getInstance().startEvent(); } } } catch (Exception e) { e.printStackTrace(); } return false; } @Override public String[] getAdminCommandList() { return ADMIN_COMMANDS; } } Have fun :) register the command handler and good to go
×
×
  • Create New...