It's definitely not about sharing your files.
The issue lies in how you conduct yourself on the forums and how you treat others. Clearly, your behavior lacked both courtesy and respect.
if you share files for free on MaxCheaters you will get this...
think twice before sharing files.
it should be clarified that this is endorsed by the administrators and moderators of the site...
I searched the forum for any posts about this, but I didn't find anything. I wanted to know if anyone could tell me all the ports I need to have open to allow connections to the server.
Thx!🤪
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