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

Quest.. :/

Winnerandy

Experienced Web Design'er
Joined
Oct 23, 2008
Messages
2,251
Reaction score
50
Location
Tellus.
Okey guys, I have a problem..

Every quest in my server is not working..

The problem is that when I left click, I can open the chest and take the item inside and nobody can get it again.. ? How should I fix it?
 
Set chest unique id to id of reward (like 2160 for crystal coin).
actions/scripts/quests.lua
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid >= 1 then
queststatus = getPlayerStorageValue(cid,item.uid)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found " .. getItemNameById(item.uid) .. ".")
doPlayerAddItem(cid,item.uid,1)
setPlayerStorageValue(cid,item.uid,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
end
end
And add this to actions.xml :
<action itemid="1740" script="quests/quests.lua" />
<action fromid="1747" toid="1749" script="quests/quests.lua" />

Rep if I helped.
 
I dont get any errors in console but when the server startup, and it says Youserver has been start up, after 2 sec it shut down..
 
Action id: 2000
Unique id: Someone that's not being used.
Reward: Add the reward in those black boxes.

Worked?:eek:
 
Please, if you want to make a "server with new features and new experiences", stop asking people to make things for you and learn to you do it yourself.
It looks like 95% of the credit will go to otland's members;
 
Please, if you want to make a "server with new features and new experiences", stop asking people to make things for you and learn to you do it yourself.
It looks like 95% of the credit will go to otland's members;

Well, make a server you and lets see what you've got :D
Have a little bit of respect when you don't help or do anything and just post on this thread.

- CLOSE THIS TRHEAD -
 
Last edited:
Back
Top