Ran into a few problems, but first off here is my equip script:
Code: Select all
use uo;
use os;
use cfgfile;
include "include/client";
include "include/attributes";
include "equip";
program equipcraftingjewel(who, item)
var skilladd := getobjproperty(item, "skill");
if(skilladd)
var skill := "SKILLID_" + upper(skilladd);
var addskill:= AwardRawSkillPoints(who, SKILLID_TAILORING, 200);
sendsysmessage(who, addskill);
endif
var val := HandleMods(who, item);
return val;
endprogram
The var skill returns SKILLID_TAILORING (I have the prop skill set to tailoring on the item)
but when I try to do this: AwardRawSkillPoints(who, skill, 200);
it doesn't do anything, doesn't return any errors or anything either =/
So I need to figure out why that isn't working, any help is greatly appreciated

Now #2:
When I use AwardRawSkillPoints, it does not allow it to go past 100, so I need a way to let it go past 100

Now for the unequip script:
Code: Select all
use uo;
use os;
use cfgfile;
include "include/client";
include "include/attributes";
include "equip";
program unequipcraftingjewel(who, item)
var skilladd := getobjproperty(item, "skill");
if(skilladd)
var skill := "SKILLID_" + upper(skilladd);
var amt := "-200";
Sendsysmessage(who, AwardRawSkillPoints(who, SKILLID_TAILORING, amt));
endif
var val := HandleMods(who, item);
return val;
endprogram