TFS 1.3 coding NPC script summoning monsters.

CesarZ

Active Member
Joined
Sep 20, 2012
Messages
222
Solutions
2
Reaction score
43
can any one show me the proper use of
Code:
Game.createMonster(Demon, Npc():getPosition())

sorry about my tags I'm new scripting i like to tag my sections otherwise when its too much i get lost. lol

this is what i did
Lua:
 elseif npcHandler.topic[cid] == 1 then -- if topic 1 variable is true then
         if (msgcontains(msg, "Demon")) then -- if  of part 2
                        npcHandler:say("say no more...", cid)
                        Game.createMonster(Demon, Npc():getPosition())
                        npcHandler.topic[cid] = 2
            else -- part 2 else
                        npcHandler:say("Sorry, i cant do that", cid)
                end     -- part 2 end
The npc say: Say no more
,but no monster apears.
let me know thanks!
 
Top