• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[MOVEMENTS] Pomóżcie ze skryptem

Koci

Member
Joined
Dec 18, 2009
Messages
784
Reaction score
18
Location
Scotland
Witam
Chce zrobić skypt movements onStep , który ma działać tak :
Gracz wchodzi na title o aid: 65534 i jeśli ma przy sobie item od id :6531 to go teleportuje na współrzędne x:457 y:250 z:7 a jeśli nie ma czapki mikołaja to go teleportuje na współrzędne x:543 y:560 z:6.
Jeśli ktoś potrafi napisać taki skrypt proszę o pomoc.
@edit
Już sobie przerobiłem inny skrypt:
LUA:
function onStepIn(cid, item, pos)
	local position = {x=457, y=250, z=7}
	local position2 = {x=543, y=560, z=6}
	
		if (getPlayerItemCount(cid, 6531) < 1) then
			doTeleportThing(cid, position2)
                        doPlayerSendTextMessage(cid,22,"Musisz miec Czapke mikolaja.")
		else

			doTeleportThing(cid, position)
			
		end
end
 
Last edited:
Back
Top