mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Cleaned up the new scripting code. Added a helper function to do the yielding automatically. Modified all the scripts to use the new system and added a few new ones.
This commit is contained in:
		| @@ -247,11 +247,10 @@ namespace FFXIVClassic_Map_Server | ||||
|  | ||||
|                             Actor ownerActor = Server.GetStaticActors(eventStart.scriptOwnerActorID); | ||||
|                              | ||||
|                             if (ownerActor != null)            | ||||
|                             { | ||||
|                                 player.GetActor().currentEventOwner = eventStart.scriptOwnerActorID; | ||||
|                                 player.GetActor().currentEventName = eventStart.triggerName; | ||||
|                             } | ||||
|                       | ||||
|                             player.GetActor().currentEventOwner = eventStart.scriptOwnerActorID; | ||||
|                             player.GetActor().currentEventName = eventStart.triggerName; | ||||
|                      | ||||
|  | ||||
|                             if (ownerActor == null) | ||||
|                             { | ||||
|   | ||||
| @@ -1131,7 +1131,19 @@ namespace FFXIVClassic_Map_Server.Actors | ||||
|             if (owner is Npc) | ||||
|             { | ||||
|                 currentEventRunning = ((Npc)owner).GetEventStartCoroutine(this); | ||||
|                 currentEventRunning.Resume(objects.ToArray()); | ||||
|  | ||||
|                 if (currentEventRunning != null) | ||||
|                 { | ||||
|                     try | ||||
|                     { | ||||
|                         currentEventRunning.Resume(objects.ToArray()); | ||||
|                     } | ||||
|                     catch (ScriptRuntimeException e) | ||||
|                     { | ||||
|                         Program.Log.Error("[LUA] {0}", e.Message); | ||||
|                         EndEvent(); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user