mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Added the PGL200 quest The House Always Wins. Fixed quest instances not being set on spawn. Fixed PrivateAreaPast. Added You have left the instance messages when leaving a PrivateArea. Fixed EmoteEvents. DefaultTalk has been disabled temporarily to speed up warps.
This commit is contained in:
		| @@ -149,19 +149,19 @@ namespace Meteor.Map.Actors.QuestNS | ||||
|             LuaEngine.GetInstance().CallLuaFunction(caller, this, "onTalk", true, npc); | ||||
|         } | ||||
|  | ||||
|         public void OnEmote(Player caller, Npc npc, Command command) | ||||
|         public void OnEmote(Player caller, Npc npc, string triggerName) | ||||
|         { | ||||
|             LuaEngine.GetInstance().CallLuaFunction(caller, this, "onEmote", true, npc, command); | ||||
|             LuaEngine.GetInstance().CallLuaFunction(caller, this, "onEmote", true, npc, triggerName); | ||||
|         } | ||||
|  | ||||
|         public void OnPush(Player caller, Npc npc) | ||||
|         public void OnPush(Player caller, Npc npc, string triggerName) | ||||
|         { | ||||
|             LuaEngine.GetInstance().CallLuaFunction(caller, this, "onPush", true, npc); | ||||
|             LuaEngine.GetInstance().CallLuaFunction(caller, this, "onPush", true, npc, triggerName); | ||||
|         } | ||||
|  | ||||
|         public void OnNotice(Player caller) | ||||
|         public void OnNotice(Player caller, string triggerName) | ||||
|         { | ||||
|             LuaEngine.GetInstance().CallLuaFunction(caller, this, "onNotice", true); | ||||
|             LuaEngine.GetInstance().CallLuaFunction(caller, this, "onNotice", true, triggerName); | ||||
|         } | ||||
|  | ||||
|         public void OnNpcLS(Player caller, uint npcLSId) | ||||
| @@ -190,9 +190,9 @@ namespace Meteor.Map.Actors.QuestNS | ||||
|  | ||||
|         public bool IsQuestENPC(Player caller, Npc npc) | ||||
|         { | ||||
|             List<LuaParam> returned = LuaEngine.GetInstance().CallLuaFunctionForReturn(caller, this, "IsQuestENPC", true, npc, this); | ||||
|             bool scriptReturned = returned != null && returned.Count != 0 && returned[0].typeID == 3; | ||||
|             return scriptReturned || (questState?.HasENpc(npc.GetActorClassId()) ?? false); | ||||
|             //List<LuaParam> returned = LuaEngine.GetInstance().CallLuaFunctionForReturn(caller, this, "IsQuestENPC", true, npc, this); | ||||
|             //bool scriptReturned = returned != null && returned.Count != 0 && returned[0].typeID == 3; | ||||
|             return (questState?.HasENpc(npc.GetActorClassId()) ?? false); | ||||
|         } | ||||
|  | ||||
|         public void StartSequence(ushort sequence) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user