• 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 Simple Spell, create and convince creature

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
Here is my simple spell that simply does nothing

Code:
function onCastSpell(cid, var)
		doSummonCreature("Rat", cid)   
    		doConvinceCreature(cid, "Rat")
	end

Is there a part that must be in it or something because it's not doing anything (and yes I did set it in spells.xml correctly). All I want it to do is to create a creature and then convince it for the player immediately, that's all.
 
LUA:
local monster = "Rat"
function onCastSpell(cid, var)
		doSummonCreature(monster, cid)   
    		doConvinceCreature(cid, monster)
                print("Report Cyko: "..monster..".")
                return true
	end

If doesnt work, post the prints.
 
it does not work, and I'm not the hoster so I can't see the errors coming up

I'll talk to him later and figure out what the errors are though.
 
LUA:
local monsterName = "Rat"

function onCastSpell(cid, var)
    local monster = doSummonCreature(monsterName, getThingPos(cid))   
    doConvinceCreature(cid, monster)
    return true
end
 
Back
Top