Problem lua The orc king

Status
Zamknięty.

El Thiere

User
Zarejestrowany
Dołączył
Sierpień 24, 2009
Posty
38
Liczba reakcji
0
Mam pewien problem. ze skryptem The orc King.lua wy?wietla mi si? taki komunikat
[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) 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


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
 
Odp: Problem lua The orc king

Komunikat chyba wyja?nia wszystko:
nie mo?na otworzy? data/npc/scripts/the orc king.lua: Nie ma takiego pliku lub katalogu
Sprawd? dok?adnie miejsce i nazw? pliku .lua (PS. raczej wystrzegaj si? stosowania odst?pu w nazwie pliku, stosuj '_', np. zajebisty_skrypt.lua) :)
 
Odp: Problem lua The orc king

w?a?nie jest ten plik i katalog a go nie czyta i nie wiem czy to wina skryptu czy czego. ;s
 
Odp: Problem lua The orc king

Zdecydowanie nie jest to wina skryptu. Po prostu ?le wprowadzi?e? ?cie?k? do pliku.
 
Odp: Problem lua The orc king

yy zrozum... nie mo?esz da? spacji w nazwie pliku gdy? nie przeczyta tego silnik.
zmie? ?cie?ke na
PHP:
orc_king.lua
a potem w pliku .xml npca zmie? wcze?niej podan? sciezke na te nowa z nazwa
PHP:
orc_king.lua
 
Odp: Problem lua The orc king

juz sobi? poradzi??m ;-) ale dzi?kuje za pomoc
 
Status
Zamknięty.
Back
Do góry