Cloow
Active Member
- Joined
- May 10, 2010
- Messages
- 1,086
- Reaction score
- 35
Can someone tell me why this script wont work?
When im entering the tile I get teleported even if I dont have the storage value
in console it says - "
[16/01/2013 18:19:00] [Error - MoveEvents Interface]
[16/01/2013 18:19:00] data/movements/scripts/posessedportal.lua
nStepIn
[16/01/2013 18:19:00] Description:
[16/01/2013 18:19:00] (luaDoPlayerSendTextMessage) Player not found"
neither does this, it says "You already proven you worthy" and in console the same [16/01/2013 18:32:40] [Error - MoveEvents Interface]
[16/01/2013 18:32:40] data/movements/scripts/twst.lua
nStepIn
[16/01/2013 18:32:40] Description:
[16/01/2013 18:32:40] (luaDoPlayerSendTextMessage) Player not found
When im entering the tile I get teleported even if I dont have the storage value
in console it says - "
[16/01/2013 18:19:00] [Error - MoveEvents Interface]
[16/01/2013 18:19:00] data/movements/scripts/posessedportal.lua
[16/01/2013 18:19:00] Description:
[16/01/2013 18:19:00] (luaDoPlayerSendTextMessage) Player not found"
Lua:
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, 37742) then
doTeleportThing(cid, {x = 2705, y = 2308, z = 7})
doPlayerSendTextMessage(cid, "Welcome to Tews Island!")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must prove yourself worthy of entering Tews Island.")
end
return true
end
neither does this, it says "You already proven you worthy" and in console the same [16/01/2013 18:32:40] [Error - MoveEvents Interface]
[16/01/2013 18:32:40] data/movements/scripts/twst.lua
[16/01/2013 18:32:40] Description:
[16/01/2013 18:32:40] (luaDoPlayerSendTextMessage) Player not found
Lua:
function onStepIn(cid, item, position, fromPosition)
doPlayerSetStorageValue(cid, 37742, 1)
doPlayerSendTextMessage(cid, "You have have shown yourself worthy of entering Tews Island!")
if getPlayerStorageValue(cid, 37742) then
doPlayerSendCancel(cid, "You already shown yourself worthy")
return true
end
end
Last edited: