• 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!

Use item and Summons Creature. HELP

mujica

New Member
Joined
Feb 3, 2010
Messages
203
Reaction score
3
Okay i looked and looked
i found scripts that Summon creature but wasnt ur monster
i want it like utevo res "rat
but in a rune form
Please help me :(
And i only want it to be used once until creature dies or u relog

~a item (Doll) that uses utevo res "monstername might work IDK Please help
 
Last edited:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local monster = "Rat"
	if table.maxn(getCreatureSummons(cid)) <= 0 then
		doSummonCreature(monster, fromPosition.x + 1)
		doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
	else
		doPlayerSendCancel(cid, "Sorry, you already have a summon.")
	end
	
	return true
end
 
[27/10/2010 09:08:29] [Error - Action Interface]
[27/10/2010 09:08:29] data/actions/scripts/summon.lua:onUse
[27/10/2010 09:08:29] Description:
[27/10/2010 09:08:29] attempt to index a number value
[27/10/2010 09:08:29] stack traceback:
[27/10/2010 09:08:29] [C]: in function 'doCreateMonster'
[27/10/2010 09:08:29] data/lib/050-function.lua:283: in function 'doSummonCreature'
[27/10/2010 09:08:29] data/actions/scripts/summon.lua:4: in function <data/actions/scripts/summon.lua:1>
 
Back
Top