raF Posted September 14, 2015 Posted September 14, 2015 How to spawn siege reward in clan warehouse. I know it should be here : gameserver.model.entity.siege.java public void endSiege() but I dont know how to make it.
0 Tryskell Posted September 14, 2015 Posted September 14, 2015 clan.getWarehouse() Warehouse being an ItemContainer, it can call numerous methods (addItem, etc). Each clan got a warehouse, it can't be null.
0 raF Posted September 14, 2015 Author Posted September 14, 2015 if (getCastle().getOwnerId() > 0) L2Clan clan = ClanTable.getInstance().getClan(getCastle().getOwnerId()); ItemContainer cwh = clan.getWarehouse(); clan.getWarehouse().addtem I will test it in 30 mins
0 raF Posted September 14, 2015 Author Posted September 14, 2015 if (getCastle().getOwnerId() > 0) { L2Clan clan = ClanTable.getInstance().getClan(getCastle().getOwnerId()); Broadcast.toAllOnlinePlayers(SystemMessage.getSystemMessage(SystemMessageId.CLAN_S1_VICTORIOUS_OVER_S2_S_SIEGE).addString(clan.getName()).addString(getCastle().getName())); + clan.getWarehouse().addItem("cwh", 157, 50, null, null); + clan.broadcastToOnlineMembers(new CreatureSay(0,Say2.HERO_VOICE,"Castle Manager","Dear players, there is gift for you in the clan warehouse"));
Question
raF
How to spawn siege reward in clan warehouse. I know it should be here :
but I dont know how to make it.
5 answers to this question
Recommended Posts