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

Pomocy- Kompletny noob, nie ogarnia chest questow

kubiczi123

RoFT- First and last memb
Joined
Dec 30, 2011
Messages
101
Reaction score
11
Location
Poland
Siema, pewnie zastanawiacie sie dlaczego napisalem ten temat...
Chcialem stworzyc chest questa, a jako ze posiadam silnik pokemon w edytorze sie nie da(!)

Wiec musze go zrobic skryptowo.

Znalazlem tutorial na jakiejs stronie ale w konsoli wywala mi blad pewnie temu ze skrypt pod stara tibie.


PHP:
[14/12/2012 21:27:49] [Error - LuaScriptInterface::loadFile] data/actions/scripts/starter.lua:1: '<eof>' expected near 'elseif'
[14/12/2012 21:27:49] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/starter.lua)
[14/12/2012 21:27:49] data/actions/scripts/starter.lua:1: '<eof>' expected near 'elseif'

PHP:
Actions.xml
	<action uniqueid="6666" event="script" value="starter.lua"/>

Skrypt (Na 100% stary ale innego nie znalazlem...)
PHP:
elseif item.uid 6666 then
queststatus = getPlayerStorageValue(cid,6666)
if queststatus -1 then
if getPlayerLevel(cid) >= 5 then
doPlayerSendTextMessage(cid,22,”You have found Pokemon BOX!.”)
doPlayerAddItem(cid,11638,1)
setPlayerStorageValue(cid,6666,1)
else
doPlayerSendTextMessage(cid,22,”You've bugged the quest! BAD BOY.”)
end
else
doPlayerSendTextMessage(cid,22,”You've already taken the box.”)
end

Pomozcie prosze, albo podrzuccie tutorial na chest questy
 
wywalilo Ci blad bo napisales elseif, skrypty zaczyna sie od if'a. Polcam poradniki na TNP.
 
if item.uid 6666 then
queststatus = getPlayerStorageValue(cid,6666)
if queststatus -1 then
if getPlayerLevel(cid) >= 5 then
doPlayerSendTextMessage(cid,22,”You have found Pokemon BOX!.”)
doPlayerAddItem(cid,11638,1)
setPlayerStorageValue(cid,6666,1)
else
doPlayerSendTextMessage(cid,22,”You've bugged the quest! BAD BOY.”)
end
else
doPlayerSendTextMessage(cid,22,”You've already taken the box.”)
end
 
Nadal nie dziala...
PHP:
[14/12/2012 22:39:53] [Error - LuaScriptInterface::loadFile] data/actions/scripts/starter.lua:1: 'then' expected near '6666'
[14/12/2012 22:39:53] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/starter.lua)
[14/12/2012 22:39:53] data/actions/scripts/starter.lua:1: 'then' expected near '6666'

Lukanio
To podeslij mi ten poradnik chetnie poczytam
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 6666 then
queststatus = getPlayerStorageValue(cid,6666)
if queststatus < 1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You have found Pokemon BOX!")
doPlayerAddItem(cid,11638,1)
doPlayerSetStorageValue(cid,6666,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You've already taken the box.")
end

end
return TRUE
end
 
ja tam zrobilem sobie wszystkie skrzynki w taki sposob w jednym pliku i nie narzekam na spam .. :) wszystkie questy pod nosem
 
Back
Top