Jump to content

dasoldier

Members
  • Posts

    10
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About dasoldier

Profile Information

  • Current Mood
    Happy
  • Gender
    Male
  • Country
    Netherlands

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

dasoldier's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. Hey all, I have shared a donation system. Still improving it and try to solve problems i have encountered. Note: Spanish is not in there yet. https://github.com/Dasoldier1/Donation_Center * register form * Now players connect their character to their donation center account It is exerimental so if you encounter some problems with the system inform us and we will look for a solution. Greetings, Dasoldier
  2. If someone needs it until h5 here it is https://github.com/Dasoldier1/Donation_Center/blob/master/system/assets/images/icons/icons.rar?raw=true
  3. I wanted to try this for a donation system i'm working on. It is not about the id's i already have a xml file with all the id's and names. It is just to show the right icon with the right item on the webpage. I have downloaded the old L2J_Web_Donation_System_by_GoDofAdeN there are around 8500 icons in there + id. So maby it was possible. I will use this folder and if there is something missing i will add it manually.
  4. Does someone know how i can get all the item icons from the game ? With the id written in the icon file name. Thanks for your time, Dasoldier
  5. Yes i will explain it a bit on how to test. Login: https://developer.paypal.com/webapps/developer/applications/ipn_simulator Step1: choose your ipn file and select web accept: Step2: check if its instant, confirmed and verified: step3: you can select every donation option just change mc_gross and custom field: Options for custom field: // Note for selecting the correct option (coins karma pk) use the correct mc_gross amount same as your config. Charactername|Coins Charactername|Karma Charactername|Pkpoints // These ones are for the enchant option. charname|Enchitems|Shirt charname|Enchitems|Helmet charname|Enchitems|Necklace charname|Enchitems|Weapon charname|Enchitems|FullarmorBreastplate charname|Enchitems|Shield charname|Enchitems|Ring1 charname|Enchitems|Ring2 charname|Enchitems|Earring1 charname|Enchitems|Earring2 charname|Enchitems|Gloves charname|Enchitems|Leggings charname|Enchitems|Boots charname|Enchitems|Belt Change MC_gross = donation amount. Same as your config otherwise the donations wont work. It will get logged into admin/donationoverview because the donation amount is not correct. And turn sandbox mode on in config if you are testing trough the ipn simulator. Otherwise it will also fail. Edit: Also good to know this system is not tested good yet, and maby it could burn your server in the near future :P. Still working on it i just dont have so mutch time lately to learn and code. When i have more time i will try to make it better.
  6. I'm not that good at coding. if something comes out, its mostly chaotic. But yea i'm trying my best to give a free tool to the l2j community. I'm mostly working alone at it so some help is welcome. Maby giving ideas to better handle the code. With example would be very usefull :)
  7. I know pdo is used on the updated version. First adding more donation options and debugging the system as best i can. i will try to keep this in mind when i'm going to worry about templates ^^
  8. Hello everyone, i wanted to ask help for a code that returns buffs(cancelled) after a certain amount of time cause i've tried to adapt on latest rev of l2j all existing cancel scripts shared but failed cause many files removed or codes merged and i cant find a way to do it. Data Rev:10247 server Rev:6478 First code open eclipse. Now go to package explorer. look into L2J_Datapack and go to data.scripts.handlers.effecthandlers and open Cancel.java open search Type: package handlers.skillhandlers; And paste this under: package handlers.skillhandlers; import javolution.util.FastList; import com.l2jserver.gameserver.datatables.SkillTable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.skills.L2Skill; then open search Type: return L2EffectType.CANCEL; } And paste under: return L2EffectType.CANCEL; } private int seconds = 13; private void returnbuffs (L2Character player, FastList<L2Effect>list) { for (L2Effect e : list) { L2Skill skill = SkillTable.getInstance().getInfo(e.getSkill().getId(), e.getLevel()); if(skill != null) { skill.getEffects(player, player); } } ((L2PcInstance)player).isoncanceltask=false; } Then open search Type: ((L2Npc)activeChar)._spiritshotcharged = false; } And remove line under: ((L2Npc)activeChar)._spiritshotcharged = false; } L2Character target; Then open search Type: if (!(obj instanceof L2Character)) continue; And remove line under: if (!(obj instanceof L2Character)) continue; target = (L2Character)obj; Replace it with: final L2Character target = (L2Character)obj; Then open search Type: final L2Effect[] effects = target.getAllEffects(); And paste under: final L2Effect[] effects = target.getAllEffects(); if (target instanceof L2PcInstance) { ((L2PcInstance)target).clearcancelbuffs(); } Then open search Type: lastCanceledSkillId = eff.getSkill().getId(); And paste under: lastCanceledSkillId = eff.getSkill().getId(); if (target instanceof L2PcInstance) { ((L2PcInstance)target).addcancelbuffs(effect); } Then open search Type: lastCanceledSkillId = eff.getSkill().getId(); And paste under: lastCanceledSkillId = eff.getSkill().getId(); if (target instanceof L2PcInstance) { ((L2PcInstance)target).addcancelbuffs(effect); } Then open search Type: //Possibility of a lethal strike Formulas.calcLethalHit(activeChar, target, skill); And paste under: //Possibility of a lethal strike Formulas.calcLethalHit(activeChar, target, skill); if (target instanceof L2PcInstance && ((L2PcInstance)target).getcancelbuffs()!=null && !((L2PcInstance)target).isoncanceltask) { ((L2PcInstance)target).sendMessage("You will get back your buffs in "+seconds+" seconds."); ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { @Override public void run() { ((L2PcInstance)target).isoncanceltask=true; returnbuffs(target, ((L2PcInstance)target).getcancelbuffs()); } },seconds * 1000); } Second code Now go to package explorer. look into com.l2jserver.gameserver.model and open L2Effect.java Press Ctrl+f to open the search tool. Type: if (_count == 0 && _icon && getEffected() instanceof L2PcInstance) { and press on search. Remove line under: if (_count == 0 && _icon && getEffected() instanceof L2PcInstance) { SystemMessage smsg3 = SystemMessage.getSystemMessage(SystemMessageId.S1_HAS_WORN_OFF); smsg3.addSkillName(_skill); getEffected().sendPacket(smsg3); and replace with: if (!((L2PcInstance)getEffected()).isoncanceltask) { SystemMessage smsg3 = SystemMessage.getSystemMessage(SystemMessageId.S1_HAS_WORN_OFF); smsg3.addSkillName(_skill); getEffected().sendPacket(smsg3); } Third code look into L2J_server and go to com.l2jserver.gameserver.model.actor.instance and open L2PcInstance.java open search Type: private static final String DELETE_TP_BOOKMARK = "DELETE FROM character_tpbookmark WHERE charId=? AND Id=?"; And paste this under: private static final String DELETE_TP_BOOKMARK = "DELETE FROM character_tpbookmark WHERE charId=? AND Id=?"; //Cancel return back buffs private FastList<L2Effect> cancelbuffs = new FastList<L2Effect>(); //wyatt public boolean isoncanceltask = false; public FastList<L2Effect> getcancelbuffs() { return cancelbuffs; } public void addcancelbuffs(L2Effect effect) { cancelbuffs.add(effect); } public void clearcancelbuffs() { cancelbuffs.clear(); } Cancel.java CHANGED DispelByCategory.java L2Effect CHANGED AbstractEffect Thnx in advance.
  9. tested in h5 client and its working fine :)
  10. nice share and yes its useful you have no idea how many clueless devs are out there who wont bother search/fix on their own unless there is already a topic on google...
×
×
  • Create New...