Amon_PRC8/_module/nss/practicedummy.nss

29 lines
883 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
object oKiller = GetLastKiller();
GiveXPToCreature(oKiller, 150);
if(GetIsPC(oKiller))
{
if(GetXP(oKiller) >= 2000)
{
object oTarget = GetWaypointByTag("Heijan");
object oMalas = GetNearestObjectByTag("SargentMalas");
AssignCommand(oMalas,SpeakString("Get your mother loving ass out of my training area!", TALKVOLUME_TALK));
AssignCommand(oKiller, JumpToObject(oTarget));
}
else if(GetXP(oKiller) >= 1500)
{
object oTarget = GetWaypointByTag("TalkToMalas");
object oMalas = GetNearestObjectByTag("SargentMalas");
AssignCommand(oMalas,SpeakString("Its time for you to get out of here soldier! You have done enough practice.", TALKVOLUME_TALK));
AssignCommand(oKiller, JumpToObject(oTarget));
}
}
else
{
DestroyObject(oKiller);
}
}