kaspertje100
Member
- Joined
- May 8, 2008
- Messages
- 236
- Reaction score
- 7
Hi guys,
so I get this error:
with this script:
so the problem is at line 6: when the player wants to go back.. he can't;S
so I get this error:
Code:
[Error - Action Interface]
data/actions/scripts/other/hellgatedoor.l
Description:
(luaGetThingPosition) Thing not found
with this script:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,4444) == 1 then
doTeleportThing(cid, {x=1068,y=1058,z=7}, TRUE)
doCreatureSay(cid, "Welcome to Hell!", TALKTYPE_ORANGE_1)
if getCreaturePosition(cid, {x=1068,y=1058,z=7}, TRUE) then
doTeleportThing(cid, {x=1068,y=1060,z=7}, TRUE)
doCreatureSay(cid, "Welcome back!", TALKTYPE_ORANGE_1)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, Please talk to Eden first.")
end
return true
end
so the problem is at line 6: when the player wants to go back.. he can't;S