| Poster |
Thread |
| Da®K |
Posted on: 2010/1/11 5:01 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP :dance:
it tries to use with this code:
if (25 // $_(qnumber)) { /st savescores var %gamechooser = $rand(1,6) if (%gamechooser == 1) StartGame1 elseif (%gamechooser == 2) Startpalavra elseif (%gamechooser == 3) StartGame elseif (%gamechooser == 4) Startsaque elseif (%gamechooser == 5) Startmega else StartGame0 return }
:nod: :bye:
|
|
|
| CrazyGirl |
Posted on: 2010/1/11 9:35 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP yes, I know that code, but i don't use, i don't like it. I use another code to put the games work Like i said to diego the code i use is.... alias -l st_spin { and works well
kiss
|
|
|
| FireHorse |
Posted on: 2010/1/11 9:47 |
Webmaster   Joined: 1970/1/1 From: Posts: 1 |
Re: Resgister HELP this code will not work
alias bla { on text {
As soon as you call an alias there is no 'on text'
FireHorse
|
|
|
| CrazyGirl |
Posted on: 2010/1/11 10:06 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP I think this code don't work well because the question of the bet. Imagine that the bonus question appears to the 10th question and you have this --> if (10 // $_(qnumber)) bla bla bla the bonus question will conflict that the games that starting whith this command (if (10 // $_(qnumber)))and then the question bet no longer works maybe i'm wrong
|
|
|
| Diego |
Posted on: 2010/1/11 13:45 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP this way is right?
if ($_(q_type) == m) st setbets ask_bonusmc elseif ($_(q_type) == d) st ask_bonusdouble elseif ($_(q_type) == l) st ask_normal_list elseif ($_(q_type) == w) st wheel_of_fortune elseif ($_(q_type) == s) st saque_relampago elseif ($_(q_type) == q) st palavra elseif ($_(q_type) == p) st porta_game elseif ($_(q_type) == b) st box_game elseif ($_(q_type) == c) st cofre_magico else { $_s(bonus,$true) | st ask_normal }
|
|
|
| CrazyGirl |
Posted on: 2010/1/11 15:12 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP if ($_(q_type) == m) st setbets ask_bonusmc elseif ($_(q_type) == d) st ask_bonusdouble elseif ($_(q_type) == l) st ask_normal_list elseif ($_(q_type) == w) st wheel elseif ($_(q_type) == s) st saque elseif ($_(q_type) == q) st palavra elseif ($_(q_type) == p) st porta elseif ($_(q_type) == b) st box elseif ($_(q_type) == c) st cofre else { $_s(bonus,$true) | st ask_normal }
and in the Bonus.txt
s:saque q:palavra p:porta b:box w:wheel c:cofre
with less words, the effect is the same
Kiss
|
|
|
| Diego |
Posted on: 2010/1/12 2:31 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP I have a problem in drawing he did not start and when to start
alias -l st_saque { on *:TEXT:*:#: { mstat *s2 â?ºâ?ºâ?º Mini Jogos Desligados â??â??â?? .disable #slot .disable #loto .disable #tripla .disable #vira .disable #dados .disable #fruta .disable #roleta .disable #corrida .disable #as .disable #spin .disable #moeda if (%finishSpinGame == 0) { tell $nick spin game is already running | halt } set %finishSpinGame 0 spinController }
|
|
|
| CrazyGirl |
Posted on: 2010/1/12 8:38 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP diego, like FireHorse said "this code will not work
alias bla { on text {
As soon as you call an alias there is no 'on text'
FireHorse" you have to remove on *:TEXT:*:#: { I suggest that you read the posts before asking
kiss
|
|
|
| Diego |
Posted on: 2010/1/12 13:03 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP sorry so much work over the game not start at all I tried so alias -l st_saque { mstat *s2 â?ºâ?ºâ?º Mini Jogos Desligados â??â??â?? .disable #slot .disable #loto .disable #tripla .disable #vira .disable #dados .disable #fruta .disable #roleta .disable #corrida .disable #as .disable #spin .disable #moeda if (%finishSpinGame == 0) { tell $nick spin game is already running | halt } set %finishSpinGame 0 spinController } I tried so alias -l st_saque { mstat *s2 â?ºâ?ºâ?º Mini Jogos Desligados â??â??â?? .disable #slot .disable #loto .disable #tripla .disable #vira .disable #dados .disable #fruta .disable #roleta .disable #corrida .disable #as .disable #spin .disable #moeda } if (%finishSpinGame == 0) { tell $nick spin game is already running | halt } set %finishSpinGame 0 spinController halt } plus it does not start
|
|
|
| CrazyGirl |
Posted on: 2010/1/17 23:48 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP i add this game to st5.0 and add this line .timerst_next 1 $sts(delay_wrong) st question
like this on *:TEXT:*!saque*:#: { if (%spin.nick == $null) { tell $nick you are too late | halt } if ($nick == %spin.nick) { if ($2 == $null) { tell $nick Enter !saque followed the nick of the user who you want to steal %spin.win points. | halt } if ($2 ison $comchan($nick,1)) { mstat *s3 $nick steals %spin.win points from $2 leaving them with $hof(p,$2) :P $nick now has $hof(p,$nick) points stx_addpoints $2 - $+ %spin.win stx_addpoints $nick %spin.win .timerst_next 1 $sts(delay_wrong) st question } else tell $nick $2 is not in the room, try another player } else tell $nick Only %spin.nick may saque } alias tell { .ctcpreply $1 TIME $2- }
and appears this /timerst_next: Invalid parameter (line 68, Saque.txt)
|
|
|
| Diego |
Posted on: 2010/1/18 14:40 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP My game is so
alias -l st_saque { mstat *s2 â?ºâ?ºâ?º Mini Jogos Desligados â??â??â?? .disable #slot .disable #loto .disable #tripla .disable #vira .disable #dados .disable #fruta .disable #roleta .disable #corrida .disable #as .disable #spin .disable #moeda set %finishSpinGame 0 spinController } on ^*:text:*!stop*:#: { if (%finishSpinGame == 1) { tell $nick Game Ja Esta parado | halt } set %finishSpinGame 1 mstat *s3 This is the final spin everyone, type !assalto to win }
on ^*:text:*!assalto*:#: { mstat *s3 â?â?º $nick â??â? sua inscricao foi realizada com sucesso! Aguarde pois nosso chefao de quadrilha esta avaliando seu curriculo. var %checkregistered = $readini(spingame.ini, Registered, $nick) if (%checkregistered == $null) { writeini spingame.ini Registered $nick $nick
} }
alias spinController { if (%finishSpinGame == 1) { mstat *s1 Closed Game halt } mstat *s3 â??â? â?ªâ?£â? Saque Relampago â?â? â?ªâ?£â?? mstat *s3 â??â? â?ªâ?£â? Regras: A policia foi atender a um chamado local e nao esta mais na sala. Que tal aproveitar essa brecha e assaltar um jogador? Se voce for escolhido, podera fazer parte da quadrilha e roubar qualquer jogador.â?â? â?ªâ?£â?? mstat *s3 â?â?º !assalto para se cadastrar. para ver com mais detalhes de saque veja o placar .timerspinbottle 1 30 spinbottle }
alias spinbottle { var %numPlayers = $ini(spingame.ini, Registered, 0) if (%numPlayers < 1) { set %finishSpinGame 1 set %finishSpinGame 1 mstat *s4 â??â? â?ªâ?£â? Game Encerrado Nenhum Registrado â?â? â?ªâ?£â?? mstat *s2 â?ºâ?ºâ?º Mini Jogos Ligados â??â??â?? .enable #slot .enable #loto .enable #tripla .enable #vira .enable #dados .enable #fruta .enable #roleta .enable #corrida .enable #as .enable #spin .enable #moeda .timerst_next 1 $sts(delay_wrong) st question halt } var %spin.num = $rand(1, %numPlayers) ; 50 = max amount to win and 1 = minimum amount set %spin.win $rand(1, 200) set %spin.nick $readini(spingame.ini, Registered, $ini(spingame.ini, Registered, %spin.num)) mstat *s1 â?â?º %spin.nick â??â? voce foi escolhido para integrar a quadrilha. mstat *s1 Digite !saque seguido do nick do usuario de quem voce quer roubar %spin.win pontos. mstat *s1 Mas fique esperto. Voce so tem 30 segundos, ou entao a policia vai te pegar! .timerstopspin 1 30 resetspingame }
alias resetspingame { unset %spin.nick remini spingame.ini Registered set %finishSpinGame 1 mstat *s4 â??â? â?ªâ?£â? Rodada Finalizada Aguarde A Proxima â?â? â?ªâ?£â?? mstat *s2 â?ºâ?ºâ?º Mini Jogos Ligados â??â??â?? .enable #slot .enable #loto .enable #tripla .enable #vira .enable #dados .enable #fruta .enable #roleta .enable #corrida .enable #as .enable #spin .enable #moeda .timerst_next 1 $sts(delay_wrong) st question halt }
on ^*:text:*!saque*:#: { if (%msg.saque. [ $+ [ $nick ] ] = player) { .ctcpreply $nick TIME So pode fazer um saque $nick | return } set -u9 %msg.saque. [ $+ [ $nick ] ] player if (%spin.nick == $null) { tell $nick you are too late | halt } if ($nick == %spin.nick) { if ($2 == $null) { tell $nick Enter !saque followed the nick of the user who you want to steal %spin.win points. | halt } var %saqueNick = $readini(spingame.ini, Registered, $2) .timer 1 10 mstat *s2 â?â?ºâ?â?º Roubo realizado Com Sucesso :: Saldo Atual :: â??â?â??â? â?© â?² O Escolhido ::: $nick ::: $stx_points($nick) ( + %spin.win ) Pontos â??â? â?© â?¼ Vitima ::: $2 ::: $stx_points($2) ( - %spin.win ) Pontos â??â? stx_addpoints $2 - $+ %spin.win stx_addpoints $nick %spin.win .timerst_next 1 $sts(delay_wrong) st question set %finishSpinGame 1 } else tell $nick Only %spin.nick may saque } alias tell { .ctcpreply $1 TIME $2- }
|
|
|
| CrazyGirl |
Posted on: 2010/1/20 14:42 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP well diego it doesn't work, i have to wait for help from FireHorse
kiss
|
|
|
| FireHorse |
Posted on: 2010/1/21 13:50 |
Webmaster   Joined: 1970/1/1 From: Posts: 1 |
Re: Resgister HELP dont use
.timerst_next 1 $sts(delay_wrong) st question
try use a normal timer format like
.timer_nextstq 1 20 st question
also check to see the st question alias in ST5 is not preceded by a -l if it is then remove the -l as it will stop you calling that alias from another file
FireHorse
|
|
|
| CrazyGirl |
Posted on: 2010/1/22 9:09 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP Well i give up Now everything is ok but when i do !assalto..... nothing happens I remove o -l and put like this alias st_spin { the game starts but when i do !assalto.... don't accept
|
|
|
| Diego |
Posted on: 2010/1/23 14:13 |
Just popping in   Joined: 1970/1/1 From: Posts: 0 |
Re: Resgister HELP to run the game to load it in st 5.0 and it runs saque.txt
You can leave so that will work well
alias -l st_saque {
|
|
|