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

30 lines
463 B
Plaintext

//Put this script OnEnter
#include "nw_i0_tool"
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
if (d100()<=30)
{
ActionStartConversation(oPC, "socketitemconv");
}
else
{
DelayCommand(10.0, RewardPartyXP(3000, oPC, FALSE));
DelayCommand(10.0, RewardPartyGP(50000, oPC, FALSE));
}
}