RATDOG/_module/nss/ra_beggar_hb.nss

20 lines
486 B
Plaintext
Raw Permalink Normal View History

#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();
}