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

error with quest boc

eXact

New Member
Joined
Apr 4, 2012
Messages
14
Reaction score
0
Hi Otland,

when i will get my rewar from box he always open box and the item is inside, i searched this forum but no of the scripts forking for 9.6 !

Anyone can help me to fix it?

Greetz eXact

- - - Updated - - -

bumb

- - - Updated - - -

Code:
[25/12/2012 01:41:57] >> Loading script systems
[25/12/2012 01:41:57] Warning: [Event::checkScript] Can not load script. /scripts/quest/quest.lua
[25/12/2012 01:41:57] cannot open data/actions/scripts/quest/quest.lua: No such file or directory
[25/12/2012 01:41:57] Warning: [Event::checkScript] Can not load script. /scripts/quest/quest.lua
[25/12/2012 01:41:57] cannot open data/actions/scripts/quest/quest.lua: No such file or directory

- - - Updated - - -

Only got these in action.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<actions>
	<!-- Quests -->
	<action itemid="1740" script="quests/quests.lua"/>
	<action fromid="1747" toid="1749" script="quests/quests.lua"/>
	<action uniqueid="30015" script="quests/annihilator.lua"/>
	<action uniqueid="30016" script="quests/DHQ.lua"/>  <!-- DHQ -->
	<action uniqueid="30017" script="quest/quest.lua"/>
	<action uniqueid="30018" script="quest/quest.lua"/>

	<!-- Tools -->
	<action itemid="2420" script="tools/machete.lua"/>
	<action itemid="2550" script="tools/scythe.lua"/>
	<action itemid="2580" script="tools/fishing.lua" allowfaruse="1"/>
	<action itemid="2554" script="tools/shovel.lua"/>
	<action itemid="2120" script="tools/rope.lua"/>
	<action itemid="2553" script="tools/pick.lua"/>

	<!-- Increase/Decrease ItemId -->
	<action itemid="1873" function="increaseItemId"/>
	<action itemid="1874" function="decreaseItemId"/>
	<action itemid="1875" function="increaseItemId"/>
	<action itemid="1876" function="decreaseItemId"/>
	<action itemid="2162" function="increaseItemId"/>
	<action itemid="2163" function="decreaseItemId"/>
	<action itemid="3743" function="increaseItemId"/>
	<action itemid="3744" function="decreaseItemId"/>
	<action itemid="3947" function="increaseItemId"/>
	<action itemid="3948" function="decreaseItemId"/>
	<action itemid="1479" function="increaseItemId"/>
	<action itemid="1480" function="decreaseItemId"/>
	<action itemid="1945" function="increaseItemId"/>
	<action itemid="1946" function="decreaseItemId"/>
	<action itemid="2037" function="increaseItemId"/>
	<action itemid="2038" function="decreaseItemId"/>
	<action itemid="2039" function="increaseItemId"/>
	<action itemid="2040" function="decreaseItemId"/>
	<action itemid="2058" function="increaseItemId"/>
	<action itemid="2059" function="decreaseItemId"/>
	<action itemid="2060" function="increaseItemId"/>
	<action itemid="2061" function="decreaseItemId"/>
	<action itemid="2066" function="increaseItemId"/>
	<action itemid="2067" function="decreaseItemId"/>
	<action itemid="2068" function="increaseItemId"/>
	<action itemid="2069" function="decreaseItemId"/>
	<action itemid="2064" function="increaseItemId"/>
	<action itemid="2065" function="decreaseItemId"/>
	<action itemid="2578" function="increaseItemId"/>
	<action itemid="2096" function="increaseItemId"/>
	<action itemid="2097" function="decreaseItemId"/>
	<action itemid="1786" function="increaseItemId"/>
	<action itemid="1787" function="decreaseItemId"/>
	<action itemid="1788" function="increaseItemId"/>
	<action itemid="1789" function="decreaseItemId"/>
	<action itemid="1790" function="increaseItemId"/>
	<action itemid="1791" function="decreaseItemId"/>
	<action itemid="1792" function="increaseItemId"/>
	<action itemid="1793" function="decreaseItemId"/>
	<action itemid="1634" function="increaseItemId"/>
	<action itemid="1635" function="decreaseItemId"/>
	<action itemid="1636" function="increaseItemId"/>
	<action itemid="1637" function="decreaseItemId"/>
	<action itemid="1638" function="increaseItemId"/>
	<action itemid="1639" function="decreaseItemId"/>
	<action itemid="1640" function="increaseItemId"/>
	<action itemid="1641" function="decreaseItemId"/>
	<action itemid="5812" function="increaseItemId"/>
	<action itemid="5813" function="decreaseItemId"/>
	<action itemid="6489" function="increaseItemId"/>
	<action itemid="6490" function="decreaseItemId"/>
	<action itemid="7058" function="increaseItemId"/>
	<action itemid="7059" function="decreaseItemId"/>
	<action itemid="8684" function="increaseItemId"/>
	<action itemid="8685" function="decreaseItemId"/>
	<action itemid="8686" function="increaseItemId"/>
	<action itemid="8687" function="decreaseItemId"/>
	<action itemid="8688" function="increaseItemId"/>
	<action itemid="8689" function="decreaseItemId"/>
	<action itemid="8690" function="increaseItemId"/>
	<action itemid="8691" function="decreaseItemId"/>
	<action itemid="9575" function="increaseItemId"/>
	<action itemid="9576" function="decreaseItemId"/>
	<action itemid="9577" function="increaseItemId"/>
	<action itemid="9578" function="decreaseItemId"/>
	<action itemid="9579" function="increaseItemId"/>
	<action itemid="9580" function="decreaseItemId"/>
	<action itemid="9581" function="increaseItemId"/>
	<action itemid="9582" function="decreaseItemId"/>
	<action itemid="9747" function="increaseItemId"/>
	<action itemid="9748" function="decreaseItemId"/>
	<action itemid="9749" function="increaseItemId"/>
	<action itemid="9750" function="decreaseItemId"/>

	<!-- Food -->
	<action fromid="2362" toid="2363" script="other/food.lua"/>
	<action fromid="2666" toid="2691" script="other/food.lua"/>
	<action fromid="2695" toid="2696" script="other/food.lua"/>
	<action fromid="2787" toid="2796" script="other/food.lua"/>
	<action itemid="5097" script="other/food.lua"/>
	<action itemid="6125" script="other/food.lua"/>
	<action itemid="6278" script="other/food.lua"/>
	<action itemid="6279" script="other/food.lua"/>
	<action itemid="6394" script="other/food.lua"/>
	<action itemid="6501" script="other/food.lua"/>
	<action fromid="6541" toid="6545" script="other/food.lua"/>
	<action itemid="6569" script="other/food.lua"/>
	<action itemid="6574" script="other/food.lua"/>
	<action itemid="7158" script="other/food.lua"/>
	<action itemid="7159" script="other/food.lua"/>
	<action fromid="7372" toid="7377" script="other/food.lua"/>

	<!-- Spellbooks -->
	<action itemid="2175" script="other/spellbook.lua"/>
	<action itemid="6120" script="other/spellbook.lua"/>
	<action fromid="8900" toid="8904" script="other/spellbook.lua"/>
	<action itemid="8918" script="other/spellbook.lua"/>

	<!-- Other -->
	<action itemid="5957" script="other/lottery.lua"/>
	<action itemid="6578" script="other/partyhat.lua"/>
	<action itemid="2114" script="other/piggybank.lua"/>
	<action fromid="6570" toid="6571" script="other/surprisebag.lua"/>
	<action itemid="6576" script="other/fireworksrocket.lua"/>
	<action itemid="2036" script="other/watch.lua"/>
	<action fromid="1728" toid="1731" script="other/watch.lua"/>
	<action itemid="6572" script="other/partytrumpet.lua"/>
	<action itemid="2785" script="other/blueberrybush.lua"/>
	<action itemid="2579" script="other/trap.lua"/>
	<action itemid="2148" script="other/changegold.lua"/>
	<action itemid="2152" script="other/changegold.lua"/>
	<action itemid="2160" script="other/changegold.lua"/>
	<action fromid="3901" toid="3938" script="other/constructionkits.lua"/>
	<action fromid="2070" toid="2078" script="other/music.lua"/>
	<action fromid="2080" toid="2085" script="other/music.lua"/>
	<action itemid="2332" script="other/music.lua"/>
	<action itemid="2364" script="other/music.lua"/>
	<action fromid="2367" toid="2368" script="other/music.lua"/>
	<action fromid="2370" toid="2373" script="other/music.lua"/>
	<action fromid="2041" toid="2042" script="other/decayto.lua"/>
	<action fromid="2044" toid="2045" script="other/decayto.lua"/>
	<action fromid="2047" toid="2048" script="other/decayto.lua"/>
	<action fromid="2050" toid="2055" script="other/decayto.lua"/>
	<action itemid="430" script="other/teleport.lua"/>
	<action itemid="1369" script="other/teleport.lua"/>
	<action itemid="1386" script="other/teleport.lua"/>
	<action itemid="3678" script="other/teleport.lua"/>
	<action itemid="5543" script="other/teleport.lua"/>
	<action fromid="2376" toid="2404" script="other/destroy.lua"/>
	<action fromid="2406" toid="2419" script="other/destroy.lua"/>
	<action fromid="2421" toid="2453" script="other/destroy.lua"/>
	<action fromid="2005" toid="2009" script="other/fluids.lua"/>
	<action fromid="2011" toid="2015" script="other/fluids.lua"/>
	<action itemid="2023" script="other/fluids.lua"/>
	<action itemid="1775" script="other/fluids.lua"/>
	<action fromid="2031" toid="2034" script="other/fluids.lua"/>
	<action fromid="2574" toid="2577" script="other/fluids.lua"/>
	<action fromid="5792" toid="5797" script="other/dice.lua"/>
	<action itemid="7588" script="other/potions.lua"/>
	<action itemid="7589" script="other/potions.lua"/>
	<action itemid="7590" script="other/potions.lua"/>
	<action itemid="7591" script="other/potions.lua"/>
	<action itemid="7618" script="other/potions.lua"/>
	<action itemid="7620" script="other/potions.lua"/>
	<action itemid="8472" script="other/potions.lua"/>
	<action itemid="8473" script="other/potions.lua"/>
	<action itemid="8474" script="other/potions.lua"/>
	<action itemid="8704" script="other/potions.lua"/>
	<action itemid="2692" script="other/createbread.lua"/>
	<action itemid="2694" script="other/createbread.lua"/>
	<action fromid="6436" toid="6447" script="other/windows.lua"/>
	<action fromid="6450" toid="6473" script="other/windows.lua"/>
	<action fromid="6788" toid="6791" script="other/windows.lua"/>
	<action fromid="7025" toid="7032" script="other/windows.lua"/>
	<action fromid="10264" toid="10267" script="other/windows.lua" />
	<action fromid="10488" toid="10491" script="other/windows.lua" />
	<action fromid="1209" toid="1214" script="other/doors.lua"/>
	<action fromid="1219" toid="1262" script="other/doors.lua"/>
	<action fromid="1539" toid="1542" script="other/doors.lua"/>
	<action fromid="2086" toid="2092" script="other/doors.lua"/>
	<action fromid="3535" toid="3552" script="other/doors.lua"/>
	<action fromid="4913" toid="4918" script="other/doors.lua"/>
	<action fromid="5082" toid="5085" script="other/doors.lua"/>
	<action fromid="5098" toid="5145" script="other/doors.lua"/>
	<action fromid="5278" toid="5295" script="other/doors.lua"/>
	<action fromid="5515" toid="5518" script="other/doors.lua"/>
	<action fromid="5732" toid="5737" script="other/doors.lua"/>
	<action fromid="5745" toid="5749" script="other/doors.lua"/>
	<action fromid="6192" toid="6209" script="other/doors.lua"/>
	<action fromid="6249" toid="6266" script="other/doors.lua"/>
	<action fromid="6795" toid="6802" script="other/doors.lua"/>
	<action fromid="6891" toid="6908" script="other/doors.lua"/>
	<action fromid="7033" toid="7050" script="other/doors.lua"/>
	<action fromid="7054" toid="7057" script="other/doors.lua"/>
	<action fromid="8541" toid="8558" script="other/doors.lua"/>
	<action fromid="9165" toid="9184" script="other/doors.lua"/>
	<action fromid="9267" toid="9284" script="other/doors.lua"/>
	<action itemid="10032" script="other/doors.lua" />
	<action fromid="10268" toid="10285" script="other/doors.lua" />
	<action fromid="10468" toid="10486" script="other/doors.lua" />
	<action itemid="1981" function="highscoreBook"/>

	<action itemid="14405" function="market"/>
</actions>

in folder scripts/quest got only a file quest.lua

Code:
local annihilatorReward = {1990, 2400, 2431, 2494}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.uid > 1000 and item.uid < 10000 then
		local itemWeight = getItemWeight(item.uid, 1, FALSE)
		local playerCap = getPlayerFreeCap(cid)
		if isInArray(annihilatorReward, item.uid) == TRUE then
			if getPlayerStorageValue(cid, 30015) == -1 then
				if playerCap >= itemWeight then
					if item.uid == 1990 then
						local container = doPlayerAddItem(cid, 1990, 1)
						doAddContainerItem(container, 2326, 1)
					else
						doPlayerAddItem(cid, item.uid, 1)
					end
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. '.')
					setPlayerStorageValue(cid, 30015, 1)
				else
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. ' weighing ' .. itemWeight .. ' oz it\'s too heavy.')
				end
			else
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
			end
		elseif getPlayerStorageValue(cid, item.uid) == -1 then
			if playerCap >= itemWeight then
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. '.')
				doPlayerAddItem(cid, item.uid, 1)
				setPlayerStorageValue(cid, item.uid, 1)
			else
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. ' weighing ' .. itemWeight .. ' oz it\'s too heavy.')
			end
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
		end
	else
		return FALSE
	end
	return TRUE
end

and the file anni and dhq

can some one help me please?!
 
Last edited:
well try changing the name of the script, when the distro got the error "such no file or directory" means there is not a script with that name.
So try change the name and the folder too, Good luck :D
 
quest seems to be not a folder in your server, so change it to quests.

XML:
	<action uniqueid="30017" script="quests/quest.lua"/>
	<action uniqueid="30018" script="quests/quest.lua"/>

And here also, next time in Support
 
Back
Top