-
Posts
15 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Posts posted by l2media
-
-
Geia sas pedes bori kapios na m pi pws boro na kanw otan o pextis einai deathna exei dio epiloges ena gia town p einai kai na exei alo ena apo kato p tha valo egw thex.
-
On 9/7/2017 at 10:01 AM, pirama said:
ExGuard team
- this is one patch for you see how work hwid , open url , Exception ip system ( for internet cafe )
- i have change only protocol version so is very easy to bypass it ( is only for test servers )
- Interlude Client
if don't work with your system can you download this
Astous file na milane . Apla zilevoune
-
Wrong section.
move it
-
I want to buy vote manager for l2jforzen
-
I have trouble with Castle schuttgard I do not gives the Castle finishes in skill and nothing barrel or error I have nowhere pelase help me l2jfrozen
-
lock topic i made it
-
anyone any idea what to do to fix it ????
-
public void updatePlayerSiegeStateFlags(boolean clear) { L2Clan clan; for(L2SiegeClan siegeClan : getAttackerClans()) { clan = ClanTable.getInstance().getClan(siegeClan.getClanId()); for(L2PcInstance member : clan.getOnlineMembers("")) { member.setSiegeState((byte) (clear ? 0 : 1)); } } for(L2SiegeClan siegeclan : getDefenderClans()) { clan = ClanTable.getInstance().getClan(siegeclan.getClanId()); for(L2PcInstance member : clan.getOnlineMembers("")) { member.setSiegeState((byte) (clear ? 0 : 2)); } } }
Again my two barrel
-
getOnlineMembers probably return null somewhere, when you got no null control on the method you screenshoted.
If it's a list or a collection which is generated by getOnlineMembers, use Collections.emptyList() instead of null.
change it again not my barrel sent in error console
-
Line 734 ?
-
I start with admin siege bi and I have this error in the console and has
-
Hi all now the npc is ok. Here i will post my fixed code for jacis. Good luck to all :)
package custom.AugmentShop;import net.sf.l2j.gameserver.model.actor.L2Npc;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import net.sf.l2j.gameserver.model.item.instance.ItemInstance;import net.sf.l2j.gameserver.model.itemcontainer.Inventory;import net.sf.l2j.gameserver.model.quest.Quest;import net.sf.l2j.gameserver.model.quest.QuestState;import java.sql.Connection;import java.sql.PreparedStatement;import net.sf.l2j.L2DatabaseFactory;import java.util.logging.Level;/**** @author Samar , fixed by rlfem123**/public class AugmentShop extends Quest{private final static int ITEM_ID = 4037;private final static int ITEM_COUNT = 1;private final static String qn = "AugmentShop";private final static int NPC = 50005;public AugmentShop(int questId, String name, String descr){super(questId, name, descr);addFirstTalkId(NPC);addStartNpc(NPC);addTalkId(NPC);}@Overridepublic String onAdvEvent(String event, L2Npc npc, L2PcInstance player){String htmltext = "";if (event.equalsIgnoreCase("active")){htmltext = "active.htm";}else if (event.equalsIgnoreCase("passive")){htmltext = "passive.htm";}else if (event.equalsIgnoreCase("chance")){htmltext = "chance.htm";}else{updateAugment(player, Integer.parseInt(event.substring(0,5)), Integer.parseInt(event.substring(6,10)), Integer.parseInt(event.substring(11,13)));}return htmltext;}@Overridepublic String onFirstTalk(L2Npc npc, L2PcInstance player){String htmltext = "";QuestState qs = player.getQuestState(qn);if (qs == null)qs = newQuestState(player);htmltext = "main.htm";return htmltext;}public static void main(String[] args){new AugmentShop(-1, qn, "AugmentShop");}private static void updateAugment(L2PcInstance player, int attributes, int skill, int level){ItemInstance item = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND);if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) == null){player.sendMessage("You have to equip a weapon.");return;}if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).isAugmented()){player.sendMessage("The weapon is already augmented.");return;}if (player.getInventory().getInventoryItemCount(ITEM_ID, -1) < ITEM_COUNT){player.sendMessage("You dont have enough item.");return;}Connection con = null;try{player.destroyItemByItemId("Consume", ITEM_ID, ITEM_COUNT, player, true);con = L2DatabaseFactory.getInstance().getConnection();PreparedStatement statement = con.prepareStatement("REPLACE INTO augmentations VALUES(?,?,?,?)");statement.setInt(1, item.getObjectId());statement.setInt(2, attributes*65536+1);statement.setInt(3, skill);statement.setInt(4, level);statement.executeUpdate();player.sendMessage("Succesfully augmented. You have to relog now.");statement.close();}catch (Exception e){_log.log(Level.SEVERE, "Could not augment item: "+item.getObjectId()+" ", e);}finally{try{/*L2DatabaseFactory.close(con);*/con.close();}catch (Exception e){}}}}Thats it, and html files scripts/augmentshop/augmentshop/main.htm , active.htm , passive.htm , chance.htm Have Fun
can i have this code for frozne ??
-
Geia sas Exw afto to provlima sti consola. afto vgeni otan kano reload px. config .custome otidipote me ton admin meta ama pao na kano new clan vgeni afto to minima. help kapios thex.
-
euxaristw file.. doulevi 100% 2-3 fores p to dokimasa. ala exei provlima me to target :D px to pataw k anigi katefthian eno dn mporeis na to kaneis target kai //delete px. prepei /target npcdonate px. :)
Exei kai ena alo ana to exeis kani test kane donate 2 fores me tin idia ip den doulevi prpei na kanis delete to txt me to ip pou exeis kani prota :)
HELP
in Request Server Development Help [Greek]
Posted
Edi ku esht ethe kodi po nuk di ca te ve qe te ket 2 butona te sgjethin