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)
{
player.addSkill(SkillTable.getInstance().getInfo(2213, 10),false);
player.sendSkillList();
return "";
}
public static void main(String[] args)
{
new SayHello(-1, qn, "custom");
}
}
复制代码保存为SayHello.java存放到
game\data\scripts\custom\SayHello
记得记得在scripts.cfg里加入