mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Fixed up some lua scripts. Fleshed out the dream stuff for Hildie quests. NOTE: Finish player.lua as it has pseudo code.
This commit is contained in:
		| @@ -127,7 +127,7 @@ function onTrigger(player, argc, arg1, arg2) | ||||
|         targetActor:SetPos(px, y, pz, rot, true, player);		 | ||||
| 		message = string.format("Moved %s @ %f, %f, %f, %f", targetActor:GetUniqueId(), px, y, pz, rot); | ||||
| 	elseif direction == 3 then | ||||
|         targetActor:SetPos(x, y, z, distance, true, player);		 | ||||
|         targetActor:SetPos(x, y, z, angle + distance, true, player);		 | ||||
| 		message = string.format("Moved %s @ %f, %f, %f, %f", targetActor:GetUniqueId(), x, y, z, distance); | ||||
|     else | ||||
|         local px = x - distance * math.cos(angle); | ||||
|   | ||||
| @@ -23,7 +23,7 @@ function onTrigger(player, argc, name, posX, posY, posZ, rotation) | ||||
| 				 | ||||
| 	actor = player.CurrentArea:FindActorInZoneByUniqueID(name); | ||||
| 	if (actor ~= nil) then | ||||
| 		actor:SetPos(x,y,z,rot,true); | ||||
| 		actor:SetPos(x,y,z,rot,true, player); | ||||
| 		player:SendMessage(0x20, "", string.format("Moved %s @ %f, %f, %f, %f", name, x, y, z, rot)); | ||||
| 	else | ||||
| 		player:SendMessage(0x20, "", string.format("Could not find %s.", name)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user