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,6 @@
|
||||
//#include "_persist_01a"
|
||||
#include "nw_i0_plot"
|
||||
#include "aps_include"
|
||||
|
||||
void CreateAnObject(string sResource, object oPC, int iStackCount);
|
||||
object CreatePlaceable(string sObject, location lPlace, float fDuration);
|
||||
void GetNextItemPossessedBy(object oPC, string sItemTag);
|
||||
@@ -135,7 +135,7 @@ void main()
|
||||
//check for tool
|
||||
if (oTool==OBJECT_INVALID)
|
||||
{
|
||||
FloatingTextStringOnCreature("You do not have any tinker's toolset to work with.",oPC,FALSE);
|
||||
FloatingTextStringOnCreature("You do not have any tools to work with..",oPC,FALSE);
|
||||
if (iAdded==99)
|
||||
{
|
||||
CopyItem(oItem,oPC,TRUE); //Return stackable PC dropped into table
|
||||
@@ -147,7 +147,7 @@ void main()
|
||||
//Check for 'in use'
|
||||
if (GetLocalInt(oSelf,"iAmInUse")!=0)
|
||||
{
|
||||
FloatingTextStringOnCreature("Only one item at a time may be tinkered here.",oPC,FALSE);
|
||||
FloatingTextStringOnCreature("Only one item at a time may be tinkered here..",oPC,FALSE);
|
||||
if (iAdded==99)
|
||||
{
|
||||
CopyItem(oItem,oPC,TRUE); //Return stackable PC dropped into table
|
||||
@@ -160,7 +160,7 @@ void main()
|
||||
|
||||
|
||||
//int iGlassSkill = GetTokenPair(oPC,14,5);
|
||||
int iGlassSkill = GetPersistentInt(oPC,"iTinkerSkill","UOACraft");
|
||||
int iGlassSkill = GetCampaignInt("UOACraft","iTinkerSkill",oPC);
|
||||
int iGlassChance = iGlassSkill;
|
||||
if (iGlassChance <350)
|
||||
{
|
||||
@@ -174,14 +174,14 @@ void main()
|
||||
|
||||
if (iAdded==0)
|
||||
{
|
||||
if (GetStringRight(sItemResRef,3)=="001") // Tinkers toolset
|
||||
if (GetStringRight(sItemResRef,3)=="001") // Tinkers toolkit
|
||||
{
|
||||
iComponent1 =2;
|
||||
sComponent1 = "INGOT_IRON";
|
||||
sComponent1Name = "iron ingots";
|
||||
sCraft = "tinkerstoolset";
|
||||
sSuccessString = "You successfully create a new tinker toolset.";
|
||||
sFailString = "Your measurements are off, and as a result the toolset is unuseable.";
|
||||
sFailString = "Your measurements are off and as a result the toolset is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="008") //shovel
|
||||
@@ -192,7 +192,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 50;
|
||||
sCraft = "shovel";
|
||||
sSuccessString = "You successfully create a new shovel.";
|
||||
sFailString = "The measurements are off, and as a result the shovel is unuseable.";
|
||||
sFailString = "The measurements are off and as a result the shovel is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="005") // sewing kit
|
||||
@@ -203,7 +203,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 10;
|
||||
sCraft = "sewingkit";
|
||||
sSuccessString = "You successfully create a tailor's sewing kit.";
|
||||
sFailString = "Your measurements are off, and as a result the sewing kit is unuseable.";
|
||||
sFailString = "Your measurements are off and as a result the sewing kit is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="006") // miners pick
|
||||
@@ -214,7 +214,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 50;
|
||||
sCraft = "minerspick";
|
||||
sSuccessString = "You successfully create a new miner's pick.";
|
||||
sFailString = "The measurements are off, and as a result the miner's pick is unuseable.";
|
||||
sFailString = "The measurements are off and as a result the miner's pick is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="007") // miners pickaxe
|
||||
@@ -225,7 +225,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 50;
|
||||
sCraft = "minerspickaxe";
|
||||
sSuccessString = "You successfully create a new miner's pickaxe.";
|
||||
sFailString = "The measurements are off, and as a result the miner's pickaxe is unuseable.";
|
||||
sFailString = "The measurements are off and as a result the miner's pickaxe is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="009") // woodcutters axe
|
||||
@@ -236,7 +236,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 250;
|
||||
sCraft = "woodsmansaxe";
|
||||
sSuccessString = "You successfully create a new woodcutting axe.";
|
||||
sFailString = "The measurements are off, and as a result the axe is unuseable.";
|
||||
sFailString = "The measurements are off and as a result the axe is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="012") // herbalist knife
|
||||
@@ -247,7 +247,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 20;
|
||||
sCraft = "herbalistsknife";
|
||||
sSuccessString = "You successfully create a new herbalist's knife.";
|
||||
sFailString = "The measurements are off, and as a result the knife is unuseable.";
|
||||
sFailString = "The measurements are off and as a result the knife is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="079") // Orchard Blade
|
||||
@@ -257,8 +257,8 @@ void main()
|
||||
sComponent1Name = "iron ingots";
|
||||
iGlassChance = iGlassChance - 250;
|
||||
sCraft = "orchardblade";
|
||||
sSuccessString = "You successfully create a new orchard blade.";
|
||||
sFailString = "The measurements are off, and as a result the blade is unuseable.";
|
||||
sSuccessString = "You successfully create a new orchard blade..";
|
||||
sFailString = "The measurements are off and as a result the blade is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="080") // Fillet Knife
|
||||
@@ -268,8 +268,8 @@ void main()
|
||||
sComponent1Name = "iron ingots";
|
||||
iGlassChance = iGlassChance - 300;
|
||||
sCraft = "filletknife";
|
||||
sSuccessString = "You successfully create a new fillet knife.";
|
||||
sFailString = "The measurements are off, and as a result the knife is unuseable.";
|
||||
sSuccessString = "You successfully create a new fillet knife..";
|
||||
sFailString = "The measurements are off and as a result the knife is unuseable.";
|
||||
}
|
||||
|
||||
if (GetStringRight(sItemResRef,3)=="081") // Glass Arrowhead
|
||||
@@ -285,7 +285,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 500;
|
||||
sCraft = "glassarrowhea";
|
||||
iTemp = 50; //50 max stack
|
||||
sFailString = "The measurements are off, and as a result the arrowheads shatter.";
|
||||
sFailString = "The measurements are off and as a result the arrowheads shatter.";
|
||||
}
|
||||
if (GetStringRight(sItemResRef,3)=="082") // Glass Bolt Tip
|
||||
{
|
||||
@@ -300,7 +300,7 @@ void main()
|
||||
iGlassChance = iGlassChance - 500;
|
||||
sCraft = "glassbolttip";
|
||||
iTemp = 50; //50 max stack
|
||||
sFailString = "The measurements are off, and as a result the bolt tips shatter.";
|
||||
sFailString = "The measurements are off and as a result the bolt tips shatter.";
|
||||
}
|
||||
if (GetStringRight(sItemResRef,3)=="083") // Glass Sling Bullets
|
||||
{
|
||||
@@ -315,19 +315,19 @@ void main()
|
||||
iGlassChance = iGlassChance - 600;
|
||||
sCraft = "glassbullet";
|
||||
iTemp = 99; //50 max stack
|
||||
sFailString = "The measurements are off, and as a result the glass bullets shatter.";
|
||||
sFailString = "The measurements are off and as a result the glass bullets shatter.";
|
||||
}
|
||||
if (GetStringRight(sItemResRef,3)=="089") // Smith Hammer
|
||||
if (GetStringRight(sItemResRef,3)=="089") // Excavation Tools
|
||||
{
|
||||
//iComponent1Stackable=0;
|
||||
//iStackable=1;
|
||||
iComponent1 =6;
|
||||
sComponent1 = "INGOT_IRON";
|
||||
sComponent1Name = "iron ingots";
|
||||
iGlassChance = iGlassChance - 10;
|
||||
sCraft = "blacksmithhammer";
|
||||
sFailString = "The measurements are off, and as a result the smith hammer is useless.";
|
||||
}
|
||||
iGlassChance = iGlassChance - 400;
|
||||
sCraft = "item_excavation";
|
||||
sFailString = "The measurements are off and as a result the excavation tools are useless.";
|
||||
}
|
||||
if (GetStringRight(sItemResRef,3)=="112") // Carpenters Tools
|
||||
{
|
||||
//iComponent1Stackable=0;
|
||||
@@ -337,7 +337,7 @@ void main()
|
||||
sComponent1Name = "iron ingots";
|
||||
//iGlassChance = iGlassChance - 400;
|
||||
sCraft = "carpenters_tools";
|
||||
sFailString = "The measurements are off, and as a result the carpenter's tools are useless.";
|
||||
sFailString = "The measurements are off and as a result the carpenters tools are useless.";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -794,7 +794,7 @@ void main()
|
||||
if (iGlassSkill <= 1000)
|
||||
{
|
||||
//DelayCommand(5.0,SetTokenPair(oPC,14,5,iGlassSkill));
|
||||
DelayCommand(6.0,SetPersistentInt(oPC,"iTinkerSkill",iGlassSkill,0,"UOACraft"));
|
||||
DelayCommand(6.0,SetCampaignInt("UOACraft","iTinkerSkill",iGlassSkill,oPC));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"================================="));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"Your Tinkering skill has gone up!"));
|
||||
DelayCommand(6.0,SendMessageToPC(oPC,"Current Tinkering skill : "+ sOldSkill+"%"));
|
||||
|
Reference in New Issue
Block a user