Oh.. my ... God! Your are so awesome!!
Thank you soooo much.


I hardly dare to ask... can you add 2 options more?
It would be important that the ppl on the chan only have 120 Seconds to place bets.

And now the Hard thing, i have a own points system + a casino script, but this betting script is too much for my mirc skills ^^ Would be nice if i could setup how many coins it costs to bet! For example: !openbet Question:Option1,Option2:500

Thought about a syntax like "%costs" i dont know how to handel it to safe the users input ^^

Sure it would be nice if every user could bet their own coins and win the double of it but i dont want to make it too much work for you! laugh btw. Thank you again!


Check enough points?
Code:
if ($readini( casino.ini, $nick, Money ) < %costs) {
  msg # $nick - you dont have %costs to bet.
  halt
 } 


If they lose > they lose their betted points
If they win > they double it! Bet 500 win 1000 for example.

Write the coins:
Code:
Win
writeini -n casino.ini $nick Money $calc($readini(casino.ini,$nick,Money) +%costs)

Lose
writeini -n casino.ini $nick Money $calc($readini(casino.ini,$nick,Money) -%costs)


I hope that isnt too much LOL!



Last edited by Kawalli; 20/04/14 07:10 PM.