Initial commit. Updated release archive.
This commit is contained in:
41
_module/nss/at_create_gtruin.nss
Normal file
41
_module/nss/at_create_gtruin.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
void RemoveXPFromParty(int nXP, object oPC, int bAllParty=TRUE)
|
||||
{
|
||||
|
||||
if (!bAllParty)
|
||||
{
|
||||
nXP=(GetXP(oPC)-nXP)>=0 ? GetXP(oPC)-nXP : 0;
|
||||
SetXP(oPC, nXP);
|
||||
}
|
||||
else
|
||||
{
|
||||
object oMember=GetFirstFactionMember(oPC, TRUE);
|
||||
|
||||
while (GetIsObjectValid(oMember))
|
||||
{
|
||||
nXP=(GetXP(oMember)-nXP)>=0 ? GetXP(oMember)-nXP : 0;
|
||||
SetXP(oMember, nXP);
|
||||
oMember=GetNextFactionMember(oPC, TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.5
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Put this on action taken in the conversation editor
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
AssignCommand(oPC, TakeGoldFromCreature(531000, oPC, TRUE));
|
||||
|
||||
RemoveXPFromParty(21240, oPC, FALSE);
|
||||
|
||||
// Give the speaker the items
|
||||
CreateItemOnObject("greaterruin", oPC, 1);
|
||||
|
||||
}
|
Reference in New Issue
Block a user