Hi guys!
Is it possible to hide the yellow text of NPC after for example 'hi'? Its looking not good cause it's duplicate with NPC Channel. For example my NPC:
Is it possible to hide the yellow text of NPC after for example 'hi'? Its looking not good cause it's duplicate with NPC Channel. For example my NPC:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Goku" script="data/npc/scripts/goku3.lua" walkinterval="0" floorchange="0">
<health now="150" max="150"/>
<look type="2"/>
<parameters>
<parameter key="message_greet" value="He kidnapped my son. Kame and Bulma will help us to find him. Piccolo will in the fight. Can you help me?"/>
<parameter key="message_farewell" value="Help me!"/>
<parameter key="message_walkaway" value="..." />
<parameter key="module_shop" value="" />
<parameter key="shop_buyable" value="" />
</parameters>
</npc>
LUA:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
--Na Facc
local travelNode = keywordHandler:addKeyword({'yes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'We will find him by Dragon Balls Radar. Please defeat him and I do the rest. Are you going with us?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 1, cost = 0, destination = {x = 545, y = 189, z = 7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Help...'})
--Skrypt na Pacc
local travelNode = keywordHandler:addKeyword({'nazwa gdzie tepa'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to find a girl?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 1, cost = 0, destination = {x=458, y=50, z=7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
keywordHandler:addKeyword({'free'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to nazwa planety,nazwa planety2 Planet for 200 zeni anywhere !'})
keywordHandler:addKeyword({'pacc'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to nazwa planety pacc,nazwa planetypacc2 for 200 zeni anywhere !'})
npcHandler:addModule(FocusModule:new())