Thank you for reply
int a = 1002 | 0x8000;
Console.WriteLine("a is {0}", a); //33770
Console.WriteLine("a is {0}", a ^= 0x8000); //1002
I figured out that operator ^= return value back to value from random function. But stil dont know why is this system used.
Anyway thanks again
Hello
Bit operators is little hard for me, so i ask here:
This set random skin hue for humans
Utility.Random(1002, 57) | 0x8000;
and how can i get back int value from this, if i need number that corresponds with hues.mul (1002-1058)
thank you
Morgion submitted a new resource:
Dye tubs rack - Addon for store hues from charged dye tubs
This Dye Tubs Rack addon store dyes from charged dye tubs based on old RunUO stuff from X-SirSly-X http://www.runuo.com/community/threads/runuo-2-0-all-dye-tubs.80132/.
You can click Dye tub and...
This Dye Tubs Rack addon store dyes from charged dye tubs based on old RunUO stuff from X-SirSly-X http://www.runuo.com/community/threads/runuo-2-0-all-dye-tubs.80132/.
You can click Dye tub and target rack to put Hue inside (or increase charges if hue is already inside rack).
Once hue number...
Morgion submitted a new resource:
Health Orb - Diablo III style healing
This simple script will add Diablo 3 style health orbs.
When player moves over them, it will heal all players and controlled pets within 4 tiles radius, for 20 (+enhance bonus potions) percent of their maximum hit points...
This simple script will add Diablo 3 style health orbs.
When player moves over them, it will heal all players and controlled pets within 4 tiles radius, for 20 (+enhance bonus potions) percent of their maximum hit points or remove poison when target is poisoned.
Installation:
Just drop it...