Ray Rewind
Doctor
Ok let me explain my script which is not working I get no errors aswell xD!
The script should remove the teleport which is outside so nobody can enter the boss fight room also the tp inside the boss side room should be dissappear when the statue in the middle of the fight room is used by X ITEM ( I dunno how to fix this). Well here is the script!
Only thing which is working is that the teleports dissappear when item is used
The script should remove the teleport which is outside so nobody can enter the boss fight room also the tp inside the boss side room should be dissappear when the statue in the middle of the fight room is used by X ITEM ( I dunno how to fix this). Well here is the script!
Only thing which is working is that the teleports dissappear when item is used
Code:
-- Config #1 --
local tpin = {{x=1166, y=1995, z=14}, {x=1166, y=1995, z=14}}
local tpout = {{x=1157, y=1993, z=15}, {x=1157, y=1993, z=15}}
local glo = {x=1165, y=1998, z=15}
ttime = {10, 30}
local isEvent = 45501;
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 12318 then
doTransformItem(item.uid, item.itemid - 5)
doCreatureSay(cid, "Snake God Essence has spawned", TALKTYPE_ORANGE_1)
doCreateMonster("Snake God Essence", {x= 1165, y= 1999, z= 15})
end
end
local function fixGlobe()
doItemSetAttribute(getTileItemById(glo, 11753).uid, "aid", 45501)
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 45500 then
doItemSetAttribute(item.uid, "aid", 45500)
else
doCreatureSay(cid, "You have to wait some time before this item will charge.", TALKTYPE_ORANGE_1)
return;
end
local tp = getTileItemById(tpin[1],1387).uid;
if(tp > 0)then
doRemoveItem(tp)
end
tp = getTileItemById(tpout[1],1387).uid;
if(tp > 0)then
doRemoveItem(tp)
end
return true
end