mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Added trigger name to all the scripts that had params. Implemented the Gridania opening stoper.
This commit is contained in:
		
							
								
								
									
										13
									
								
								scripts/zones/166/npcs/openingStop_fstBtl03_03@0A600.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								scripts/zones/166/npcs/openingStop_fstBtl03_03@0A600.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function onInstantiate(npc) | ||||
| 	return "/Chara/Npc/Object/OpeningStoperF0B1", false, false, false, false, false, 0x10A350, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	if (triggerName == "caution") then | ||||
| 		worldMaster = getWorldMaster(); | ||||
| 		player:sendGameMessage(player, worldMaster, 34109, 0x20); | ||||
| 	elseif (triggerName == "exit") then | ||||
| 		getWorldManager():DoPlayerMoveInZone(player, 5); | ||||
| 	end | ||||
| 	player:endEvent(); | ||||
| end | ||||
		Reference in New Issue
	
	Block a user