46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
|
#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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|