Continuing dynamic spawn swapover
Continuing dynamic spawn swapover. Got city exterior done, started on South Coast Road hostile spawns & dynamic bandits.
This commit is contained in:
19
_module/nss/ra_beggar_hb.nss
Normal file
19
_module/nss/ra_beggar_hb.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
{
|
||||
string sSpeak = "Finally, I can get off the streets!";
|
||||
int nVolume = TALKVOLUME_TALK;
|
||||
int nGoldTillRich = 1500;
|
||||
object oPickup = GetNearestObject(OBJECT_TYPE_ITEM);
|
||||
if (oPickup != OBJECT_INVALID)
|
||||
{
|
||||
ActionPickUpItem(oPickup);
|
||||
if (GetGoldPieceValue(oPickup) >= nGoldTillRich)
|
||||
{
|
||||
ActionSpeakString(sSpeak,nVolume);
|
||||
ActivateFleeToExit();
|
||||
}
|
||||
}
|
||||
WalkWayPoints();
|
||||
}
|
Reference in New Issue
Block a user