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.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Question
xbarel
Πως μπορώ να βάλω μια if ώστε μετά τον έλεγχο που κάνει στο inventory να κάνει και έλεγχο εάν ο player έχει αγοράσει το skill ?
server h5
if (event.startsWith("regalarSkillsFighter1"))
{
StringTokenizer st = new StringTokenizer(event, " ");
st.nextToken(); // regalarSkills
try
{
if (player.getInventory().getItemByItemId(ITEMD_ID).getCount() < ITEM_COUNT)
{
player.sendMessage("You don't have enough items! I need" + " " + ITEM_COUNT +" " + ITEM_NAME + " Per Skill");
}
else
{
player.addSkill(SKILLSFIGHTER1.get(Integer.parseInt(st.nextToken())).getSkill(), true);
player.destroyItemByItemId("consume", ITEMD_ID, ITEM_COUNT, player, true);
player.broadcastStatusUpdate();
player.broadcastUserInfo();
player.sendPacket(new UserInfo(player));
player.sendPacket(new ExBrExtraUserInfo(player));
player.sendMessage("Page1: You have learned a new Fighter skill!");
return GenerateHtmlRegalosFighter1(player);
}
}
4 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.