Jump to content

Bleadd

Members
  • Posts

    523
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Bleadd

  1. Download lastest eclipse http://eclipse.org Download lastest JRE & JDK 7 Download lastest sliksn Follow the guide.
  2. /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package custom.BossRespawn; import javolution.text.TextBuilder; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.datatables.NpcTable; public class BossRespawn extends Quest { private static final int NPC_ID = 65000; private static final int[] BOSSES = {29001, 29006, 29014, 29019, 29020, 29022, 29028, 29045}; public BossRespawn(int questid, String name, String descr) { super(questid, name, descr); addFirstTalkId(NPC_ID); } public String onFirstTalk(L2Npc npc, L2PcInstance pc) { if(npc == null || pc == null) return null; if(npc.getNpcId() == NPC_ID) { sendInfo(pc); } return null; } private void sendInfo(L2PcInstance activeChar) { TextBuilder tb = new TextBuilder(); tb.append("<html><title>Grand Boss Info By Dleogr</title><body><br><center>"); tb.append("<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>"); for(int boss : BOSSES) { String name = NpcTable.getInstance().getTemplate(boss).getName(); long delay = GrandBossManager.getInstance().getStatsSet(boss).getLong("respawn_time"); if (delay <= System.currentTimeMillis()) { tb.append("<font color=\"00C3FF\">" + name + "</color>: " + "<font color=\"9CC300\">Is Alive</color>"+"<br1>"); } else { int hours = (int) ((delay - System.currentTimeMillis()) / 1000 / 60 / 60); int mins = (int) (((delay - (hours * 60 * 60 * 1000)) - System.currentTimeMillis()) / 1000 / 60); int seconts = (int) (((delay - ((hours * 60 * 60 * 1000) + (mins * 60 * 1000))) - System.currentTimeMillis()) / 1000); tb.append("<font color=\"00C3FF\">" + name + "</color>" + "<font color=\"FFFFFF\">" +" " + "Respawn in :</color>" + " " + " <font color=\"32C332\">" + hours + " : " + mins + " : " + seconts + "</color><br1>"); } } tb.append("<br><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"); tb.append("</center></body></html>"); NpcHtmlMessage msg = new NpcHtmlMessage(NPC_ID); msg.setHtml(tb.toString()); activeChar.sendPacket(msg); } public static void main(String[] args) { new BossRespawn(-1, "BossRespawn", "custom"); } } [fr]J'ai changer le For method, en remplacant par de l'itératif for (int i = 0; i < BOSSES.length; i++) { int boss = BOSSES[i]; En pensant que cela pouvait venir du fait qu'il sache pas dans quel case du tableau chercher, mais non x) [/fr]
  3. Hello, I've an error with the BossRespawn.java (NPc that display if the RB is alive/dead.) java.lang.NullPointerException at custom.BossRespawn.BossRespawn.sendInfo(BossRespawn.java:59) at custom.BossRespawn.BossRespawn.onFirstTalk(BossRespawn.java:45) at com.l2jserver.gameserver.model.quest.Quest.notifyFirstTalk(Quest.java:526) at handlers.actionhandlers.L2NpcAction.action(L2NpcAction.java:141) at com.l2jserver.gameserver.model.L2Object.onAction(L2Object.java:280) at com.l2jserver.gameserver.model.L2Object.onAction(L2Object.java:273) at com.l2jserver.gameserver.network.clientpackets.Action.runImpl(Action.java:121) at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62) at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1095) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) and the code long delay = GrandBossManager.getInstance().getStatsSet(boss).getLong("respawn_time"); That's the line 59...
  4. <effect name="Buff" abnormalTime="7200" val="0" abnormalLvl="1" abnormalType="multi_buff"> <mul order="0x30" stat="pAtk" val="1.5" /> <mul order="0x30" stat="pDef" val="1.5" /> <mul order="0x30" stat="mAtk" val="1.25" /> <mul order="0x30" stat="mDef" val="1.25" /> <mul order="0x30" stat="maxHp" val="1.1" /> <mul order="0x30" stat="maxMp" val="1.1" /> <basemul order="0x30" stat="rCrit" val="0.2" /> <mul order="0x30" stat="pAtkSpd" val="1.1" /> <mul order="0x30" stat="mAtkSpd" val="1.03" /> </effect> Is the code for what you said. ATM the skill is good.. About COV, idk..
  5. So you don't understand the sentence : Variable isn't initialized?
  6. i guess in /vendor et /buy.. Check your properties?
  7. 1/ Read your error? 2/ There is a polymorph code for h5 on MxC
  8. The titans and tanks can't use frenzy/angelic icon. And he asks why .. And from where he can try to fix.
  9. Thanks for PM and share.
  10. Okay thanks for info. There is a little change, "bash script" instead of "sh script" x) Can lock, thx x)
  11. and there is major difference between debian and ubuntu?
  12. i think he wants, like demonic weapon, that when the player pick up (or get via admin give or something like that), the player is forced to equip this item.
  13. Hello, I'm actually under Ubuntu server 11.10 and i want to know if change to Debian, the server will work? Cordially, Bleadd
  14. search for demonic weapons.
  15. If you get it, plz share it.
  16. Look at the quote, and use this too : http://maxcheaters.com/forum/index.php?action=search;advanced
  17. What's different from my code? Better to use task? I don't get the difference between tasks like your code and adenaman/mine
  18. public void CumulKills () { this.setKillStreak(this.getKillStreak() +1); if (this.getKillStreak() == 1) { streaktime = System.currentTimeMillis(); } if ((streaktime + 5000) > System.currentTimeMillis()) { switch (this.getKillStreak()) { case 2: break; default: } } else { this.setKillStreak(1); streaktime = System.currentTimeMillis(); } } Finally, this code works.
  19. This code is a flood code. For 20 -> 50, for each kill, the script will say the things.. It's boring..
  20. Hello, how can i check if the player make, for example, 2 kills in 5 seconds. [Algorithmic] private date&hour time; (IDK actually the real name of this type) private date&hour timelast; private int cumulkill = 0; // 3 global variables in L2PcInstance in setPvpKills() method // method that add a pvp point setCumulKill(CumulKill()+1); if ( cumulkill() == 1) { time = current time; timelast = time +5 sec; } doublekill(); public void doublekill () if ( time =< timelast) { if (CumulKill() >=2) { reward doublekill; } } else { SetCumulKill (0); } public void SetCumulKill (int x) { cumulkill = x; } public int CumulKill () { return cumulkill; } [/algorithmic] This algo can works? Cordially, Bleadd
  21. You follow the diff patch,You compile the new core. You had the phoenix.jar to the libs folder, you add the needed sql to navicat/phpmyadmin. You add the needed skills.xml Anyway Phoenix Event project is dead..
  22. There is a tuto on MxC about a free version of thie engine. I guess the method is the same..
  23. [fr]Ah oui c'est vrai ya le fear ou sleep, bon j'ai rien dit xD Je vais check[/fr] In gameserver.skills.AbnormalEffect; But now that i have the name of the abnormaleffect i want, i guess there is somewhere a method to add this abnormaleffect to the PC? Edit : Found in L2Character.java StartAbnormalEffect(int mask) (mask =0x00..... from the list above) stopAbnormalEffect(int mask) (same.) Not tested, but no errors during compilation. I'll try ingame later. Tested & works. Thanks for infos :)
×
×
  • Create New...