Amon_PRC8/_module/nss/ar_packox_handin.nss

46 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
#include "pcinclude"
#include "nw_i0_henchman"
void main()
{
object oEnter = GetEnteringObject();
if(GetTag(oEnter) == "AryunOx")
{
AssignCommand (oEnter, PlaySound ("as_cv_ta-da1"));
object oHench = oEnter;
object oPC = GetMaster(oHench);
// Remove items from the player's inventory
int nPelts1 = DestroyItemsInInventory(oHench, "AryunSupplies", 9999);
// Give the speaker some gold
GiveGoldToCreature(oPC, 1600 * nPelts1 + 50);
// Give the speaker some XP
GiveXPToCreature(oPC, 200 * nPelts1 + 100);
ExecuteScript("kill_ox", oHench);
if (nPelts1 >= 20)
{
ExecuteScript("aryungems", oPC);
ExecuteScript("aryungems", oPC);
ExecuteScript("aryungems", oPC);
ExecuteScript("aryungems", oPC);
CreateItemOnObject("hornofpaerun", oPC);
}
else if (nPelts1 >= 16)
{
ExecuteScript("aryungems", oPC);
ExecuteScript("aryungems", oPC);
ExecuteScript("aryungems", oPC);
CreateItemOnObject("hornofpaerun", oPC);
}
else if (nPelts1 >= 10)
{
ExecuteScript("aryungems", oPC);
ExecuteScript("aryungems", oPC);
}
else if (nPelts1 >= 05)
{
ExecuteScript("aryungems", oPC);
}
}
}