Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2121 then
local pos = getCreaturePosition(cid)
local monster = doCreateMonster("demon", pos)
doConvinceCreature(cid, monster)
return 1
end
end
I need to create effect on the position, where demon appear. How to do?
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2121 then
local pos = getCreaturePosition(cid)
local monster = doCreateMonster("demon", pos)
doSendMagicEffect(fromPosition, CONST_ME_FIREAREA)
doConvinceCreature(cid, monster)
return 1
end
end
local monster = doCreateMonster("demon", pos.x + 1)
If I do this, summon does not apper.
[12/11/2009 19:33:33] attempt to index a number value
[12/11/2009 19:33:33] stack traceback:
[12/11/2009 19:33:33] [C]: in function 'doCreateMonster'
[12/11/2009 19:33:33] data/actions/scripts/omg/summon.lua:4: in function <data/actions/scripts/omg/summon.lua:1>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2121 then
doSendMagicEffect(fromPosition, CONST_ME_FIREAREA)
local pos = getCreaturePosition(cid)
local monster = doCreateMonster("demon", pos.x + 1)
doConvinceCreature(cid, monster)
return 1
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2121 then
local pos = getCreaturePosition(cid)
local monster = doCreateMonster("demon", pos)
doSendMagicEffect(getCreaturePosition(monster), CONST_ME_FIREAREA)
doConvinceCreature(cid, monster)
return 1
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2121 then
local pos = getCreaturePosition(cid)
local monster = doCreateMonster("demon", pos)
doSendMagicEffect(getCreaturePosition(monster), CONST_ME_FIREAREA)
doConvinceCreature(cid, monster)
return 1
end
end