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

Chest Quests BUG

lindblad88

Member
Joined
Mar 22, 2011
Messages
46
Reaction score
1
Hello, I've have got a BIG problem.

Started my server a while ago, and today ill found a BIIIG problem:

The first day on the OT when you did quests you earned the reward that's you edited in the chest. BUT today when someone did the quest he got a "Chest" insteed of a item:S


Here you have picture on a chest i've edited: ImageShack� - Online Photo and Video Hosting

(All my quests-chests bugged)

Can it be something wrong in the actions? or so.

Got no ideá.
 
Last edited:
haha I know why :p
Code:
On the chest:
Action id: 2000 (is right)
Uniqueid: ITEM ID 

Add the item to the chest as u did, and then take the item id and put it as unique id :P

It should work fine :p
 
try put some lvl rquired on the chest then, make a script for it instead?


Like this one (this is for crystal coins at lvl 50) but i changed it for demon legs :p

Data\actions\scripts

Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 54999 then
queststatus = getPlayerStorageValue(cid,1000)
if queststatus == -1 then
     if getPlayerLevel(cid) > 199 then
          doPlayerSendTextMessage(cid,22,"You have found Demon legs.") 
          doPlayerAddItem(cid,2495,10)
          setPlayerStorageValue(cid,1000,1)
     else
          doPlayerSendTextMessage(cid,22,"You need to be level 200 to open this chest.")
     end
else
     doPlayerSendTextMessage(cid,22,"It is empty.")
end
 
end
return 1
 
end


and

actions.xml

Lua:
<action uniqueid="54999" script="questchest.lua" />

enjoy
 
Back
Top