Mam pewien problem. ze skryptem The orc King.lua wy?wietla mi si? taki komunikat
A skrypt lua to.
a xml to
A problem jest taki ze ich nie czyta ;s a raczej lua
[17:26:23.488] [Error - LuaInterface::loadFile] cannot open data/npc/scripts/the orc king.lua: No such file or directory
[17:26:23.488] [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/the orc king.lua
[17:26:23.488] cannot open data/npc/scripts/the orc king.lua: No such file or directory
A skrypt lua to.
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
function greetCallback(cid)
if getPlayerStorageValue(cid,3058) == -1 then
selfSay('Arrrrgh! A dirty paleskin! Kill them my guards!', cid)
pos = getCreaturePosition(getNpcCid())
local northEast = {x=pos.x+1,y=pos.y-1,z=pos.z}
local northWest = {x=pos.x-1,y=pos.y-1,z=pos.z}
local southEast = {x=pos.x+1,y=pos.y+1,z=pos.z}
local southWest = {x=pos.x-1,y=pos.y+1,z=pos.z}
local East = {x=pos.x+1,y=pos.y,z=pos.z}
local West = {x=pos.x-1,y=pos.y,z=pos.z}
local South = {x=pos.x,y=pos.y+1,z=pos.z}
local North = {x=pos.x,y=pos.y-1,z=pos.z}
doSummonCreature('Orc Warlord', northWest)
doSummonCreature('Orc Warlord', West)
doSummonCreature('Orc Leader', southWest)
doSummonCreature('Orc Leader', South)
doSummonCreature('Orc Leader', southEast)
doSummonCreature('Slime', East)
doSummonCreature('Slime', northEast)
doSummonCreature('Slime', North)
setPlayerStorageValue(cid,3058,1)
else
return TRUE
end
end
-- Set the greeting callback function
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:setMessage(MESSAGE_GREET, 'Arrrgh! Again?! What do you want?')
npcHandler:addModule(FocusModule:new())
a xml to
<?xml version="1.0" encoding="UTF-8"?>
<npc name="The Orc King" script="data/npc/scripts/the orc king.lua" walkinterval="2000">
<health now="100" max="100"/>
<look type="238"/>
<parameters>
<parameter key="message_farewell" value="LEAVE!"/>
<parameter key="message_walkaway" value="YES, LEAVE!"/>
<parameter key="message_idletimeout" value="LEAVE!"/>
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="job;name;orc fortress;fortress;orc;dark;cathedral;offer;human;mission;quest" />
<parameter key="keyword_reply1" value="HOW DARE YOU TO ASK MY JOB? I AM THE ORC KING. THAT IS MY JOB, RRRUMAN!" />
<parameter key="keyword_reply2" value="You dun need to know my name... I'm the orc king." />
<parameter key="keyword_reply3" value="You are in our fortress. How dare you to kill my citizens?" />
<parameter key="keyword_reply4" value="You are in our fortress. How dare you to kill my citizens?" />
<parameter key="keyword_reply5" value="I am theirrr king!" />
<parameter key="keyword_reply6" value="OFFER? ARE YOU ASKING FOR AN OFFER? LEAVE, NOW!" />
<parameter key="keyword_reply7" value="HA HA HA! LEAVE, YOU ARE MAKING ME MAD!" />
<parameter key="keyword_reply8" value="HUMAN... YOU, HUMANS, MAKE THE WORLD WORSE!" />
<parameter key="keyword_reply9" value="Do you really want a mission? Ok, the mission is: Leave the orc fortress immediatly!" />
<parameter key="keyword_reply10" value="Do you really want a mission? Ok, the mission is: Leave the orc fortress immediatly!" />
</parameters>
</npc>
A problem jest taki ze ich nie czyta ;s a raczej lua
nCreatureAppear(cid) end