Jump to content

MegaCheat

Members
  • Posts

    70
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About MegaCheat

Profile Information

  • Gender
    Male
  • Country
    Germany

Recent Profile Visitors

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

MegaCheat's Achievements

Community Regular

Community Regular (8/16)

  • One Year In Rare
  • Collaborator Rare
  • Reacting Well Rare
  • First Post Rare
  • Dedicated Rare

Recent Badges

11

Reputation

  1. does anyone have one Quest, which when he kills 100 monsters Take Reward item.. but without speak any npc.. like this quest but 100 monsters package l2s.gameserver.scripts.custom; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.concurrent.TimeUnit; import l2s.commons.db.DatabaseFactory; import l2s.gameserver.Announcements; import l2s.gameserver.datatables.SkillTable; import l2s.gameserver.model.L2Skill; import l2s.gameserver.model.actor.L2Npc; import l2s.gameserver.model.actor.instance.L2PcInstance; import l2s.gameserver.model.quest.Quest; /** * @author SoFace */ public class SuperMonster extends Quest { // Monsters's ID. private static final int MONSTERS[] = { 12564 }; private static final boolean REWARD_PARTY = false; // Reward party ? private final static boolean REWARD_NOBLE = true; // Give Noblesse ? private final static boolean REWARD_HERO = false; // Give Hero ? private final static int REWARD_HERO_DAYS = -1; // How many days to give the status of Hero ? // 0 - Until relogin. -1 - Forever. private final static boolean REWARD_SKILL = true; // Give Skill ? private final static int REWARD_SKILL_ID = 0; // Skill's ID. private final static int REWARD_SKILL_LVL = 0; // Skill's LvL. private final static boolean REWARD_ITEMS = true; // Give Items ? private final static int REWARD_ITEM_ID = 4037; // Item's ID. private final static int REWARD_ITEM_COUNT = 5; // Count. public SuperMonster() { super(-1, "SuperMonster", "custom"); for (int mobs : MONSTERS) addKillId(mobs); } @Override public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) { L2Skill skill = SkillTable.getInstance().getInfo(REWARD_SKILL_ID, REWARD_SKILL_LVL); Announcements.announceToAll("SuperMonster was killed."); if (REWARD_PARTY) { if (player.getParty() != null) { for (L2PcInstance members : player.getParty().getPartyMembers()) { members.sendMessage("Congratulations ! You killed The SuperMonster !"); if (REWARD_ITEMS) members.addItem("Add", REWARD_ITEM_ID, REWARD_ITEM_COUNT, members, true); if (REWARD_SKILL) members.addSkill(skill, true); if (REWARD_HERO) { if (!player.isHero()) addHero(player, REWARD_HERO_DAYS); else player.sendMessage("You already Hero."); } if (REWARD_NOBLE) { if (!members.isNoble()) members.setNoble(true, true); else members.sendMessage("You already Noblesse."); } members.broadcastUserInfo(); } } else { player.sendMessage("Congratulations ! You killed The SuperMonster !"); if (REWARD_ITEMS) player.addItem("Add", REWARD_ITEM_ID, REWARD_ITEM_COUNT, player, true); if (REWARD_SKILL) player.addSkill(skill, true); if (REWARD_HERO) { if (!player.isHero()) addHero(player, REWARD_HERO_DAYS); else player.sendMessage("You already Hero."); } if (REWARD_NOBLE) { if (!player.isNoble()) player.setNoble(true, true); else player.sendMessage("You already Noblesse."); } player.broadcastUserInfo(); } } else { player.sendMessage("Congratulations ! You killed The SuperMonster !"); if (REWARD_ITEMS) player.addItem("Add", REWARD_ITEM_ID, REWARD_ITEM_COUNT, player, true); if (REWARD_SKILL) player.addSkill(skill, true); if (REWARD_HERO) { if (!player.isHero()) addHero(player, REWARD_HERO_DAYS); else player.sendMessage("You already Hero."); } if (REWARD_NOBLE) { if (!player.isNoble()) player.setNoble(true, true); else player.sendMessage("You already Noblesse."); } player.broadcastUserInfo(); } return null; } private void addHero(L2PcInstance player, int days) { long _heroExpire = 0L; player.setHero(true); player.broadcastUserInfo(); if (days == 0) { _heroExpire = 3L; return; } _heroExpire = (days == -1 ? 1L : System.currentTimeMillis() + TimeUnit.DAYS.toMillis(days)); try (Connection con = DatabaseFactory.getConnection(); PreparedStatement stm = con.prepareStatement("UPDATE `characters` SET `hero`=? WHERE `obj_Id`=?")) { stm.setLong(1, _heroExpire); stm.setInt(2, player.getObjectId()); stm.execute(); } catch (SQLException e) { _log.warn("[SuperMonster] addHero(days) error: ", e); } } public static void main(String args[]) { new SuperMonster(); } }
  2. Please Someone Help Me I Want make pvp system 100 pvp kills take adena count 1.000.000 200 pvp kills Blue Eva Count 1000 300 pvp kills Silver count 100000 i know how to make it but, i cant make it with short config like this config 100,57,1.000.000;200,4355,1000;300,4357,100000; short config pvp system
  3. Maybe just give some code bcs I don’t understand->
  4. Hallo guys who know how to make chat party and global need adena and gold coin for use it.. thanks Max
  5. Kapoios re paidia please
  6. Νο one can help?? Kapoios re paidia please
  7. Geis sas paidia ,Thelw na rwtisw an kserei Kapoios na mou pei sas parakalw ,pws ginete na kanw to chat party na thelei Paradigma 1k adena Kai 20 Gold coins.. kai an kserei kapoios pls pws na Kanw sto inventory na min permei o paixtis panw apo 100 Gold coins euxaristw paidia..
  8. Solved GForce Program Problem
  9. WHY CAN'T I CHOOSE ANYTHING BUT THE LAST ONE? https://radikal.host/i/gggg.cNJfz4
  10. Sas Parakalw paidia mipws exei kapoios auti tin buffer gia freya L2jserver
  11. Auto to Item anoigei me diplo click Einai to tutorial Guide https://www.mediafire.com/view/ujdw12tvui8arfy/ffgg.png/file Pws Mporw na to anoiksw oxi me diplo Click Alla me Voice Command??? Diladi na patisw .book kai na anoiksi Auto to tutorial Guide --- dist/game/data/scripts/handlers/itemhandlers/AIOItem.java (revision 0) +++ dist/game/data/scripts/handlers/itemhandlers/AIOItem.java (revision 0) @@ -0,0 +1,58 @@ package handlers.itemhandlers; import java.util.logging.Logger; import com.l2jserver.gameserver.cache.HtmCache; import com.l2jserver.gameserver.datatables.AIOItemTable; import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; /** * @author BiggBoss */ public class AIOItem implements IItemHandler { private static final Logger _log = Logger.getLogger(AIOItem.class.getName()); @Override public void useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) { /* * Null pointer check */ if(playable == null) { return; } /* * Only players can use it */ if(playable instanceof L2PcInstance) { L2PcInstance player = (L2PcInstance)playable; /* * Minumun requirements to use it */ if(!AIOItemTable.getInstance().checkPlayerConditions(player)) { return; } String html = HtmCache.getInstance().getHtm(null, "data/html/aioitem/main.htm"); if(html == null) { _log.severe("AIOItem: The main file [data/html/aioitem/main.htm] does not exist or is corrupted!"); return; } NpcHtmlMessage msg = new NpcHtmlMessage(5); msg.setHtml(html); player.sendPacket(msg); } } }
×
×
  • Create New...