poopsiedoodle
Gibe moni plos
Can someone make a script for a statue (ID: 1448) that can only be used by levels 8 and 9 that teleports you to x:1194, y:982, z:7? If so, I will love you forever :3
local config = {levels = {8, 9}, pos = {x = 1194, y = 982, z = 7}}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray(config.levels, getPlayerLevel(cid)) then
doTeleportThing(cid, config.pos)
end
return true
end
<action actionid="5555" event="script" value="statue.lua"/>
local cyko = {
tpto = {x=1194,y=982,z=7}, --where the statue take them!
lvl = getPlayerLevel(cid) -- dont touch!
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if cyko.lvl == 8 and cyko.lvl == 9 then --only edit the numbers!
doTeleportThing(cid,cyko.tpto)
doSendMagicEffect(cyko.tpto,10)
doPlayerSendTextMessage(cid, 25, "You have been transported!")
else
doPlayerSendCancel(cid, "You are to high level to use this statue")
end
return true
end
if cyko.lvl == 8 and cyko.lvl == 9 then --only edit the numbers!
if cyko.lvl == 8 or cyko.lvl == 9 then --only edit the numbers!
doPlayerSendCancel(cid, "You are to high level to use this statue")