Lua:
function onStepIn(cid, item, pos)
if item.uid == 22222 and item.itemid == 471 then
if getPlayerStorageValue(cid,10001) == 1 or getPlayerStorageValue(cid,10002) == 1 or getPlayerStorageValue(cid,10003) == 1 or getPlayerStorageValue(cid,10004) == 1 or getPlayerStorageValue(cid,10005) == 1 or getPlayerStorageValue(cid,10007) then
local pos = {x=1313, y=1147, z=14}
doTeleportThing(cid,pos)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You absorbed enough energy! You may pass.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
local pos2 = {x=1313, y=1152, z=14}
doTeleportThing(cid,pos2)
end
end
return 1
end
That script teleporting everyone who stand on item.id 471, can someone change it?
I wants that only teleport if player get StorageValue .
Pls help