LoT_PRC8/_module/nss/pgs_invite_init.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

35 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name: pgs_invite_init
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This script will display some information using
a conversation to the player who recieved the
guild invitation.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem"
int StartingConditional()
{
object oSender = GetLocalObject (GetPCSpeaker(), "Object_Activator");
int iGuild = GetLocalInt (oSender, "Player_Guild_Number");
int iJoiningFee = GetModuleGuildJoiningFee (iGuild);
//--------------------------------------------
//Set some custom tokens for the player.
//--------------------------------------------
SetCustomToken (3034, GetName (oSender));
SetCustomToken (3008, GetModuleGuildName (iGuild));
if (iJoiningFee == 0)
SetCustomToken (3080, "no joining fee for this invitation.");
else
SetCustomToken (3080, "a " + IntToString (iJoiningFee) + "gp joining fee.");
return TRUE; /*Conditional.*/
}