Ninkobi
Owner /Founder of Syphera
I made a tile similar to demon oak's tile before you enter, you need to step on 5 tiles (which give storage ids)to stand a chance of entering.
My script doesn't work at all, it gives no errors and when you step on the tile you get Sorry not possible in white cancel writing.
Script:
Please help, thanks in advance.
My script doesn't work at all, it gives no errors and when you step on the tile you get Sorry not possible in white cancel writing.
Script:
Code:
levelneeded = 120 --- How much level you need to enter the arena ---
local location = {
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7},
{x=32716, y=32347, z=7}
}
local fail = {x=32716, y=32339, z=7}
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
if item.actionid == 17976 then
if getPlayerStorageValue(cid,346211) == -1 and getPlayerStorageValue(cid,346212) == -1 and getPlayerStorageValue(cid,346213) == -1 and getPlayerStorageValue(cid,346214) == -1 and getPlayerStorageValue(cid,346215) == -1 then
doTeleportThing(cid,fail)
doPlayerSendTextMessage(cid,22,"You are not welcome to fight the demon oak!")
elseif getPlayerStorageValue(cid,346211) == 1 and getPlayerStorageValue(cid,346212) == 1 and getPlayerStorageValue(cid,346213) == 1 and getPlayerStorageValue(cid,346214) == 1 and getPlayerStorageValue(cid,346215) == 1 and getPlayerLevel(cid) >= levelneeded then
doTeleportThing(cid,location[rand])
rand = math.random(1,10)
end
end
end
end
end
Please help, thanks in advance.