Jump to content
  • 0

Siege Reward In Cwh


Question

Posted

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.

5 answers to this question

Recommended Posts

  • 0
Posted
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
Posted


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"));

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..