• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Animated dead rune

Status
Not open for further replies.

Koci1994

Banned User
Joined
Dec 27, 2008
Messages
807
Reaction score
1
Mam problem gdy uzyje Runy na jakims dedzie potowrka to w zamiasty pojawiac sie skeleton pojawiaja sie gwiazdki i znika ten ded a w silniku wywal mi
[07/03/2009 18:03:36] Lua Script Error: [Spell Interface]
[07/03/2009 18:03:36] data/spells/scripts/summon/animate dead rune.lua:onCastSpell

[07/03/2009 18:03:36] luaDoCreateMonster(). Monster name(268447899) not found

[07/03/2009 18:03:36] Lua Script Error: [Spell Interface]
[07/03/2009 18:03:36] data/spells/scripts/summon/animate dead rune.lua:onCastSpell

[07/03/2009 18:03:36] luaDoCreateNpc(). Npc name(268447899) not found

[07/03/2009 18:03:36] Lua Script Error: [Spell Interface]
[07/03/2009 18:03:36] data/spells/scripts/summon/animate dead rune.lua:onCastSpell

[07/03/2009 18:03:36] luaDoConvinceCreature(). Creature not found
 
I'm having the same problem.
Error:
PHP:
Lua Script Error: [Spell Interface] 
data/spells/scripts/summon/animate dead rune.lua:onCastSpell

luaDoCreateMonster(). Monster name(268449585) not found

Lua Script Error: [Spell Interface] 
data/spells/scripts/summon/animate dead rune.lua:onCastSpell

luaDoCreateNpc(). Npc name(268449585) not found

Lua Script Error: [Spell Interface] 
data/spells/scripts/summon/animate dead rune.lua:onCastSpell

luaDoConvinceCreature(). Creature not found

animate dead rune.lua
PHP:
local function doTargetCorpse(cid, pos)
	local getPos = pos
	getPos.stackpos = 255
	corpse = getThingfromPos(getPos)
	if(corpse.uid > 0 and isCreature(corpse.uid) == FALSE and isInArray(CORPSES, corpse.itemid) == TRUE) then
		doRemoveItem(corpse.uid)
		local creature = doSummonCreature(cid, "Skeleton", pos)
		doConvinceCreature(cid, creature)
		doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE)
		return LUA_NO_ERROR
	end

	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
	return LUA_ERROR
end

function onCastSpell(cid, var)
	local pos = variantToPosition(var)
	if(pos.x ~= 0 and pos.y ~= 0 and pos.z ~= 0) then
		return doTargetCorpse(cid, pos)
	end

	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
	return LUA_ERROR
end
 
Status
Not open for further replies.
Back
Top