Hi , i am trying to make an npc which gives Lvl 5 Augment skills. I have some restrictions thought. I need help cause i am new to coding.
I have an error in L2NpcInstance, cannot resolve skill. {public void onBypassFeedback(final L2PcInstance player, final String command)}
if i add L2skill skill as a final into public void i ll get an error. As another fix i tried to add [L2Skill skill = null;] before command. but i have an error in Gameserver - BAD requestbypass. Any advice?? ^_^
if(command.equalsIgnoreCase("MightAct"))
{
//add lvl 5 augm skill:
if((skill.getId() != 3132) && (skill.getId() != 3133) && (skill.getId() != 3134) && (skill.getId() != 3135) && (skill.getId() != 3136) && (skill.getId() != 3141) && (skill.getId() != 3142))
{
super.addSkill(SkillTable.getInstance().getInfo(3132, 5));
player.sendMessage("Nice! You got Might Active Lv5. Check your Skills.");
}
else
{
player.sendMessage("You already have one of my Augment skills.");
return;
}
}
else if(command.equalsIgnoreCase("EmpowerAct"))
{
//add lvl 5 augm skill:
if((skill.getId() != 3132) && (skill.getId() != 3133) && (skill.getId() != 3134) && (skill.getId() != 3135) && (skill.getId() != 3136) && (skill.getId() != 3141) && (skill.getId() != 3142))
{
super.addSkill(SkillTable.getInstance().getInfo(3133, 5));
player.sendMessage("Nice! You got Empower Active Lv5. Check your Skills.");
}
else
{
player.sendMessage("You already have one of my Augment skills.");
return;
}
}
else if(command.equalsIgnoreCase("DuelMightAct"))
{
//add lvl 5 augm skill:
if((skill.getId() != 3132) && (skill.getId() != 3133) && (skill.getId() != 3134) && (skill.getId() != 3135) && (skill.getId() != 3136) && (skill.getId() != 3141) && (skill.getId() != 3142))
{
super.addSkill(SkillTable.getInstance().getInfo(3134, 5));
player.sendMessage("Nice! You got Duel Might Active Lv5. Check your Skills.");
}
else
{
player.sendMessage("You already have one of my Augment skills.");
return;
}
}
else if(command.equalsIgnoreCase("ShieldAct"))
{
//add lvl 5 augm skill:
if((skill.getId() != 3132) && (skill.getId() != 3133) && (skill.getId() != 3134) && (skill.getId() != 3135) && (skill.getId() != 3136) && (skill.getId() != 3141) && (skill.getId() != 3142))
{
super.addSkill(SkillTable.getInstance().getInfo(3135, 5));
player.sendMessage("Nice! You got Shield Active Lv5. Check your Skills.");
}
else
{
player.sendMessage("You already have one of my Augment skills.");
return;
}
}
else if(command.equalsIgnoreCase("MagicBarrierAct"))
{
//add lvl 5 augm skill:
if((skill.getId() != 3132) && (skill.getId() != 3133) && (skill.getId() != 3134) && (skill.getId() != 3135) && (skill.getId() != 3136) && (skill.getId() != 3141) && (skill.getId() != 3142))
{
super.addSkill(SkillTable.getInstance().getInfo(3136, 5));
player.sendMessage("Nice! You got Magic Barrier Active Lv5. Check your Skills.");
}
else
{
player.sendMessage("You already have one of my Augment skills.");
return;
}
}
else if(command.equalsIgnoreCase("FocusAct"))
{
//add lvl 5 augm skill:
if((skill.getId() != 3132) && (skill.getId() != 3133) && (skill.getId() != 3134) && (skill.getId() != 3135) && (skill.getId() != 3136) && (skill.getId() != 3141) && (skill.getId() != 3142))
{
super.addSkill(SkillTable.getInstance().getInfo(3141, 5));
player.sendMessage("Nice! You got Focus Active Lv5. Check your Skills.");
}
else
{
player.sendMessage("You already have one of my Augment skills.");
return;
}
}
else if(command.equalsIgnoreCase("WildMagicAct"))
{
//add lvl 5 augm skill:
if((skill.getId() != 3132) && (skill.getId() != 3133) && (skill.getId() != 3134) && (skill.getId() != 3135) && (skill.getId() != 3136) && (skill.getId() != 3141) && (skill.getId() != 3142))
{
super.addSkill(SkillTable.getInstance().getInfo(3142, 5));
player.sendMessage("Nice! You got Wild Magic Active Lv5. Check your Skills.");
}
else
{
player.sendMessage("You already have one of my Augment skills.");
return;
}
}
Καλησπέρα ψάχνω για κάποιο πρόγραμμα-(interface) που να μπορώ να δω τα CD του αντιπάλου.Εχω δει σε βίντεο ότι υπάρχει κάτι τέτοιο αλλά όσο και αν έχω ψάξει δεν μπορώ να το βρω.
Παίζω στον Reborn x30.
Αν υπάρχει κάτι πείτε μου παρακαλώ το δωρεάν η με αγορά..
Ευχαριστώ!
I would like to know if the h5 skins work on client salvation 140?
I have the rev hi5 running on the salvation client, I would like to know if the skins I have for the h5 client work on the salvation client.
If it doesn't work, is there a link with skins for client salvation?
Hello,
I have 5-6 armor set from l2jbrazil but i can't add them in my server since armorgrp is little bit different and can't save them.
I think it has to do with lines, they should be for freya and need adjust for Hi5.
In the files i download it says freya/hi5 working.
If someone can fix them for me and i pay for your job.
Thanks
Question
tonac
Hi , i am trying to make an npc which gives Lvl 5 Augment skills. I have some restrictions thought. I need help cause i am new to coding.
I have an error in L2NpcInstance, cannot resolve skill. {public void onBypassFeedback(final L2PcInstance player, final String command)}
if i add L2skill skill as a final into public void i ll get an error. As another fix i tried to add [L2Skill skill = null;] before command. but i have an error in Gameserver - BAD requestbypass. Any advice?? ^_^
Edited by tonacLink to comment
Share on other sites
3 answers to this question
Recommended Posts