到达等级打开指定NPC
本帖最後由 -Sammy 於 2020-7-27 04:18 編輯到达等级打开指定NPC
打开 MapleCharacter.java
import net.sf.odinms.scripting.npc.NPCScriptManager;
找到
if (level == 200 && !isGM()) {
exp.set(0);
MaplePacket packet = MaplePacketCreator.serverNotice(6, " " + getName() + " has reached Level 200! Congratulate " + getName() + " on such an amazing achievment!");
try {
getClient().getChannelServer().getWorldInterface().broadcastMessage(getName(), packet.getBytes());
} catch (RemoteException e) {
getClient().getChannelServer().reconnectWorld();
}
}
增加
if (level == 10) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 9010009);
}
if (level == 30) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 9010009);
}
if (level == 70) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 9010009);
}
if (level == 120) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 9010009);
}
得到某个物品与NPC对话
if (haveItem == ) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, );
}
頁:
[1]