30 lines
463 B
Plaintext
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));
|
|
|
|
}
|
|
|
|
}
|