Any help would be appreciated
//Put this on action taken in the conversation editor
#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
if (d100()<=50)
{
RewardPartyXP(50, oPC, FALSE);
CreateItemOnObject("cray_fish", oPC);
SendMessageToPC(oPC, "You caught a caryfish!");
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY2));
}
else if (d100()<=3)
{
SendMessageToPC(oPC, "A crayfish bites you!");
effect eEffect = EffectDamage(1, DAMAGE_TYPE_PIERCING, DAMAGE_POWER_NORMAL);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_STEAL));
}
if (d100()<=7)
{
RewardPartyXP(100, oPC, FALSE);
CreateItemOnObject("salmon_fish", oPC);
}
else if (d100()<=40)
{
RewardPartyXP(40, oPC, FALSE);
CreateItemOnObject("trout", oPC);
SendMessageToPC(oPC, "You caught a trout!");
}
else if (d100()<=3)
{
RewardPartyXP(200, oPC, FALSE);
CreateItemOnObject("salmon_fish001", oPC);
SendMessageToPC(oPC, "You caught a blow-fish!");
}
}





Guest_NWN Dragon-Blade_*
Retour en haut






