Area Changes and other fixes

Added CCOH
Fixed some on death issues
Fixed the gaurd
Added Server Enty/ooc
changed some areas back to original craftable
This commit is contained in:
2024-08-30 10:02:16 -04:00
parent 034a2cd838
commit d39928374d
5670 changed files with 373265 additions and 173083 deletions

View File

@@ -1,5 +1,6 @@
//#include "_persist_01a"
#include "nw_i0_plot"
#include "aps_include"
void main()
{
@@ -98,7 +99,7 @@ void main()
if (sTagSelf == "PLANT_SORGHUM")
{
sPlant = "sorghumgrains";
sMessageToPC = "You carefully cut the rice stalks and gather the grain.";
sMessageToPC = "You carefully cut the sorghum and gather the grain.";
}
if (sTagSelf == "PLANT_BAMBOO")
@@ -594,11 +595,11 @@ void main()
sMessageToPC = "You have chopped a log from the tree.";
}
}
if (sTagSelf == "TREE_TANGARINE")
if (sTagSelf == "TREE_TANGERINE")
{
if (iTreeMode == 99)
{
sPlant = "tangarine";
sPlant = "tangerine";
sMessageToPC = "You carefully harvest some ripe tangarines.";
}
else
@@ -921,7 +922,6 @@ 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 = GetCampaignInt("UOACraft","iFarmSkill",oPC);
iFarmSkill = GetPersistentInt(oPC,"iFarmSkill","UOACraft");
iFarmChance = iFarmSkill;
if (iFarmChance <350)
{
@@ -958,7 +958,7 @@ void main()
if (iTreeMode == 0)
{
//iFarmSkill = GetTokenPair(oPC,14,7);
iFarmSkill = GetCampaignInt("UOACraft","iLumberjackSkill",oPC);
iFarmSkill = GetPersistentInt(oPC,"iLumberjackSkill","UOACraft");
iFarmChance = iFarmSkill;
if (iFarmChance <350)
{
@@ -972,7 +972,7 @@ void main()
else
{
//iFarmSkill = GetTokenPair(oPC,14,6);
iFarmSkill = GetCampaignInt("UOACraft","iFarmSkill",oPC);
iFarmSkill = GetPersistentInt(oPC,"iFarmSkill","UOACraft");
iFarmChance = iFarmSkill;
if (iFarmChance <350)
{
@@ -1005,7 +1005,7 @@ void main()
}
if (iRandom <= iFarmChance)
{
CreateItemOnObject(sPlant,oPC,1);
SetIdentified (CreateItemOnObject(sPlant,oPC,1), TRUE);
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,SetCampaignInt("UOACraft","iLumberjackSkill",iFarmSkill,oPC));
DelayCommand(6.0,SetPersistentInt(oPC,"iLumberjackSkill",iFarmSkill,0,"UOACraft"));
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+"%"));