27 lines
840 B
Plaintext
27 lines
840 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Name: farm_sell
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Place the current farmland up for sale.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Adam Walenga
|
||
|
//:: Created On: September 7th, 2004
|
||
|
//:://////////////////////////////////////////////
|
||
|
#include "farm_include"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int iFarmNumber = GetLocalInt (OBJECT_SELF, "Farm_Number");
|
||
|
|
||
|
//Place the farm up for sale, with the newly specified sell price.
|
||
|
Farm_SetIsForSale (iFarmNumber, TRUE);
|
||
|
Farm_SetSellPrice (iFarmNumber, GetLocalInt (OBJECT_SELF,
|
||
|
"Farm_Temp_Sell_Price"));
|
||
|
|
||
|
//Inform PC of action.
|
||
|
SendMessageToPC (GetPCSpeaker(), "This farmland of yours has succesfully " +
|
||
|
"been put up for sale.");
|
||
|
}
|