AbSoLuTeP0WeR Posted March 2, 2011 Posted March 2, 2011 boolean unstuckActive = false; for (L2Effect effect : activeChar.getAllEffects()) { switch (effect.getEffectType()) { case unstuck: { unstuckActive = true; break; } } if (unstuckActive) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_CANT_RESTART_WHILE_UNSTUCKING); activeChar.sendPacket(sm); activeChar.sendPacket(ActionFailed.STATIC_PACKET); return false; } } dn mporeis na kaneis rr otan kaneis soe... eimai new kai 8a i8ela na mou peite an to exw kanei swsta... thx :P Quote
0 Azumaril$ Posted March 2, 2011 Posted March 2, 2011 gt den to kaneis para poli apla sto requestrestart.java kai na valeis if (activeChar.isCastingNow()) { activeChar.sendMessage("You cant restart while using skills"); return; } Doulevei afou sto castingnow ine kai i methodos ton soe klp Quote
0 Azumaril$ Posted March 6, 2011 Posted March 6, 2011 gt den to kaneis para poli apla sto requestrestart.java kai na valeis if (activeChar.isCastingNow()) { activeChar.sendMessage("You cant restart while using skills"); return; } Doulevei afou sto castingnow ine kai i methodos ton soe klp Quote
Question
AbSoLuTeP0WeR
boolean unstuckActive = false;
for (L2Effect effect : activeChar.getAllEffects())
{
switch (effect.getEffectType())
{
case unstuck:
{
unstuckActive = true;
break;
}
}
if (unstuckActive)
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_CANT_RESTART_WHILE_UNSTUCKING);
activeChar.sendPacket(sm);
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
return false;
}
}
dn mporeis na kaneis rr otan kaneis soe...
eimai new kai 8a i8ela na mou peite an to exw kanei swsta... thx :P
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.