Areas and Fixes
Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
This commit is contained in:
26
_module/nss/pv_check_totals.nss
Normal file
26
_module/nss/pv_check_totals.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name: pv_check_totals
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Returns the total sales and total cash income
|
||||
for the day in this vendor.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
int StartingConditional()
|
||||
{
|
||||
object oNPCMerchant = OBJECT_SELF;
|
||||
|
||||
int nTotalSales = GetLocalInt(oNPCMerchant, "PV_TOTAL_NUMBER_OF_SALES");
|
||||
int iCashIncome = GetLocalInt(oNPCMerchant, "PV_CASH_MADE_FROM_SALES");
|
||||
|
||||
|
||||
if (nTotalSales > 0)
|
||||
{
|
||||
SetCustomToken(15001, IntToString(nTotalSales));
|
||||
SetCustomToken(15002, IntToString(iCashIncome));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user