klara Posted September 5, 2012 Posted September 5, 2012 hi.i want ta make a code,in wich if sb enter jail his karma will dissapear. i created this.. if(player.isInJail()) { setKarma = 0; } i know its wrong.. ;p but could sb make the code and tell me where exactly i have to place it?
0 ^Wyatt Posted September 5, 2012 Posted September 5, 2012 Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 403) +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -13504,6 +13504,8 @@ // start the countdown _punishTask = ThreadPoolManager.getInstance().scheduleGeneral(new PunishTask(), _punishTimer); sendMessage("You are in jail for "+delayInMinutes+" minutes."); + if(getKarma() !=0) + setKarma(0); }
Question
klara
hi.i want ta make a code,in wich if sb enter jail his karma will dissapear.
i created this..
i know its wrong.. ;p but could sb make the code and tell me where exactly i have to place it?
2 answers to this question
Recommended Posts