Kanto
So.. you want a cookie?
~~~~SOLVED PROBLEM~~~~
Hello.. This is a script(NOT MADE BY ME) it is suppose to remove a wall if you put a monsters corpse on a tile and pull a swith. But the switch is able to use all the time.. and nothing happens. So can any one help me with this...
UniqueID: [37272]. to the swith.
I use it for my inq. I give rep++
Hello.. This is a script(NOT MADE BY ME) it is suppose to remove a wall if you put a monsters corpse on a tile and pull a swith. But the switch is able to use all the time.. and nothing happens. So can any one help me with this...
Something is wrong but I don't know what.. I added ActionID: [5002]. andfunction onUse(cid, item, frompos, item2, topos)
local switchUniqueID = 37271 -- uniqueID of switch
local switchID = 1945
local switch2ID = 1946
local itemID = 5527
local itempos = {x=1189, y=1198, z=12, stackpos=1}
local wallpos = {x=1187, y=1199, z=12, stackpos=1}
local playername = getPlayerName(cid)
local getitem = getThingfromPos(itempos)
local wallchk = getThingfromPos(wallpos)
if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 3458 then
doSendMagicEffect(itempos,10)
doSendMagicEffect(wallchk,10)
doRemoveItem(getitem.uid,1)
doRemoveItem(wallchk.uid,1)
doTransformItem(item.uid,item.itemid+1)
addEvent(onTimer2, 2*60*1000)
elseif item.uid == switchUniqueID and item.itemid == switch2ID then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"You need to place the corpse of boss to remove wall to get prize!")
end
return 1
end
function onTimer2()
wallnewpos = {x=1187, y=1199, z=12}
doCreateItem(3458,1,wallnewpos)
end
UniqueID: [37272]. to the swith.
I use it for my inq. I give rep++
Last edited: