Jump to content

wongerlt

Members
  • Content Count

    341
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

7 Neutral

1 Follower

About wongerlt

  • Rank
    Elder

Contact Methods

  • Website URL
    http://l2custom.com

Profile Information

  • Gender
    Not Telling
  • Country
    Lithuania

Recent Profile Visitors

1,597 profile views
  1. import com.l2jfrozen.gameserver.model.L2World; String player_name = getTopZonePvpName(); Announcements.getInstance().announceToAll("The Player of the Hour is " + player_name + " with "+getTopZonePvpCount()+ " pvps"); L2PcInstance player = L2World.getInstance().getPlayer(player_name); if(player!=null){ //if online player.addItem("VoteReward", 57, 10, null, true); // 10 adenas //if online end }else{ //if offline Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("INSERT INTO `items` (`owner_id`, `object_id`, `item_id`, `count`, `loc`, `loc_data`) VALUES ((select obj_id from characters where char_name='"+player_name+"'), (SELECT MAX(object_id)+1 FROM items AS object_id), '57', '1', 'INVENTORY', '0')"); statement.execute(); statement.close(); } catch (Exception e) { e.printStackTrace(); } finally { CloseUtil.close(con); } // if offline end } //TODO Your reward should go here. simple, not tested so idk its work or no.
  2. PvP4Fun.Com * Just important information: * Start Level 80. * Full NPC Buffer. * Olympiad/Siege every 5 days. * Customs Items (Like l2gold, dynasty, hats, tattos, masks, jewelry and etc.) * Many Raid Bosses with teleports. * Easy Farm. * Easy Enchant. * Wipe every 1 Month. Start date: 2019-07-13 17:00 GMT+2 https://pvp4fun.com
  3. Its simple, one example: <?php $max = 500; $online = 251; $percent = round(100/$max*$online); ?> <div style="width:200px;height:30px;border:1px solid #CCC"><div style="background:green;height:30px;width:<?php echo $percent ?>%"></div></div> Server load: <?php echo $percent; ?>%.
  4. then i suggest firstly learn Windows basics. how create/edit file/folder, how open file, copy/paste and etc.
  5. what version frozen u use? im using 1118 and it support both. python and java. or have you tried???
  6. just create file in data/scripts/quests/PartyDrop/PartyDrop. java and add “data/scripts/quests/PartyDrop/PartyDrop. java“ to data/scripts.cfg thats all..
  7. Whaaaaaat??? i just adapted it to for frozen. so what wrong with me code?
  8. package quests.PartyDrop; import java.util.List; import java.util.ArrayList; import com.l2jfrozen.gameserver.model.actor.instance.L2NpcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.quest.Quest; import com.l2jfrozen.gameserver.network.serverpackets.PlaySound; public class PartyDrop extends Quest { boolean _canReward = false; private static ArrayList<String> playerIps = new ArrayList<String>(); private static final int[] MOB_LIST = {10506,10507}; private static final int[][] DROP_LIST = {{57,50},{57,80}}; public PartyDrop() { super(-1, "PartyDrop", "quests"); for (int mob : MOB_LIST) addKillId(mob); } @Override public String onKill(L2NpcInstance npc, L2PcInstance player, boolean isPet) { if (player.isInParty()) { List<L2PcInstance> party = player.getParty().getPartyMembers(); for (L2PcInstance member : party) { String pIp = member.getClient().getConnection().getInetAddress().getHostAddress(); if (!playerIps.contains(pIp)) { playerIps.add(pIp); if (member.isInsideRadius(npc, 1000, false, false)) { for (int[] i : DROP_LIST) { member.addItem("Party Drop Rewards.", i[0], i[1], member, true); member.broadcastPacket(new PlaySound("ItemSound.quest_finish")); } } else { member.sendMessage("You are too far to be rewarded."); } } else { member.sendMessage("Already 1 member of your ip have been rewarded, so this character won't be rewarded."); } } playerIps.clear(); } else { for (int[] i : DROP_LIST) { player.addItem("Party Drop Rewards.", i[0], i[1], player, true); player.broadcastPacket(new PlaySound("ItemSound.quest_finish")); } } return null; } public static void main(String[] args) { new PartyDrop(); } } script for frozen. just put to data/scripts/quests/PartyDrop and add script path to scripts.cfg p.s its without any config file, so just edit in script file what mobs u want and what drop u want..
  9. what version frozen? show duel.java file
  10. Version 1.2.0

    38 downloads

    L2Gold Weapons [for L2J Frozen] Includes: Client: decrypted itemname.dat, weapongrp.dat Server: stats XML file, SQL file. VirusTotal Link: https://www.virustotal.com/#/file/a8142e733cc61af7cf81bdf6b918fd4420f613a33dfc6d2a7202b8216a03c5ba/detection

    Free

×