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
ower12
i have problem i line tiara can help me? pls
else if (command.startsWith("become_noble"))
{
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
if (!player.isNoble())
{
//then you check for the level 78
if(player.getLevel()>=78){
//then you ask for items
if(
player.getInventory().getItemByItemId(12345/**1 item id **/).getCount()>=12345/** Is bigger or equals required item count **/
&& player.getInventory().getItemByItemId(12345/**2 item id **/).getCount()>=12345/** Is bigger or equals required item count **/
&& player.getInventory().getItemByItemId(12345/**3 item id **/).getCount()>=12345/** Is bigger or equals required item count **/
&& player.getInventory().getItemByItemId(12345/**4 item id **/).getCount()>=12345/** Is bigger or equals required item count **/
){
L2ItemInstance tiara = player.getInventory().addItem("tiara", 7694, 1, player, null);//give nobless tiara
player.getInventory().equipItemAndRecord(tiara);//equip the tiara if you want
player.setNoble(true, true);
player.sendPacket(new UserInfo(player));
html.setFile("data/html/classmaster/nobleok.htm");
}else
player.sendMessage("You don't have enough items.");
}
else
player.sendMessage("Your level must be 78 or higher.");
}
else
html.setFile("data/html/classmaster/alreadynoble.htm");
player.sendPacket(html);
//and don't forget the imports for l2iteminstance etc..
}
18 answers to this question
Recommended Posts