• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Actions] doors bug

MaR0

Banned User
Joined
Apr 16, 2018
Messages
272
Solutions
3
Reaction score
29
Hello i face this problem while playing at my server when i use the door to pass it, it transform to other things but dunno why this and if you clicked on it it transform too another things? here is gif to explain more
Screen capture - 2ce6e5880b4e96053cfbbc626b41e362 - Gyazo
and here is the script
Code:
<action actionid="49000" event="script" value="bizmo.lua"    />
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) >= 1000 then
            doTransformItem(item.uid, item.itemid + 1)
            doTeleportThing(cid, toPosition)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to be level 1000 or higher.")
    end
    return true
end
using tfs 0.3.7_svn 8.60
 
Solution
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) >= 1000 then
            if item.itemid == 5112 then
                        doTransformItem(item.uid, item.itemid + 1)
            else
                        doTransformItem(item.uid, item.itemid - 1)
            end
            doTeleportThing(cid, toPosition)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to be level 1000 or higher.")
    end
    return true
end
try this
Well, just read the code.
It keeps incrementing it's ID over and over as coded on line 3.
i already tried to remove line 3. but the door did appear opening
109421359a1f1b436b08fdebed69543d063a5de48a5ce6ac9542012c151d5a0c150a20de.jpg
 
Well it obviously didn't, since it's ID didn't increment.
The script you use has a flaw which you discovered - use another door script ;)
i don't found any script with high levels it only gate of expertise and it say you must be front of the door i don't want this i want normal door with high level like this script but i have that bug it possible to solve?
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) >= 1000 then
            if item.itemid == 5112 then
                        doTransformItem(item.uid, item.itemid + 1)
            else
                        doTransformItem(item.uid, item.itemid - 1)
            end
            doTeleportThing(cid, toPosition)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to be level 1000 or higher.")
    end
    return true
end
try this
 
Solution
Back
Top