224 lines
3.4 KiB
Plaintext
224 lines
3.4 KiB
Plaintext
string sDeny;
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.3
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Put this script OnUsed
|
|
#include "nw_i0_2q4luskan"
|
|
|
|
// ***
|
|
void killtree1()
|
|
{
|
|
object oTarget31;
|
|
|
|
oTarget31 = GetObjectByTag("questcherry1");
|
|
|
|
DestroyObject(oTarget31, 0.0);
|
|
}
|
|
// ***
|
|
|
|
// ***
|
|
void killtree2()
|
|
{
|
|
object oTarget32;
|
|
|
|
oTarget32 = GetObjectByTag("questcherry2");
|
|
|
|
DestroyObject(oTarget32, 0.0);
|
|
}
|
|
// ***
|
|
|
|
void killtree3()
|
|
{
|
|
object oTarget33;
|
|
|
|
oTarget33 = GetObjectByTag("questcherry3");
|
|
|
|
DestroyObject(oTarget33, 0.0);
|
|
}
|
|
// ***
|
|
|
|
// ***
|
|
void killlight()
|
|
{
|
|
object oTarget34;
|
|
|
|
oTarget34 = GetObjectByTag("eastlight1");
|
|
|
|
DestroyObject(oTarget34, 0.0);
|
|
|
|
oTarget34 = GetObjectByTag("fireflies_east");
|
|
|
|
DestroyObject(oTarget34, 0.0);
|
|
|
|
oTarget34 = GetObjectByTag("fireflies_east");
|
|
|
|
DestroyObject(oTarget34, 0.0);
|
|
|
|
oTarget34 = GetObjectByTag("fireflies_east");
|
|
|
|
DestroyObject(oTarget34, 0.0);
|
|
|
|
oTarget34 = GetObjectByTag("questcherry4");
|
|
|
|
DestroyObject(oTarget34, 0.0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
// ***
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastUsedBy();
|
|
|
|
// if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "guardianseed")== OBJECT_INVALID)
|
|
{
|
|
sDeny="Nothing seems to happen.";
|
|
|
|
SendMessageToPC(oPC, sDeny);
|
|
|
|
return;
|
|
}
|
|
|
|
object oItem;
|
|
oItem = GetFirstItemInInventory(oPC);
|
|
|
|
while (GetIsObjectValid(oItem))
|
|
{
|
|
if (GetTag(oItem)=="guardianseed") DestroyObject(oItem);
|
|
|
|
oItem = GetNextItemInInventory(oPC);
|
|
}
|
|
|
|
object oTarget;
|
|
object oTarget1;
|
|
object oTarget2;
|
|
object oTarget3;
|
|
object oTarget4;
|
|
object oTarget5;
|
|
object oTarget6;
|
|
object oTarget7;
|
|
object oTarget8;
|
|
object oTarget9;
|
|
object oTarget10;
|
|
object oTarget11;
|
|
|
|
|
|
location lTarget;
|
|
location lTarget1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***
|
|
|
|
oTarget10 = GetObjectByTag("ep_questsound1");
|
|
SoundObjectPlay(oTarget10);
|
|
|
|
// ***
|
|
|
|
oTarget11 = GetObjectByTag("ep_questsound2");
|
|
SoundObjectPlay(oTarget11);
|
|
|
|
// ***
|
|
|
|
oTarget = GetWaypointByTag("seeddirt");
|
|
lTarget = GetLocation(oTarget);
|
|
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "eastlight1", lTarget));
|
|
|
|
|
|
// ***
|
|
|
|
|
|
|
|
DelayCommand(6.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "questcherry1", lTarget));
|
|
|
|
DelayCommand(15.0, killtree1());
|
|
|
|
// ***
|
|
|
|
|
|
|
|
DelayCommand(16.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "questcherry2", lTarget));
|
|
|
|
DelayCommand(25.0, killtree2());
|
|
|
|
// ***
|
|
|
|
|
|
|
|
DelayCommand(26.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "questcherry3", lTarget));
|
|
|
|
oTarget3 = GetObjectByTag("questcherry3");
|
|
|
|
DelayCommand(35.0, killtree3());
|
|
|
|
// ***
|
|
|
|
|
|
|
|
DelayCommand(36.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "questcherry4", lTarget));
|
|
|
|
// ***
|
|
|
|
oTarget5 = GetWaypointByTag("wp_ep1");
|
|
|
|
lTarget = GetLocation(oTarget5);
|
|
|
|
DelayCommand(40.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "fireflies_east", lTarget));
|
|
|
|
// ***
|
|
|
|
oTarget6 = GetWaypointByTag("wp_ep2");
|
|
|
|
lTarget = GetLocation(oTarget6);
|
|
|
|
DelayCommand(40.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "fireflies_east", lTarget));
|
|
|
|
// ***
|
|
|
|
oTarget7 = GetWaypointByTag("wp_ep3");
|
|
|
|
lTarget = GetLocation(oTarget7);
|
|
|
|
DelayCommand(40.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "fireflies_east", lTarget));
|
|
|
|
// ***
|
|
|
|
oTarget8 = GetWaypointByTag("wp_ep4");
|
|
|
|
lTarget = GetLocation(oTarget8);
|
|
|
|
DelayCommand(40.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "fireflies_east", lTarget));
|
|
|
|
// ***
|
|
|
|
oTarget9 = GetWaypointByTag("wp_towerdaemon1");
|
|
|
|
lTarget = GetLocation(oTarget9);
|
|
|
|
DelayCommand(50.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "towerdaemon1", lTarget));
|
|
|
|
DelayCommand(52.0, killlight());
|
|
|
|
}
|
|
|
|
|
|
|