Log in

View Full Version : How to write a script that uses a dice?



Boget
08-24-2012, 14:35
How to write a script that uses a dice or another item from your backpack? I.e. the same effect as Ctrl~Clicking the item. Is it possible at all? I would just use hotkeys, but the dice item ID changes every time you roll a new number. Any ideas?

Here are the item IDs of the different dices:

Dice (1): A0 16
Dice (2): A1 16
Dice (3): A2 16
Dice (4): A3 16
Dice (5): A4 16
Dice (6): A5 16

All I need to know is how to use an item based on its hex code. Thanks!

tytrydsdf
08-25-2012, 02:03
conditional event:

$countitems:A0 16$
#number=#
1
0
0
0
exiva > 0A 00 82 FF FF 40 00 00 A0 16 00 00
$countitems:A1 16$
#number=#
1
0
0
0
exiva > 0A 00 82 FF FF 40 00 00 A1 16 00 00
$countitems:A2 16$
#number=#
1
0
0
0
exiva > 0A 00 82 FF FF 40 00 00 A2 16 00 00
$countitems:A3 16$
#number=#
1
0
0
0
exiva > 0A 00 82 FF FF 40 00 00 A3 16 00 00
$countitems:A4 16$
#number=#
1
0
0
0
exiva > 0A 00 82 FF FF 40 00 00 A4 16 00 00
$countitems:A5 16$
#number=#
1
0
0
0
exiva > 0A 00 82 FF FF 40 00 00 A5 16 00 00
$countitems:A6 16$
#number=#
1
0
0
0
exiva > 0A 00 82 FF FF 40 00 00 A6 16 00 00

Dice must be in 1st backpack opened by you, and in 1st sqm of backpack (north west corner)

tytrydsdf
08-25-2012, 02:10
Mmm and if you want to use hotkeys just add dice 1 at F1, dice 2 at F2, dice 3 at F3... And press all hotkeys at once?

Boget
08-25-2012, 14:39
Awesome, thank you!