mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Scripts for running the various commands/npcs (done so far) are pushed.
This commit is contained in:
		
							
								
								
									
										24
									
								
								scripts/zones/244/npcs/objBed_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								scripts/zones/244/npcs/objBed_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| function onInstantiate(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectBed", false, false, false, false, false, 0x1250FB, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("askLogout", player); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, eventStep, menuOptionSelected)	 | ||||
| 	 | ||||
| 	if (menuOptionSelected == 1) then  | ||||
| 		player:endEvent(); | ||||
| 		return; | ||||
| 	elseif (menuOptionSelected == 2) then | ||||
| 		player:quitGame(); | ||||
| 	elseif (menuOptionSelected == 3) then | ||||
| 		player:logout(); | ||||
| 	elseif (menuOptionSelected == 4) then | ||||
| 		player:sendMessage(33, "", "Heck the bed"); | ||||
| 	end 	 | ||||
| 	 | ||||
| 	player:endEvent(); | ||||
| 		 | ||||
| end | ||||
							
								
								
									
										9
									
								
								scripts/zones/244/npcs/objInnDoor_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/zones/244/npcs/objInnDoor_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| function onInstantiate(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
							
								
								
									
										9
									
								
								scripts/zones/244/npcs/objItemStore_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/zones/244/npcs/objItemStore_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| function onInstantiate(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectItemStorage", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
							
								
								
									
										9
									
								
								scripts/zones/244/npcs/pplCutscene_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/zones/244/npcs/pplCutscene_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| function onInstantiate(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceCutScenePlayer", false, false, false, false, false, 0x107B38, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
							
								
								
									
										9
									
								
								scripts/zones/244/npcs/test1.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/zones/244/npcs/test1.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| function onInstantiate(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
		Reference in New Issue
	
	Block a user