When Open Quest Door player auto stand on it

Hover Design

Novice Member [Graphics Designer / Mapper]
Joined
Jun 29, 2017
Messages
37
Reaction score
32
When i open quest door player don't stand on it then players without storage can pass it



Code:
function onUse(cid, item, frompos, item2, topos)
    if item.itemid == 1223 then
        if getPlayerStorageValue(cid,12109) == 4 then
            doTransformItem(item.uid, item.itemid+1)
        else
            doPlayerSendTextMessage(cid,22,"You first must play the instruments in correct order to get the access!")
        end
    end
    return true
end
 
OP
Hover Design

Hover Design

Novice Member [Graphics Designer / Mapper]
Joined
Jun 29, 2017
Messages
37
Reaction score
32
I add doTeleportThing on doors and now working.

Code:
function onUse(cid, item, frompos, item2, topos)
local temple = {x = 993, y = 1008, z = 7}
    if item.itemid == 1223 then
        if getPlayerStorageValue(cid,12109) == 4 then
            doTransformItem(item.uid, item.itemid+1)
            doTeleportThing(cid, {x=993, y=1008, z=7})
        else
            doPlayerSendTextMessage(cid,22,"You first must play the instruments in correct order to get the access!")
        end
    end
    return true
end
 
Top