mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Finished Treasures of the Main and Legends Adrift. Fixed quests appearing in private areas (echos). Fixed other bugs. Implemented NPC Linkshells. Added more options to nudge command. Added nudgenpc command. Added testbnpckill command.
This commit is contained in:
@@ -194,7 +194,12 @@ namespace Meteor.Map.Actors.QuestNS
|
||||
LuaEngine.GetInstance().CallLuaFunction(caller, this, "onNotice", true, triggerName);
|
||||
}
|
||||
|
||||
public void OnNpcLS(Player caller)
|
||||
public void OnKillBNpc(Player caller, uint classId)
|
||||
{
|
||||
LuaEngine.GetInstance().CallLuaFunction(caller, this, "onKillBNpc", true, classId);
|
||||
}
|
||||
|
||||
public void OnNpcLs(Player caller)
|
||||
{
|
||||
LuaEngine.GetInstance().CallLuaFunction(caller, this, "onNpcLS", true, data.GetNpcLsFrom(), data.GetMsgStep());
|
||||
}
|
||||
|
@@ -151,9 +151,12 @@ namespace Meteor.Map.Actors.QuestNS
|
||||
return ActiveQuests.Find(quest => quest.GetQuestId() == id);
|
||||
}
|
||||
|
||||
public Quest[] GetQuestsForNpc(Npc npc)
|
||||
public Quest[] GetQuestsForNpc(Npc npc, bool isPrivateArea)
|
||||
{
|
||||
return ActiveQuests.FindAll(quest => quest.IsQuestENPC(player, npc)).ToArray();
|
||||
if (isPrivateArea)
|
||||
return ActiveQuests.FindAll(quest => quest.IsQuestENPC(player, npc) && quest.GetSequence() != Quest.SEQ_NOT_STARTED).ToArray();
|
||||
else
|
||||
return ActiveQuests.FindAll(quest => quest.IsQuestENPC(player, npc)).ToArray();
|
||||
}
|
||||
|
||||
public byte[] GetCompletionSliceBytes(ushort from, ushort to)
|
||||
|
Reference in New Issue
Block a user