added things
added a crafting tool merchant, added a training hall (not quite working yet) fixed crafting issues, exchanged the small cave area
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
//#include "_persist_01a"
|
||||
#include "aps_include"
|
||||
|
||||
void CreateAnObject(string sResource, object oPC, int iStackSize);
|
||||
void BeeAttackPC(object oPC, object oSelf);
|
||||
@@ -59,13 +58,7 @@ void main()
|
||||
int iHoney = GetLocalInt(oSelf,"iHoney");
|
||||
|
||||
//int iBeeSkill = GetTokenPair(oPC,13,1);
|
||||
|
||||
//uses NWN database
|
||||
//int iBeeSkill = GetCampaignInt("UOACraft","iBeeSkill",oPC);
|
||||
|
||||
//uses external database
|
||||
int iBeeSkill = GetPersistentInt(oPC,"iBeeSkill","UOACraft");
|
||||
|
||||
int iBeeSkill = GetCampaignInt("UOACraft","iBeeSkill",oPC);
|
||||
int iBeeChance = iBeeSkill;
|
||||
|
||||
if (iBeeChance <350)
|
||||
@@ -90,7 +83,7 @@ void main()
|
||||
|
||||
if (GetTag(oItem)=="ITEM_HONEYCOMB")
|
||||
{
|
||||
FloatingTextStringOnCreature("You begin to cut the honeycomb from the beehive.",oPC,FALSE);
|
||||
FloatingTextStringOnCreature("You begin to cut the honeycomb from the beehive..",oPC,FALSE);
|
||||
sItem = "honeycomb";
|
||||
iBeeChance = iBeeChance - 250;
|
||||
sSuccess = "You carefully cut the honeycomb from the hive.";
|
||||
@@ -105,14 +98,14 @@ void main()
|
||||
}
|
||||
else
|
||||
{
|
||||
sFail = "You have destroyed the honeycomb while trying to remove it from the hive!";
|
||||
sFail = "You have destroyed the honeycomb while trying to remove it from the hive.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (GetTag(oItem)=="ITEM_HONEY")
|
||||
{
|
||||
FloatingTextStringOnCreature("You begin gathering up some of the honey from the beehive.",oPC,FALSE);
|
||||
FloatingTextStringOnCreature("You begin gathering up some of the honey from the beehive...",oPC,FALSE);
|
||||
sItem = "honey";
|
||||
iHoney--;
|
||||
sSuccess = "You carefully collect the honey from the hive.";
|
||||
@@ -191,13 +184,7 @@ void main()
|
||||
if (iBeeSkill <= 1000)
|
||||
{
|
||||
//DelayCommand(6.0,SetTokenPair(oPC,13,1,iBeeSkill));
|
||||
|
||||
//uses NWN database
|
||||
//DelayCommand(6.0,SetCampaignInt("UOACraft","iBeeSkill",iBeeSkill,oPC));
|
||||
|
||||
//uses external database
|
||||
DelayCommand(6.0,SetPersistentInt(oPC,"iBeeSkill",iBeeSkill,0,"UOACraft"));
|
||||
|
||||
DelayCommand(6.0,SetCampaignInt("UOACraft","iBeeSkill",iBeeSkill,oPC));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"====================================="));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"Your skill in beekeeping has gone up!"));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"Current beekeeping skill : "+ sOldSkill+"%"));
|
||||
|
Reference in New Issue
Block a user