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

Inq chests, first reward doesn't works.

yanger

Banned User
Joined
Aug 28, 2009
Messages
740
Reaction score
7
Location
Stalowa Wola, Poland
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
   	if item.uid == 1300 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found robe of the underworld.")
   			doPlayerAddItem(cid,8890,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
   	elseif item.uid == 1301 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a  Spellbook of Dark Mysteries.")
   			doPlayerAddItem(cid,8918,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
   	elseif item.uid == 1302 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Fireborn Giant Armor.")
   			doPlayerAddItem(cid,8881,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
		end
   	elseif item.uid == 1303 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Master Archer's Armor.")
   			doPlayerAddItem(cid,8888,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
  	elseif item.uid == 1304 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Royal Crossbow.")
   			doPlayerAddItem(cid,8888,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
	elseif item.uid == 1305 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Hellforged Axe.")
   			doPlayerAddItem(cid,8924,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
	elseif item.uid == 1306 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Obsidian Truncheon.")
   			doPlayerAddItem(cid,8928,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
	elseif item.uid == 1307 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Emerald Sword.")
   			doPlayerAddItem(cid,8930,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
	elseif item.uid == 1308 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Warsinger Bow.")
   			doPlayerAddItem(cid,8854,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
	end
   	return 1
end

Any fixes :>? Ideas? repp+

Robe of under~ doesnt works.
 
Code:
[14:8:05.007] [Error - Action Interface] 
[14:8:05.007] function onUse(cid, item, fromPosition, itemEx, toPosition)
[14:8:05.007] domodlib('inqusitionFunctions')
[14:8:05.007]     local storage = 50301
[14:8:05.007]     local inquisitionRewards = {
[14:8:05.007]         [1300] = 8890, --a robe of the underworld
[14:8:05.007]         [1301] = 8918, --a spellbook of dark mysteries
[14:8:05.007]         [1302] = 8881, --a fireborn giant armor
[14:8:05.007]         [1303] = 8888, --a master archer's armor
[14:8:05.007]         [1304] = 8851, --a royal crossbow
[14:8:05.007]         [1305] = 7435, --an executioner
[14:8:05.007]         [1306] = 8929, --the stomper
[14:8:05.007]         [1307] = 7417, --a runed sword
[14:8:05.007]         [1308] = 8854, --a warsinger bow
[14:8:05.007]         [1309] = 8903, --a spellbook of lost souls
[14:8:05.007]         [1310] = 2508, --a mystical armor
[14:8:05.007]         [1311] = 8905 --a rainbow shield
[14:8:05.007]     }
[14:8:05.007]     
[14:8:05.007]     if inquisitionRewards[item.uid] then
[14:8:05.007]         if getPlayerStorageValue(cid, storage) < 1 then
[14:8:05.007]             doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found " .. getItemArticleById(inquisitionRewards[item.uid]) .. " " .. getItemNameById(inquisitionRewards[item.uid]) .. ".")
[14:8:05.007]             doPlayerAddItem(cid, inquisitionRewards[item.uid], 1)
[14:8:05.007]             setPlayerStorageValue(cid, storage, 1)
[14:8:05.007]                                 addPlayerRep(cid, 5, TEXTCOLOR_LIGHTBLUE)
[14:8:05.007]         else
[14:8:05.007]             doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") 
[14:8:05.007]         end
[14:8:05.007]     end
[14:8:05.007]     
[14:8:05.007]     return true

Every chest is working, only not robe of under~. Just like it isn't any quest, it is empty chest.
 
you need to change ids on here

[14:8:05.007] [1300] = 8890, --a robe of the underworld
[14:8:05.007] [1301] = 8918, --a spellbook of dark mysteries
[14:8:05.007] [1302] = 8881, --a fireborn giant armor
[14:8:05.007] [1303] = 8888, --a master archer's armor
[14:8:05.007] [1304] = 8851, --a royal crossbow
[14:8:05.007] [1305] = 7435, --an executioner
[14:8:05.007] [1306] = 8929, --the stomper
[14:8:05.007] [1307] = 7417, --a runed sword
[14:8:05.007] [1308] = 8854, --a warsinger bow
[14:8:05.007] [1309] = 8903, --a spellbook of lost souls
[14:8:05.007] [1310] = 2508, --a mystical armor
[14:8:05.007] [1311] = 8905 --a rainbow shield
 
Back
Top