darknelson
Member
- Joined
- Jun 19, 2011
- Messages
- 190
- Solutions
- 1
- Reaction score
- 15
Hey whats going on, please i need some help, im trying to do the bright sword quest with my scripts, also i got 2 working scripts the barrel and wall and the power ring remove wall
First:
Barrel Script
When i move levers, the walls dissapear, but i can walk across because the tile was removed 2, i need help seriously please some help!
First:
Code:
local rPos = {x=32594, y=32214, z=9}
local rId = 2166
local wPos = {x=32604, y=32216, z=9}
local wId = 1061
local wTime = 20
function onUse(cid, item, fromPos, itemEx, toPos)
local getItem = getTileItemById(rPos, rId).uid
if getItem > 0 then
doRemoveItem(getThingFromPos(wPos).uid, 1)
addEvent(doCreateItem, wTime * 60 * 1000, wId, wPos)
else
doPlayerSendCancel(cid, "Necesitas el power ring.")
end
return true
end
Barrel Script
Code:
local pos = {x=32614, y=32209, z=10}
local wPos = {x=32614, y=32206, z=10}
local bId = 1770
local wtime = 20
local wId = 1550
local rPos = {x=32613, y=32220, z=10}
local rId = 2166
function onUse(cid, item, fromPos, itemEx, toPos)
local getItem1, getItem2 = getTileItemById(rPos, rId).uid, getTileItemById(pos, bId).uid
if getItem1 > 0 and getItem2 > 0 then
doRemoveItem(getThingFromPos(wPos).uid, 1)
doRemoveItem(getItem2, 1)
doRemoveItem(getItem1, 1)
addEvent(doCreateItem, wTime * 60 * 1000, wId, wPos)
else
doPlayerSendCancel(cid, "No está el barril en la posición necesaria.")
end
return true
end
When i move levers, the walls dissapear, but i can walk across because the tile was removed 2, i need help seriously please some help!