• 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!

Skrypt

Status
Not open for further replies.

SensiiTychy

New Member
Joined
Feb 4, 2009
Messages
95
Reaction score
0
Witam potrzebowałbym skrypta, takiego podobnego troche do tego w anhi. Tyle że 2 kratki są i dźwignia. I teleportuje do innego pomieszczenia. Dla srednio dobrego skryptera już to powinno być w miarę prostę. Więc prosze o pomoc , a nie o spam.
 
Code:
local positions = {{x = , y= , z= , stackpos = STACKPOS_TOP_CREATURE}, {x = , y = , z = , stackpos = STACKPOS_TOP_CREATURE}}
local newPositions = {{x = , y= , z =}, { x = , y = ,z =}}
local p1 = getThingFromPos(positions[1]).uid
local p2 = getThingFromPos(positions[2]).uid
if (isPlayer(p1) and isPlayer(p2)) then
	doTeleportThing(p1, newPositions[1])
	doTeleportThing(p1, newPositions[2])
end
 
pewnie ze trzeba o.O... i powiem więcej xD Do actions.xml tez dowalic linijke musisz! xD
 
W /data/actions/actions.xml musisz dorzucić linijke:
PHP:
 <action uniqueid="2345" event="script" value="skrypt.lua" />
I stworzyć plik skrypt.lua w /data/actions/scripts
I w ten plik skrypt.lua wklejasz to co ci Chojrak dał(ale pierw uzupełnij sobie ten skrypt współrzędnymi).
Potem tylko wchodzisz do RME i ustawiasz dźwigni UID : 2345
No i to by było na tyle.
 
Status
Not open for further replies.
Back
Top