Good morning OtLand, I have reestablished a hunger for open tibia creation and I'm about to start where I left off last time!
I was searching for a script about a lottery chest. I did find one on Otfans but it was not configured to my purpose, and I could not seem to edit it, and they could not seem to reply on the post anymore:/
So, What I need is a chest that will do something like this:
Now, as you can see I'm not a script god
I try to learn a few things now and then but this right here is jsut messed up. I just thought it'd be easier for a scripter if they knew.. kinda what I wanted to do 
The idea is basicly - you go find yourself these rare stones and with them you can use the lottery chest, and if you're lucky u'll win a nice item or cash, or maybe u'll win an empty backpack.
I had an idea about restricting the usage to 10 times each 24h, but I don't know what kind of request that would be, I'd be happy with just the exchange of a rare item for a random reward.
I was searching for a script about a lottery chest. I did find one on Otfans but it was not configured to my purpose, and I could not seem to edit it, and they could not seem to reply on the post anymore:/
So, What I need is a chest that will do something like this:
Code:
onuse (upon using the chest)
doremoveitem"id"( the item required to use the chest successfully)
math.random(30) (the number of different prices you could win)
[random 1] item = 2152, amountmax = 10
[random 2] item = 1988
etc. to 30.
else do playersendcancel "you need a specific item to use this chest!"
Now, as you can see I'm not a script god
The idea is basicly - you go find yourself these rare stones and with them you can use the lottery chest, and if you're lucky u'll win a nice item or cash, or maybe u'll win an empty backpack.
I had an idea about restricting the usage to 10 times each 24h, but I don't know what kind of request that would be, I'd be happy with just the exchange of a rare item for a random reward.