therrax
Member
- Joined
- Jul 12, 2012
- Messages
- 262
- Solutions
- 1
- Reaction score
- 11
This is script for poi door with few storages. Why is not working and how to fix :/
TFS 1.0
And in action.xml
TFS 1.0
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 10281 then
if(isInArray({getPlayerStorageValue(cid, 10274), getPlayerStorageValue(cid, 10275), getPlayerStorageValue(cid, 10276), getPlayerStorageValue(cid, 10277), getPlayerStorageValue(cid, 10278), getPlayerStorageValue(cid, 10279), getPlayerStorageValue(cid, 10280)}, -1) == TRUE) then
doPlayerSendTextMessage(cid, 22, "The door seems to be sealed against unwanted intruders.")
else
doPlayerSendTextMessage(cid, 22, "You've absorbed enough energy! You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, TRUE)
end
return TRUE
end
return FALSE
end
And in action.xml
Code:
<action uniqueid="10281" value="quests/poi/storagedoor.lua" />