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

Solved Demon Oak NPC

XtrmJosh

Member
Joined
Oct 6, 2010
Messages
189
Reaction score
17
Hi all,

The title isn't quite as obvious as it looks. What I'm actually after is an NPC with the body of Demon Oak (e.g I want the NPC looktype to be that of Demon Oak, not the NPC who initiates the Demon Oak quest).

Could anyone advise of how to go about doing something like this? I was thinking of drawing Demon Oak on the map, and placing the NPC on top, with an invisible outfit, but I don't know where to begin making an invisible NPC...

Thanks,
Josh
 
for each piece of item of demon oak, set a npc with item outfit:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Demon Oak" script="muted.lua" walkinterval="0" hidehealth="1">
    <look typeex="8291"/>
</npc>

muted.lua
all will have this script to not answer to player:
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
npcHandler:addModule(FocusModule:new())
 
for each piece of item of demon oak, set a npc with item outfit:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Demon Oak" script="muted.lua" walkinterval="0" hidehealth="1">
    <look typeex="8291"/>
</npc>

muted.lua
all will have this script to not answer to player:
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
npcHandler:addModule(FocusModule:new())

Ahhh, so I create an NPC for each of the pieces of him, and stick them all in the map, and make only one of them respond? Sounds like a good way of doing it! Thanks
 
I don't remember if NPC has to yell or the doak scripts trigger the yells
 
Back
Top