Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
20
_module/nss/en4_mg_p2.nss
Normal file
20
_module/nss/en4_mg_p2.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "utl_i_sqluuid"
|
||||
|
||||
void main()
|
||||
{
|
||||
int iQuest;
|
||||
int iGuild;
|
||||
object oClicker = GetClickingObject();
|
||||
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
||||
|
||||
iGuild = SQLocalsUUID_GetInt(oClicker,"PCGuild");
|
||||
iQuest = SQLocalsUUID_GetInt(oClicker,"GuildQuests");
|
||||
|
||||
if (iGuild == 3 && iQuest > 4)
|
||||
{
|
||||
SetAreaTransitionBMP(AREA_TRANSITION_RANDOM);
|
||||
AssignCommand(oClicker,JumpToObject(oTarget));
|
||||
} else {
|
||||
SendMessageToPC(oClicker,"Only members of sufficient rank may use the portal.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user