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

How to make Quests?

Use a simple script on actions:

data/action/scripts/quest.lua
Lua:
local pin = {x=1054, y=1049, z=7}
function onUse(cid, item, frompos, item2, topos)
if item.uid == 2039 then
queststatus = getPlayerStorageValue(cid,2039)
if getPlayerLevel(cid) >= 0 then
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,27,"You've successfully completed the Example Quest.")
local bag = doPlayerAddItem(cid, 200, 1)
item_uid = doAddContainerItem(bag,5907,1) and doAddContainerItem(bag,2160,30) and doAddContainerItem(bag,6512,1) and doAddContainerItem(bag,2150,30)
doTeleportThing(cid, pin)
setPlayerStorageValue(cid,2039,1)
else
doPlayerSendTextMessage(cid,27,"You have already completed this quest.")
end
else
doPlayerSendCancel(cid,"You must be level 40.")
end
else
return 0
end
return 1
end

tag actions.xml:
Code:
<action uniqueid="2039" event="script" value="quest.lua"/>

This work with uniqueid, you must add the Unique Id 2039 to the chest on RME
Tested on 8.6 (maybe work for you).
You must configure the pos, the items, the level to make it, etc.
 
Last edited:
Back
Top