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,6 +1,5 @@
|
||||
//#include "_persist_01a"
|
||||
#include "nw_i0_plot"
|
||||
#include "aps_include"
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -99,7 +98,7 @@ void main()
|
||||
if (sTagSelf == "PLANT_SORGHUM")
|
||||
{
|
||||
sPlant = "sorghumgrains";
|
||||
sMessageToPC = "You carefully cut the sorghum and gather the grain.";
|
||||
sMessageToPC = "You carefully cut the rice stalks and gather the grain.";
|
||||
}
|
||||
|
||||
if (sTagSelf == "PLANT_BAMBOO")
|
||||
@@ -595,11 +594,11 @@ void main()
|
||||
sMessageToPC = "You have chopped a log from the tree.";
|
||||
}
|
||||
}
|
||||
if (sTagSelf == "TREE_TANGERINE")
|
||||
if (sTagSelf == "TREE_TANGARINE")
|
||||
{
|
||||
if (iTreeMode == 99)
|
||||
{
|
||||
sPlant = "tangerine";
|
||||
sPlant = "tangarine";
|
||||
sMessageToPC = "You carefully harvest some ripe tangarines.";
|
||||
}
|
||||
else
|
||||
@@ -922,6 +921,7 @@ void main()
|
||||
}
|
||||
if (sPlant == "") sMessageToPC = "There is nothing to gather from this with the tool being used.";
|
||||
|
||||
|
||||
int iPlantMax = GetLocalInt(oSelf,"iMaxPlant");
|
||||
int iFarmChance = 0;
|
||||
int iFarmSkill = 0;
|
||||
@@ -935,7 +935,7 @@ void main()
|
||||
if (iPlantMax == 0)
|
||||
{
|
||||
//iFarmSkill = GetTokenPair(oPC,14,6);
|
||||
iFarmSkill = GetPersistentInt(oPC,"iFarmSkill","UOACraft");
|
||||
iFarmSkill = GetCampaignInt("UOACraft","iFarmSkill",oPC);
|
||||
iFarmChance = iFarmSkill;
|
||||
if (iFarmChance <350)
|
||||
{
|
||||
@@ -958,7 +958,7 @@ void main()
|
||||
if (iTreeMode == 0)
|
||||
{
|
||||
//iFarmSkill = GetTokenPair(oPC,14,7);
|
||||
iFarmSkill = GetPersistentInt(oPC,"iLumberjackSkill","UOACraft");
|
||||
iFarmSkill = GetCampaignInt("UOACraft","iLumberjackSkill",oPC);
|
||||
iFarmChance = iFarmSkill;
|
||||
if (iFarmChance <350)
|
||||
{
|
||||
@@ -972,7 +972,7 @@ void main()
|
||||
else
|
||||
{
|
||||
//iFarmSkill = GetTokenPair(oPC,14,6);
|
||||
iFarmSkill = GetPersistentInt(oPC,"iFarmSkill","UOACraft");
|
||||
iFarmSkill = GetCampaignInt("UOACraft","iFarmSkill",oPC);
|
||||
iFarmChance = iFarmSkill;
|
||||
if (iFarmChance <350)
|
||||
{
|
||||
@@ -1005,7 +1005,7 @@ void main()
|
||||
}
|
||||
if (iRandom <= iFarmChance)
|
||||
{
|
||||
SetIdentified (CreateItemOnObject(sPlant,oPC,1), TRUE);
|
||||
CreateItemOnObject(sPlant,oPC,1);
|
||||
FloatingTextStringOnCreature(sMessageToPC,oPC,FALSE);
|
||||
if (Random(1000)>=iFarmSkill)
|
||||
{
|
||||
@@ -1051,7 +1051,7 @@ void main()
|
||||
if (iFarmSkill <= 1000)
|
||||
{
|
||||
//DelayCommand(5.0,SetTokenPair(oPC,14,7,iFarmSkill));
|
||||
DelayCommand(6.0,SetPersistentInt(oPC,"iLumberjackSkill",iFarmSkill,0,"UOACraft"));
|
||||
DelayCommand(6.0,SetCampaignInt("UOACraft","iLumberjackSkill",iFarmSkill,oPC));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"=================================="));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"Your Lumberjack skill has gone up!"));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"Current Lumberjack skill : "+ sOldSkill+"%"));
|
||||
|
Reference in New Issue
Block a user