Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/house_saleprice.nss
Normal file
16
_module/nss/house_saleprice.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oModule = GetModule();
|
||||
|
||||
string sDatabase = GetLocalString(oModule, "DB");
|
||||
string sHouse = GetLocalString(oPC, "HouseToSell");
|
||||
string sHousePrice = "H_"+sHouse+"_PRICE";
|
||||
|
||||
int nPrice = GetCampaignInt(sDatabase, sHousePrice);
|
||||
SetLocalInt(oPC, "HouseToSell_p", nPrice);
|
||||
string sPrice = IntToString(nPrice);
|
||||
SetCustomToken(822, sPrice);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
Reference in New Issue
Block a user