mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Consolidated server data and automatically place them in approporate directories post build
This commit is contained in:
		
							
								
								
									
										23
									
								
								data/scripts/commands/DiceCommand.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								data/scripts/commands/DiceCommand.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| --[[ | ||||
|  | ||||
| DiceCommand Script | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function onEventStarted(player, actor, triggerName, maxNumber)	 | ||||
| 	 | ||||
| 	if (maxNumber == nil) then | ||||
| 		maxNumber = 999; | ||||
| 	end | ||||
| 		 | ||||
| 	result = math.random(0, maxNumber); | ||||
| 	 | ||||
| 	worldMaster = getWorldMaster(); | ||||
| 	player:sendGameMessage(player, worldMaster, 25342, 0x20, result, maxNumber); | ||||
| 				 | ||||
| 	player:endEvent(); | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
		Reference in New Issue
	
	Block a user