I'm trying to make a switch with a uniqueid, and when you use it a monster appears.
I tried it but im not really good at scripting.
So I'll show ya what i got so far and could you guys tell me how to fix it or make it (probably its all wrong).
and I got in actions.xml this:
And this is the error it gives when I /reload actions
Thanks in advanced and rep+ for the one who can help me! Please i need it
.
I tried it but im not really good at scripting.
So I'll show ya what i got so far and could you guys tell me how to fix it or make it (probably its all wrong).
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemuid == 5044 then
doSummonCreature(cid, position x="1550",y="257",z="6")
doSendMagicEffect(frompos, math.random(01,60) )
doSendAnimatedText(frompos, 'Hydra')
return true
end
and I got in actions.xml this:
Code:
<action uniqueid="5044" script="donations/hydra lever.lua" />
And this is the error it gives when I /reload actions
Code:
[12/09/2010 20:32:02] [Error - LuaScriptInterface::loadFile] data/actions/scripts/donations/hydra lever.lua:3: ')' expected near 'x'
[12/09/2010 20:32:02] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/donations/hydra lever.lua)
[12/09/2010 20:32:02] data/actions/scripts/donations/hydra lever.lua:3: ')' expected near 'x'
Thanks in advanced and rep+ for the one who can help me! Please i need it