UW2_PRC8/_module/nss/handgivesitem.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

46 lines
996 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
//Put this on action taken in the conversation editor
#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
if (GetGold(oPC) >= 5000000)
{
if (d100()<=15)
{
CreateItemOnObject("handwish", oPC);
AssignCommand(oPC, TakeGoldFromCreature(5000000, oPC, TRUE));
FloatingTextStringOnCreature("You have found something in the well!!!", oPC);
}
else if (GetGold(oPC) >= 500000)
{
if (d100()<=40)
{
RewardPartyGP(99999, oPC, FALSE);
FloatingTextStringOnCreature("You find many coins within the well!!!!", oPC);
}
else
{
AssignCommand(oPC, TakeGoldFromCreature(300000, oPC, TRUE));
FloatingTextStringOnCreature("Some of your gold has been turned to lead!!!!", oPC);
}
}
}
}