thelw na kanw to e3eis... otan enas player exei as poume x buff(px. shield) kai to kanei self/target to buff den to pairneis mexri na teliwsh to effect/cast oute mporeis na walk..kai ta upoloipa buffs exoun to diko tous effect... px. dance theloun duals oste na ta knc ktlp.
kati tetoio thelw na kanw se buffer..
px auto to code kanei self effect alla ama knc walk kanei cancel to effect kai to buff to exeis parei :P
StringTokenizer st = new StringTokenizer(command, " ");
String actualCommand = st.nextToken();
int buffid = 0;
int bufflevel = 1;
if (st.countTokens() == 2) {
buffid = Integer.valueOf(st.nextToken());
bufflevel = Integer.valueOf(st.nextToken());
}
else if (st.countTokens() == 1)
buffid = Integer.valueOf(st.nextToken());
if (actualCommand.equalsIgnoreCase("getbuff")) {
if (buffid != 0) {
MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, 5, 0);
SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);
showMessageWindow(player);
player.broadcastPacket(mgc);
}
}
:forever alone like a boss: :forever alone like a boss: 3erei knc pws na to kanw?
Get the maximum opportunities, income, and profit with our verification.
We help you pass verification on the services and applications you need, opening access to full functionality and scaling.
Fast. Reliable. Secure.
Minimal risks — predictable results.
Bonus for new clients:
Pay for the first verification and get a 10% discount on the next one.
Learn more — Go to
Question
vl4d
thelw na kanw to e3eis... otan enas player exei as poume x buff(px. shield) kai to kanei self/target to buff den to pairneis mexri na teliwsh to effect/cast oute mporeis na walk..kai ta upoloipa buffs exoun to diko tous effect... px. dance theloun duals oste na ta knc ktlp.
kati tetoio thelw na kanw se buffer..
px auto to code kanei self effect alla ama knc walk kanei cancel to effect kai to buff to exeis parei :P
StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); int buffid = 0; int bufflevel = 1; if (st.countTokens() == 2) { buffid = Integer.valueOf(st.nextToken()); bufflevel = Integer.valueOf(st.nextToken()); } else if (st.countTokens() == 1) buffid = Integer.valueOf(st.nextToken()); if (actualCommand.equalsIgnoreCase("getbuff")) { if (buffid != 0) { MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, 5, 0); SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player); showMessageWindow(player); player.broadcastPacket(mgc); } }:forever alone like a boss: :forever alone like a boss: 3erei knc pws na to kanw?
Edited by vl4d9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now