Hello! (tfs 0.3.6 pl1, 8.60)
I need script:
when you step on teleport with uniqueid 1000 then
if playerstoragevalue 0001 == 1 and
playerstoragevalue 0002 == 1 and
playerstoragevalue 0003 == 1 then
teleport to x,y,z
I'm really not programmer, but i tried to bake something and i guess it's almost working
I need script:
when you step on teleport with uniqueid 1000 then
if playerstoragevalue 0001 == 1 and
playerstoragevalue 0002 == 1 and
playerstoragevalue 0003 == 1 then
teleport to x,y,z
I'm really not programmer, but i tried to bake something and i guess it's almost working
Lua:
function onStepIn(cid, item, pos)
if item.uid == 10100 then
if getPlayerStorageValue(cid,10001) == 1
getPlayerStorageValue(cid,10002) == 1
getPlayerStorageValue(cid,10003) == 1
getPlayerStorageValue(cid,10004) == 1
getPlayerStorageValue(cid,10005) == 1
getPlayerStorageValue(cid,10006) == 1
getPlayerStorageValue(cid,10007) == 1 then
doTeleportThing(cid,{x=32829, y=32243, z=11})
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Congratulations!')
else
doTeleportThing(cid,{x=32824, y=32232, z=12})
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You haven\'t done all rooms!')
end
return true
end
end
Last edited: