yosh
Coder+Mapper+G.Designer
- Joined
- Dec 14, 2010
- Messages
- 33
- Reaction score
- 1
Well i took this script from rescue the princess post so credits go to him. I adapted it so it would on use of a wall the wall should disappear, but it's simply not working.
using The Forgotten Server - Version 0.2.9 (Mystic Spirit).
Here is the script
using The Forgotten Server - Version 0.2.9 (Mystic Spirit).
Here is the script
PHP:
local wallpos = {x=482, y=548, z=7, stackpos=1}
local wallid = 9119
local timetoreset = 10000
function onUse(cid, item, fromPosition, itemEx, toPosition)
local getwall = getTileItemById(wallpos, wallid).uid
if item.itemid == 9119 and item.uid == 4039 then
doPlayerSendTextMessage(cid, 22, 'Watch out for my demons!')
doSummonCreature("Demon", spawnpos)
doSendMagicEffect(wallpos, CONST_ME_BATS)
doRemoveItem(getwall)
addEvent(returnwall, timetoreset)
end
end
function returnwall()
doCreateItem(wallid, wallpos)
end