永久英雄的方法~
发表于 : 2018-03-24 20:40
代码: 全选
查找
????????loadTutorial(activeChar);
在下面增加
????????loadforeverhero(activeChar);//by szly
查找
????private void loadTutorial(L2PcInstance player)
????{
????????QuestState qs = player.getQuestState("255_Tutorial");
????????if (qs != null)
????????????qs.getQuest().notifyEvent("UC", null, player);
????}
在下面增加
????//hero forever by szly 2010
????private void loadforeverhero(L2PcInstance player)
????{
????????QuestState qs = player.getQuestState("5002205_herocc");
????????if (qs != null)
????????{
????????????if (Config.FOREVER_HERO)
????????????{
????????????????if (qs.getInt("foreverhero") >= 1)
????????????????{
????????????????????player.setHero(true);
????????????????}
????????????}
????????}
????}
DP中
代码: 全选
st.set("foreverhero","1")//设置永久英雄