Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
26
_module/nss/x3_pl_tool08.nss
Normal file
26
_module/nss/x3_pl_tool08.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "dev_inc"
|
||||
#include "chr_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oUser = OBJECT_SELF;
|
||||
object oTarget = GetSpellTargetObject();
|
||||
|
||||
// Team members can rename anything..
|
||||
if (!dev_IsTeamMember(oUser))
|
||||
{
|
||||
dbg_ReportBug("Team-only tool used. How did you get this?", oUser);
|
||||
return;
|
||||
}
|
||||
|
||||
if (oTarget == OBJECT_INVALID || oTarget == OBJECT_SELF)
|
||||
{
|
||||
SendMessageToPC(oUser, "You will now speak normally.");
|
||||
DeleteLocalObject(oUser, "SPEAK_THROUGH_OTHER");
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalObject(oUser, "SPEAK_THROUGH_OTHER", oTarget);
|
||||
SendMessageToPC(oUser, "You will now speak through " + GetName(oTarget));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user