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

A quest questions...

Flexia

PK Team Leader
Joined
Jul 16, 2009
Messages
304
Reaction score
2
Location
Home
Hello all,

A very easy question for the people who make quests all the time...

Im having a quest box in the beginning of my server with cash in it. now i want the ammount of cash to raise, when people open the box now they get 1 coin and i want them to get 100 coins.

Can some1 tell me how to fix this? ive you help me i give you rep++
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 2160 and getPlayerStorageValue(cid, 2160) == -1 then
   doPlayerAddItem(cid, 2160, 100)
   setPlayerStorageValue(cid, 2160, 1)
end
end

sucky way to solve it, but works, i guess...
 
Back
Top