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

Key quest!

Nesaj

New Member
Joined
Apr 10, 2008
Messages
126
Reaction score
0
Can some one release a action for a key quest (version 0.2.11)...
Release it and explain how to use plz.
 
Script1:
PHP:
function onUse(cid, item, frompos, item2, topos)
prize = item.uid
aid = item.actionid
local key = doCreateItemEx(prize)

if prize > 0 and prize < 7000 then
queststatus = getPlayerStorageValue(cid,prize)

if queststatus == -1 then
if aid > 1000 then
doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
setPlayerStorageValue(cid,prize,1)
doSetItemActionId(key, aid)
doPlayerAddItemEx(cid, key)
else
doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,1)
setPlayerStorageValue(cid,prize,1)
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

return 1
else
return 0
end
end

Script2:
PHP:
	<action itemid="1740" script="quests/key_quests.lua"/>
	<action itemid="1747" script="quests/key_quests.lua"/>
	<action itemid="1748" script="quests/key_quests.lua"/>
	<action itemid="1749" script="quests/key_quests.lua"/>
 
Back
Top