Page 1 of 1

Interresting question :)

Posted: Wed Jul 05, 2006 12:03 pm
by Damien
Hello again!

I am back with another Newbie question!

first to make it easier for me to explain, check this:

Code: Select all

use uo;
use os;
use cfgfile;

include "include/client";
include "include/attributes";
include "equip";

program finring(who, item)

SetAttributeTemporaryMod( who, ATTRIBUTEID_ANATOMY, 100 );

  var val := HandleMods(who, item);
  return val;

endprogram
See a easy script....

But now to my question...
When i equip that item (which is a ring ),
I get +10 in the skill Anatomy :)

But when i unequip the ring my Anatomy skill still is 110.
so could anyone help me with what code i should put
to make my anatomy go to 100 when i unequip the ring.

As always im really happy to get replies :D

Thanks!

Posted: Wed Jul 05, 2006 12:45 pm
by Yukiko
The bonus added to the Anatomy skill needs to be removed in your unequip script. Bonuses on equipped items are typically handled in the equip/unequip scripts.

Posted: Fri Jul 07, 2006 10:42 pm
by Ultimate`
This is what I would also like to know... what would the script look like for the ring or whatever you make?

Re: Interresting question :)

Posted: Mon Jul 10, 2006 7:50 am
by Harley

Code: Select all

use uo;
use os;
use cfgfile;

include "include/client";
include "include/attributes";
include "equip";

program finring(who, item)

SetAttributeTemporaryMod( who, ATTRIBUTEID_ANATOMY, 1000 );

  var val := HandleMods(who, item);
  return val;

endprogram
If you write 10 you get1.
If you write 100 you get 10.
If you write 1000 you get 100.

Posted: Mon Jul 10, 2006 9:04 am
by tekproxy
It's measured in 10ths of a point. Adding 100 points is really 100 10ths of a point, which equals 10.0 skill points. Adding 115 would make the skill go up 11.5.