Adds and Changes
Added missing crafting maps, removed unnecessary maps, changed a few miscellaneous things.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
#include "nw_i0_plot"
|
||||
|
||||
void DelayCreateDeed(object oPC, string sItemTag, string sItemResRef, string sItemName, int iCounter, int iStack);
|
||||
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
@@ -22,7 +18,6 @@ void main()
|
||||
return;
|
||||
}
|
||||
SendMessageToPC(oPC,"Attempting to fill commodity bundle with "+IntToString(iTotal)+" "+sItemName+".");
|
||||
SendMessageToPC(oPC,"This will take 30 seconds.");
|
||||
int iAmCommodity=0;
|
||||
|
||||
if (GetStringLeft(sItemTag,5)=="ITEM_") iAmCommodity=1;
|
||||
@@ -86,6 +81,12 @@ void main()
|
||||
return;
|
||||
}
|
||||
|
||||
object oDeed = CreateItemOnObject("_uoa_commodity_f",oPC,1);
|
||||
SetLocalString(oDeed,"sItemTag",sItemTag);
|
||||
SetLocalString(oDeed,"sItemResRef",sItemResRef);
|
||||
SetLocalString(oDeed,"sItemName",sItemName);
|
||||
|
||||
|
||||
object oGone = GetFirstItemInInventory(oPC);
|
||||
float fDelay = 2.0;
|
||||
int iCounter;
|
||||
@@ -108,18 +109,7 @@ void main()
|
||||
if (oGone==OBJECT_INVALID) break;
|
||||
}
|
||||
}
|
||||
AssignCommand(GetModule(),DelayCommand(fDelay+30.0,DelayCreateDeed(oPC,sItemTag,sItemResRef,sItemName,iCounter,iStack)));
|
||||
DelayCommand(fDelay+30.5,SendMessageToPC(oPC,"Successfully added "+IntToString(iCounter)+" "+sItemName+" to the bundle."));
|
||||
DelayCommand(fDelay+0.5,SendMessageToPC(oPC,"Your filled deed will be ready in 30 seconds."));
|
||||
}
|
||||
|
||||
void DelayCreateDeed(object oPC, string sItemTag, string sItemResRef, string sItemName, int iCounter, int iStack)
|
||||
{
|
||||
object oDeed = CreateItemOnObject("_uoa_commodity_f",oPC,1);
|
||||
SetLocalString(oDeed,"sItemTag",sItemTag);
|
||||
SetLocalString(oDeed,"sItemResRef",sItemResRef);
|
||||
SetLocalString(oDeed,"sItemName",sItemName);
|
||||
SetLocalInt(oDeed,"iNumberStored",iCounter);
|
||||
SetLocalInt(oDeed,"iStack",iStack);
|
||||
return;
|
||||
}
|
||||
DelayCommand(fDelay+0.5,SendMessageToPC(oPC,"Successfully added "+IntToString(iCounter)+" "+sItemName+" to the bundle."));
|
||||
}
|
||||
|
Reference in New Issue
Block a user