• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Monster summong function error

tiddpd

PHP Scripter
Joined
Apr 16, 2008
Messages
331
Reaction score
0
I made this simple script just to show the example of the error I get when i try to use "doSummonMonster()". I've made sure all the spelling was right... the position and even tried different monsters, and it keeps saying creature not found... Why is this? TFS 0.3 btw

It never works and heres the script:
Code:
function onUse(cid, item, frompos, item2, topos)
	local creaturePos = {x = 152, y = 477, z = 7}
	doSummonMonster("demon", creaturePos)
end

And heres the Error:
Code:
[19/03/2009 00:13:59] Lua Script Error: [Action Interface] 
[19/03/2009 00:13:59] data/actions/scripts/quests/testt.lua:onUse

[19/03/2009 00:13:59] luaDoSummonMonster(). Creature not found
 
I made this simple script just to show the example of the error I get when i try to use "doSummonMonster()". I've made sure all the spelling was right... the position and even tried different monsters, and it keeps saying creature not found... Why is this? TFS 0.3 btw

It never works and heres the script:
Code:
function onUse(cid, item, frompos, item2, topos)
	local creaturePos = {x = 152, y = 477, z = 7}
	doSummonMonster("demon", creaturePos)
end

And heres the Error:
Code:
[19/03/2009 00:13:59] Lua Script Error: [Action Interface] 
[19/03/2009 00:13:59] data/actions/scripts/quests/testt.lua:onUse

[19/03/2009 00:13:59] luaDoSummonMonster(). Creature not found

it has 2 errors on it.

you can use my parchment script to as a base to solve your problems

Code:
function onUse(cid, item, frompos, item2, topos)
-----------------------------------------------------------------------------------------
-- Variables
demonpos1 = {x=538, y=1195, z=15}
demonpos2 = {x=538, y=1201, z=15}
demonpos3 = {x=544, y=1195, z=15}
demonpos4 = {x=544, y=1201, z=15}
-----------------------------------------------------------------------------------------

if item.itemid == 1953 then
doSummonCreature("Demon",demonpos1)
doSummonCreature("Demon",demonpos2)
doSummonCreature("Demon",demonpos3)
doSummonCreature("Demon",demonpos4)
doRemoveItem(item.uid,1)
end
end

only change the variables of demonpos and the item id of the item you will use.
 
Back
Top