• 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 viper star problem

Ekholmen

New Member
Joined
Dec 12, 2010
Messages
52
Reaction score
0
Location
Sweden
I made a quest wich is the hardest on my server, and the reward is viper star and some other weps but here is the problem:

I want the reward to be _ONE_ Viper star not a stack with 100 stars...

How to fix xD?
 
Lua:
function onUse(cid, item, frompos, item2, topos)
queststatus = getPlayerStorageValue(cid, 7366)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a viper star.") 
doPlayerAddItem(cid, 7366, 1)
setPlayerStorageValue(cid, 7366, 1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
return TRUE
end

Here you go.
 
Back
Top