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

Pomoc z teleportem

Pheronike

New Member
Joined
Sep 29, 2012
Messages
16
Reaction score
0
O to mój kod:

Wszystko robię to w Actions 0.3.6pl1

local crystal = Item ID
local teleport = {x=xxx, y=xxx, z=x}

function onUse(cid, item, frompos, item2, topos)
if item.itemid == crystal and getPlayerLevel(cid) >= level then
doTeleportThing(cid, teleport, TRUE)
doSendMagicEffect(teleport,10)
doSendAnimatedText(teleport, "You are in MIASTO!", 5)
end
return 1
end


Potem:
<action itemid="x" script="TPCrystal.lua"/>

Dany przedmiot powinien teleportować w dane miejsce, oraz ma się nie niszczyć.
Co zrobić by nie można byłoby go stackować oraz żeby nie mógłby być użyty gdy gracz ma pż?

Proszę o pomoc z edytowaniem tego skryptu :p
 
Code:
and getPlayerLevel(cid) >= level then
wtf? Zbędna zmienna :blink:.

Poza tym co to za problem znaleźć listę funkcji, lekko zedytować jedną dla swoich potrzeb i wkleić ją do kodu?
 
Back
Top