Hello I'm using tfs 0.4.1 and I wanna make a simple script - when i click on a lamp it gonna create a dragon near character. Script looks like
When I'm using this script nothing happens and on server console i got error message : (luaDoCreateMonster) Monster with name '268436457' not found.
I tried write like this:
doCreateMonster(cid,Dragon)
doCreateMonster(cid,'Dragon')
swapping cid with dragon parameter - nothing helps. What im doing wrong ? It's such a simple function and i have problems with using it ;/.
P.S
When im using function : doSummonMonster(cid,"Dragon") it works, but with doCreateMonster(cid,"Dragon") don't ... I have no idea what's wrong ;s
Lua:
function onUse(cid, item, frompos, item2, topos)
if(item.itemid == 2344) then
doCreateMonster(cid,"Dragon")
end
return true
end
When I'm using this script nothing happens and on server console i got error message : (luaDoCreateMonster) Monster with name '268436457' not found.
I tried write like this:
doCreateMonster(cid,Dragon)
doCreateMonster(cid,'Dragon')
swapping cid with dragon parameter - nothing helps. What im doing wrong ? It's such a simple function and i have problems with using it ;/.
P.S
When im using function : doSummonMonster(cid,"Dragon") it works, but with doCreateMonster(cid,"Dragon") don't ... I have no idea what's wrong ;s
Last edited: