Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-08-08 16:22:17 -04:00
parent 51a2a1286e
commit 22947ad4b6
6511 changed files with 6765205 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#include "x2_inc_switches"
void main()
{
object oGuildkey = GetModuleItemAcquired();
object oPC = GetModuleItemAcquiredBy();
object oMod = GetModule();
string sKey = GetPCPublicCDKey(oPC);
string sIP = GetPCIPAddress(oPC);
string sTag = GetTag(oGuildkey);
int nEvent =GetUserDefinedItemEventNumber();
if (!(nEvent ==X2_ITEM_EVENT_ACQUIRE)) return;
if(GetCampaignInt(sIP,sKey,oMod)== 1 && GetStringLeft(sTag,2)== "MG")
{
SendMessageToPC(oPC,"You cannot join another Guild.");
DestroyObject(oGuildkey,0.0);
return;
}
if(sTag== "MG_tdskey" || sTag== "MG_tmfkey")
{
SetCampaignInt(sIP,sKey,1,oMod);
SendMessageToPC(oPC,"You have choosen your Guild.");
}
}