Knight God
Member
- Joined
- Oct 19, 2008
- Messages
- 1,180
- Reaction score
- 21
As the title says, it is possible that the npc to send you to another place gives you residence
My NPC of travel:
SCRIPT:
Please help
My NPC of travel:
<npc name="Gregor" script="data/npc/scripts/travel4.lua" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="131" head="117" body="120" legs="121" feet="115" addons="3" corpse="2212"/>
<parameters>
<parameter key="module_travel" value="1"/>
<parameter key="message_greet" value="Hola |PLAYERNAME|. Para finalizar el camino del knight deves ir en este vote hasta tu main reward, para ir debes decir {main}" />
<parameter key="travel_destinations" value="main,221,658,7,0"/>
</parameters>
</npc>
SCRIPT:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end
npcHandler:addModule(FocusModule:new())
Please help