Initial upload
Initial upload.
This commit is contained in:
29
_module/nss/pgs_new_access.nss
Normal file
29
_module/nss/pgs_new_access.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name: pgs_new_access
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Grant new guild creation access to the targeted
|
||||
player.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Samius Maximus
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oPlayer = GetPCSpeaker();
|
||||
object oTarget = GetLocalObject (oPlayer, "Object_Target");
|
||||
|
||||
//--------------------------------------------
|
||||
//Grant target player guild access.
|
||||
//--------------------------------------------
|
||||
SetLocalInt (oTarget, "Guild_Creation_Access", TRUE);
|
||||
|
||||
//--------------------------------------------
|
||||
//Inform player and DMs of change.
|
||||
//--------------------------------------------
|
||||
SendMessageToAllDMs (GetName (oTarget) + " has been given access to " +
|
||||
"create a guild.");
|
||||
SendMessageToPC (oPlayer, "You have been granted access to create a guild.");
|
||||
}
|
||||
Reference in New Issue
Block a user