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

TFS 1.3 coding NPC script summoning monsters.

CesarZ

Well-Known Member
Joined
Sep 20, 2012
Messages
268
Solutions
4
Reaction score
63
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!
 
Back
Top