@dice?? [2.3]

Mu online season 21 - grand opening
Status
Not open for further replies.

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
right lol again ano another noobish question, i know how to add commands but not sure wat i would need to write to make a random number be picked from 0/10 then make it show that number to the whole group + the name of the roller etc. basically the perfect @dice command to split drop etc. Can anybody help me out pls ?
 

-Luke-

LOMCN Veteran
Veteran
May 9, 2010
1,508
55
135
Re: @dice??

Why 0-10?? A Dice doesnt have 0 or 7,8,9,10 on it maybe try 1-6 or 1-12 ?
Do this through Qfunction using custom commands and random commands with sendmsg shout in group.
 
Upvote 0

Blimey

Dedicated Member
Dedicated Member
Jul 18, 2011
394
1
44
Hero Village
Re: @dice??

[@RollDice]
#ACT
GOTO @Dice
BREAK

[@Dice]
#IF
RANDOM 6
#ACT
LINEMSG "You rolled a six"
BREAK
#IF
RANDOM 6
#ACT
LINEMSG "You rolled a five"
BREAK
#IF
RANDOM 6
#ACT
LINEMSG "You rolled a four"
BREAK
etc etc etc

On the last number, use this.

#IF
RANDOM 6
#ACT
LINEMSG "You rolled a one"
BREAK
#ELSEACT
GOTO @Dice
BREAK


You may have to check the LINMSG command, pretty sure it aint rite. But rest will work :P
 
Last edited:
Upvote 0

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
Re: @dice??

Thanks blimey worked nice but had to tweak a little so it came up in group chat :P and also showed the person's name but thanks for help. Its 1-10 dice ONLY WORK's in a group, also shows the name of the roller etc basic stuff.
Code if other want:

[@dice]
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 1"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 2"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 3"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 4"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 5"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 6"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 7"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 8"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 9!"
BREAK
#IF
RANDOM 10
#ACT
LINEMSG 8 "<$USERNAME> has rolled a 10!!"
BREAK
#ELSEACT
GOTO @dice
BREAK

thanks again blimey.
 
  • Like
Reactions: NewHope
Upvote 0

Andreas

LOMCN Member
Untrusted Member
Veteran
Mar 12, 2008
2,695
21
125
Timisoara
Re: @dice??

@blimey/accer , thats script is wrong and wont work accurate
ur script checks if the number is 0 like
first nr 7 it gets on next
second nr 4 it gets on nect
third nr 0 msg :'username has rolled a 3'

use RANDOMEX 10 = 0
this way he checks if the nr is 0 then say username rolled 0
RANDOMEX 10 = 1
username rolled 1

etc
 
Upvote 0

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
Re: @dice??

ive tested ingame works fine, random selects a comment to say inwhich the comment is the roller number etc. so works fine
 
Upvote 0

Andreas

LOMCN Member
Untrusted Member
Veteran
Mar 12, 2008
2,695
21
125
Timisoara
Re: @dice??

i didnt said it wont work i said it will work stupid
but w/e if u dont want help then i wont give :)
 
Upvote 0

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
Re: @dice??

lol not saying dont want help only that it works fine as it is and as im new to this stuff easier the way i did it as your seems harder.
 
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,769
3
3,342
495
United Kingdom
Re: @dice??

Andreas grow up. He said he didn't understand your method and that his works fine.

Thread solved & closed!
 
Upvote 0
Status
Not open for further replies.