dragondarc
New Member
- Joined
- Apr 7, 2009
- Messages
- 14
- Reaction score
- 0
Code:
-- local pause = 1000/2 -- 0.5 sec.
-- local FirstItem = {x=98, y=114, z=15, stackpos=255}
local firstMonsterSpawn = {x=99, y=113, z=15}
-- local GetID = getThingfromPos(FirstItem)
function onUse(cid, item, fromPosition, itemEx, toPosition)
-- if GetID.itemid == 2000 then
doSummonCreature("Rotworm", firstMonsterSpawn)
-- doRemoveItem(GetID,1)
doSendMagicEffect(firstMonsterSpawn, CONST_ME_POFF)
-- addEvent(pause)
else
doPlayerSendCancel(cid, "Wrong item.")
end
-- end
trying to finish this code, and have since realise im a terrible scripter, but im trying! was wondering if anyone could help me finish it or tell me where i went wrong, (yes i know about the -- in the script, i put them there because they are currently functions that are not working in the script so far it spawns a monster, and sends an effect to the 1st spot it tries to spawn at lol.