Argonath RPG - A World of its own
Argonath RPG Community => Speakerbox => Topic started by: Sirricharic on August 19, 2007, 08:21:39 pm
-
alias rpg.lottonumber !.timer 1 21600 !writeini -n " $+ $rpg.dir $+ (ini where stuff is is)" $mta.name($1,$2) winning number $calc($rand(001,999) !.timer 1 21600
alias rpg.stakes
if !writeini -n " $+ $rpg.dir $+ (wherelotterystakes are at)" $mta.name($1,$2) lottery $calc($rpg.cash($1,$2) / 2)
}
}
alias rpg.playednumb {
if ($readini($rpg.dir $+ (iniwherewht stuffwillgo),lottonumber,$mta.name,number)) {
}
}
on *:SIGNAL:mta.command:{
if ($3 == !buysuperlotto)
if ($rpg.area($1,$2) == Washington-Mall) {
if $rpg.cash($1,$2) > 199 {
!writeini -n " $+ $rpg.dir $+ (ini where money is)" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) - 200)
!writeini -n " $+ $rpg.dir $+ (ini where money is)" Superlotto $cash $calc($rpg.cash($1,$2) + 200)
!writeini -n " $+ $rpg.dir $+ (ini where inventory is )" $mta.name($1,$2) (inventory thing) superlottoticket }
else mta.say $1 You dont have Enough Cash to buy this ticket!
}
else mta.say You have to be in the Washington-Mall to buy a Ticket
}
else ($3 == !checkticket)
if $rpg.playednumb == $rpg.lottonumber mta.say $1 You have won the lottery!!
!writeini -n " $+ $rpg.dir $+ (ini where player money is)" cash $calc($rpg.cash($1,$2) +$rpg.stakes)
}
Its like the California Super lotto
:ps: i know it doesnt work because i made it so enjoy the fixing and the top got cutoff because it was too long
-
You are missing many brackets ;)
and you have many syntax errors :D