Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
//::///////////////////////////////////////////////
//:: Name: pgs_terr_abandon
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Abandon the selected territory.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem"
#include "inc_gsystem_terr"
void main()
{
object oPlayer = GetPCSpeaker();
int iGuild = GetLocalInt (oPlayer, "Player_Guild_Number");
int iTerritory = GetLocalInt (oPlayer, "Territory_Number");
//--------------------------------------------
//Inform guild of abandoned territory.
//--------------------------------------------
SendPGSGuildNotice (iGuild, "The territory located in " + GetName (GetArea
(GetObjectByTag ("Territory_Flag_" + IntToString (iTerritory)))) +
" has been abandoned.");
//--------------------------------------------
//Now we abandon the territory.
//--------------------------------------------
SendMessageToPC (oPlayer, "This territory has been abandoned.");
SetTerritoryGuildNumber (iTerritory, 0);
SetTerritoryName (iTerritory, "");
//--------------------------------------------
//Update guild territory guild count.
//--------------------------------------------
SetGuildTerritoryCount (iGuild, GetGuildTerritoryCount (iGuild) - 1);
}