- 打卡等级:尐伊娃
- 打卡总天数:192
- 打卡月天数:9
- 打卡总奖励:1854
|
楼主 |
发表于 2020-6-17 20:12:24
|
显示全部楼层
- package custom.SayHello;
-
- //作者 排骨米饭~
-
- //import com.l2jserver.gameserver.Announcements;
-
- import com.l2jserver.gameserver.datatables.SkillTable;
-
- import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-
- import com.l2jserver.gameserver.model.quest.Quest;
-
- public final class SayHello extends Quest
-
- {
-
- public SayHello(int id, String name, String descr)
-
- {
-
- super(id, name, descr);
-
- setOnEnterWorld(true);
-
- }
-
-
-
- private static final String qn = "SayHello";
-
-
-
- @Override
-
- public String onEnterWorld(L2PcInstance player)
-
- {
-
- [color=Red]
- //修改这里 2213 是技能id 10是技能等级
- player.addSkill(SkillTable.getInstance().getInfo(2213, 10),false);
- player.addSkill(SkillTable.getInstance().getInfo(2213, 10),false);
- player.addSkill(SkillTable.getInstance().getInfo(2213, 10),false);
- player.addSkill(SkillTable.getInstance().getInfo(2213, 10),false);
- player.addSkill(SkillTable.getInstance().getInfo(2213, 10),false);[/color]
-
- player.sendSkillList();
-
- return "";
-
- }
-
-
-
- public static void main(String[] args)
-
- {
-
- new SayHello(-1, qn, "custom");
-
- }
-
- }
复制代码 |
|