Jump to content

[Share] Refresh Skills


`Rοmeο

Recommended Posts

Hello today i created a code for aCis project After olympiad char's skills get refreshed

 

PasteBin: http://pastebin.com/t8FtY8Hm

 

### Eclipse Workspace Patch 1.0
#P test
Index: java/net/sf/l2j/gameserver/model/olympiad/AbstractOlympiadGame.java
===================================================================
--- java/net/sf/l2j/gameserver/model/olympiad/AbstractOlympiadGame.java (revision 39)
+++ java/net/sf/l2j/gameserver/model/olympiad/AbstractOlympiadGame.java (working copy)
@@ -344,15 +343,13 @@

                player.teleToLocation(player.getLastX(), player.getLastY(), player.getLastZ());
                player.setLastCords(0, 0, 0);
+              
+               for (L2Skill s : player.getAllSkills())
+               {
+                       player.enableSkill(s);
+               }
+               player.sendSkillList();
+               player.sendPacket(new SkillCoolTime(player));
        }

        public static final void rewardParticipant(L2PcInstance player, int[][] reward)

 

 

Kind Regards

 

`Romeo

Link to comment
Share on other sites

o_o romeo you started java?

 

good try +1.

 

ofcourse i started java 8) its a good Idea to help ppl

 

Thanks for Feedback.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...