Taywedgy
New Member
- Joined
- Aug 8, 2007
- Messages
- 12
- Reaction score
- 0
I am trying to create a script where when you step on the selected uid tile. The "tree" will disappear.
This is the script I am using.
Bomba made the script, I've just been editing it for what I want.
I am very new at scripting and I think this is a very simple script.
Please help me remove "tree"
This is the script I am using.
Code:
------Made by BomBa
local tree = {x = 129, y = 419, z = 7, stackpos=1}
local monsterPos1 = {x = 129, y = 418, z = 7}
local monsterPos2 = {x = 129, y = 420, z = 7}
function onStepIn(cid, item, pos)
local monsterFlower = "Moonflower"
if getPlayerLevel(cid) < 120 then
doMoveCreature(cid, NORTH)
doCreatureSay(cid, "You must be at least level 120 or higher.", TALKTYPE_ORANGE_1)
elseif getPlayerLevel(cid) >= 120 then
doRemoveItem(2717, tree)
doSummonCreature(monsterFlower, monsterPos1)
doSummonCreature(monsterFlower, monsterPos2)
doSendMagicEffect(monsterPos1, CONST_ME_SMALLPLANTS)
doSendMagicEffect(monsterPos2, CONST_ME_SMALLPLANTS)
end
return TRUE
end
Bomba made the script, I've just been editing it for what I want.
I am very new at scripting and I think this is a very simple script.
Please help me remove "tree"