Aschbourne_PRC8/_module/nss/_open_pulp.nss
Jaysyn904 5d27edafba Major update
Fixed CCOH, Fixed starting GP, Fixed DMFI languages, Fix cep weapon appearances, Fixed new player start up system.  Added PC deleter.  Added ACP 4.1.  Full compile.  Updated release archive.
2024-09-16 23:40:48 -04:00

31 lines
1007 B
Plaintext

//#include "_persist_01a"
void main()
{
object oPC = GetLastOpenedBy();
//int iWoodSkill = GetTokenPair(oPC,13,13);
int iWoodSkill = GetCampaignInt("UOACraft","iPaperSkill",oPC);
int iWoodChance = iWoodSkill;
if (GetItemPossessedBy(oPC,"NoDrop_SkillLogBook")==OBJECT_INVALID)
{
CreateItemOnObject("skilllogbook",oPC,1);
}
if (iWoodChance <350)
{
iWoodChance = GetAbilityScore(oPC,ABILITY_DEXTERITY)*5;
iWoodChance = iWoodChance +(GetAbilityScore(oPC,ABILITY_WISDOM)*3);
iWoodChance = iWoodChance +(GetAbilityScore(oPC,ABILITY_INTELLIGENCE)*2);
iWoodChance = iWoodChance * 3;
if (iWoodChance >350) iWoodChance = 350;
if (iWoodSkill > iWoodChance) iWoodChance = iWoodSkill;
}
// Create tokens for items which are 24.0 skill or below, as all characters can make these.
CreateItemOnObject("pattern072",OBJECT_SELF,1); //Bleached Wood Pulp
if (iWoodChance>500) CreateItemOnObject("pattern073",OBJECT_SELF,1); //Bleached Silkwood pulp
}