### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (revision 10)
+++ java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (working copy)
@@ -23,6 +23,8 @@
import net.sf.l2j.gameserver.model.base.Experience;
import net.sf.l2j.gameserver.model.quest.QuestState;
import net.sf.l2j.gameserver.network.SystemMessageId;
+import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
+import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
import net.sf.l2j.gameserver.network.serverpackets.PledgeShowMemberListUpdate;
import net.sf.l2j.gameserver.network.serverpackets.SocialAction;
import net.sf.l2j.gameserver.network.serverpackets.StatusUpdate;
@@ -196,6 +198,19 @@
su.addAttribute(StatusUpdate.MAX_MP, getMaxMp());
getActiveChar().sendPacket(su);
+ boolean allowReward = true;
+ int level = 80;
+
+ if (allowReward && getActiveChar().getLevel() == level)
+ {
+ getActiveChar().addItem("", 57, 1, getActiveChar(), true);
+ getActiveChar().sendMessage("Make sure you reach your level first. " +level+ " .");
+ NpcHtmlMessage html = new NpcHtmlMessage(0);
+ html.setFile("data/html/mods/yourHtml.htm");
+ getActiveChar().sendPacket(html);
+ getActiveChar().sendPacket(ActionFailed.STATIC_PACKET);
+ }
+
// Update the overloaded status of the L2PcInstance
getActiveChar().refreshOverloaded();
// Update the expertise status of the L2PcInstance