Gift Box

Mu online season 21 - grand opening

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
i want it to give a random chance of giving a gift but unsure how to do it


[@StdModeFunc30]
#ACT
GIVE GoldBar

thats the std mode for it and it works wen u double click, im just unsure how to make it give it random prizes , can some1 show me plz
 

samhag

Dedicated Member
Dedicated Member
Jul 31, 2008
213
0
42
[@StdModeFunc30]
#IF
random 8
#ACT
give GoldBar 1
break

obviously higher the random number the less chance of getting it
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
Code:
[@StdModeFunc30]
#IF
RANDOM 5
#ACT
GIVE GoldBar
BREAK
#IF
RANDOM 5
#ACT
GIVE GoldBarBundle
BREAK
#IF
RANDOM 5
#ACT
GIVE GoldChest
BREAK
#ELSEACT
GOTO @StdModeFunc30

If that doesn't work (As i'm not 100% sure you can use GOTO in QFunction) you could do it like this:

Code:
[@StdModeFunc30]
#IF
RANDOM 3
#ACT
GIVE GoldBar
BREAK
#IF
RANDOM 2
#ACT
GIVE GoldBarBundle
BREAK
#IF
RANDOM 1
#ACT
GIVE GoldChest
BREAK
#ELSEACT
BREAK

p
 
Upvote 0