Xexza
New Member
- Joined
- Sep 3, 2007
- Messages
- 1,053
- Reaction score
- 3
Hello, I was trying to make a door where only people who made a quest could enter.
Doesnt work, when I click at the door nothing happens, also no error msg in console.
Using TFS 0.2.6
Doesnt work, when I click at the door nothing happens, also no error msg in console.
Using TFS 0.2.6
Code:
function onUse(cid, item, frompos, item2, topos)
queststatus = getPlayerStorageValue(cid,1385)
if item.uid == 1385 and item2.itemid == 1221 and queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,22,"You do not have access to open this door.")
else
doTransformItem(item2.uid,item2.itemid+1)
if item2.itemid == 1222 then
doTransformItem(item2.uid,item2.itemid-1)
end
end