A little help

Draka

Dedicated Member
Dedicated Member
Jan 22, 2008
72
0
53
Its posible to make an scrip for click item, to make a special gift from a list ramdomly, like a gisftbox, i want to put a ring, braces, helmets, into the list, and when you click the item you can recive one item ramdomly.

Sorry for my english.
 

Draka

Dedicated Member
Dedicated Member
Jan 22, 2008
72
0
53
yes the scrip for a doble click item i know how to do, but the scrip for the give ramdomly the items from a list, i don't know how to make.
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
A few methods...

Code:
#ACT
Movr  D0  10

#IF
Equal D0  0
#ACT
Give Item0 1

#IF
Equal D0  1
#ACT
Give Item1 1

#IF
Equal D0  2
#ACT
Give Item2 1

etc etc

Code:
#IF
Random 60    ;1 in 60 Chance
#ACT
Give  Item0 1
Break

#IF
Random 40    ;1 in 40 Chance
#ACT
Give  Item1 1
Break

#IF
Random 10    ;1 in 10 Chance
#ACT
Give  Item3 1
Break

#IF             ;This will be given if all the others fail
#ACT
Give  Item4 1
Break

You could also load it from a list using Movr and LoadValue but thats a little more complicated.
 
Upvote 0