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

Help with Quests!

jeffy

New Member
Joined
Dec 28, 2010
Messages
22
Reaction score
0
Hi, my problem are so easier for peoples but hard for me.

I want add quests on my accmaker, but i need storage ID of quest.
I want to add POi, Inq, Yalahari Quest, Annihilator, Dhq, Demon Oak

Script of Poi:

-- 10544 = PoI Arcane Staff.
-- 10545 = PoI Avenger.
-- 10546 = PoI Arbalest.
-- 10547 = PoI Soft Boots.
-- 10548 = PoI BackPack of Holding.
-- 10549 = PoI Stuffed Dragon.
-- 10550 = PoI Frozen Starlight.
-- 10551 = PoI Ceremonial Ankh
-- 10552 = Holy Tible

function onUse(cid, item, frompos, item2, topos)

if item.uid == 10544 then
if getPlayerStorageValue(cid,10544) == -1 then
doPlayerSendTextMessage(cid,25,"You have chosen an arcane staff.")
doPlayerAddItem(cid,2453,1)
setPlayerStorageValue(cid,10544,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end

elseif item.uid == 10545 then
if getPlayerStorageValue(cid,10544) == -1 then
doPlayerSendTextMessage(cid,25,"You have chosen the avenger.")
doPlayerAddItem(cid,6528,1)
setPlayerStorageValue(cid,10544,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end

elseif item.uid == 10546 then
if getPlayerStorageValue(cid,10544) == -1 then
doPlayerSendTextMessage(cid,25,"You have chosen an arbalest.")
doPlayerAddItem(cid,5803,1)
setPlayerStorageValue(cid,10544,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end

elseif item.uid == 10547 then
if getPlayerStorageValue(cid,10547) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a pair of soft boots.")
doPlayerAddItem(cid,6132,1)
setPlayerStorageValue(cid,10547,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end

elseif item.uid == 10548 then
ids = {2273, 2268, 2313, 2311}
charges = {10, 10, 30, 50}
if getPlayerStorageValue(cid,10548) == -1 then
setPlayerStorageValue(cid,10548,1)
bp = doPlayerAddItem(cid, 2365, 1)
for i = 1, #ids do
doAddContainerItem(bp, ids, charges)
end
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end


elseif item.uid == 10549 then
if getPlayerStorageValue(cid,10549) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a stuffed dragon.")
doPlayerAddItem(cid,5791,1)
setPlayerStorageValue(cid,10549,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end
elseif item.uid == 10550 then
if getPlayerStorageValue(cid,10550) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a frozen starlight.")
doPlayerAddItem(cid,2361,1)
setPlayerStorageValue(cid,10550,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end

elseif item.uid == 10551 then
if getPlayerStorageValue(cid,10551) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a ceremonial ankh.")
doPlayerAddItem(cid,6561,1)
setPlayerStorageValue(cid,10551,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end
elseif item.uid == 10552 then

if getPlayerStorageValue(cid,10552) == -1 then
doPlayerSendTextMessage(cid,25,"You have found the holy Tible.")
local book = doPlayerAddItem(cid,1970,1)
doSetItemText(book,"Banor I praise your name.\nBe with me in the battle.\nBe my shield, let me be your sword.\nI will honour the godly spark in my soul. May it flourish and grow.")
setPlayerStorageValue(cid,10552,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end

end
return TRUE
end



Script of Inq:

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

Script of Annihilator:

function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 2000 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a demon armor.")
doPlayerAddItem(cid,2494,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 2001 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a magic sword.")
doPlayerAddItem(cid,2400,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 2002 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a stonecutter axe.")
doPlayerAddItem(cid,2431,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 2003 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a present.")
doPlayerAddItem(cid,1990,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
end
return 1
end

Script of Dhq:

function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 3001 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have a demon helmet.")
doPlayerAddItem(cid,2493,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 3002 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found steel boots.")
doPlayerAddItem(cid,2645,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 3003 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a demon shield.")
doPlayerAddItem(cid,2520,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
end
return 1
end

Help please.
 
Hmm, im not sure, but i think you need go to actions.xml, and search for example:
<action uniqueid="30015" event="script" value="quests/annihilator.lua"/>
And the storage is 30015

But im not sure.
 
Here you get script from actions.xml where ive got storage id?

<!-- Annihilator -->
<action uniqueid="30015" event="script" value="anni/annihilator.lua"/>
<action actionid="2004" script="anni/anniquest.lua" />
<action uniqueid="2000" script="anni/anniquest.lua" />
<action uniqueid="2001" script="anni/anniquest.lua" />
<action uniqueid="2002" script="anni/anniquest.lua" />
<action uniqueid="2003" script="anni/anniquest.lua" />
 
Back
Top