Quickshot
Member
- Joined
- Nov 8, 2008
- Messages
- 595
- Reaction score
- 8
hey i have a small problem with one of my scripts. when you have no mounts and you use the chest its works fine, but if you have all the mounts and use the chest you get bugged plz help
heres the script
heres the script
LUA:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 12345 then
queststatus = getPlayerStorageValue(cid,368)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,19,"Now you have all mounts")
for i = 1, 12 do
doPlayerAddMount(cid, i)
end
setPlayerStorageValue(cid,368,1)
else
doPlayerSendTextMessage(cid,25,"The chest is empty.")
end
end
return true
end
Last edited: