30 lines
557 B
Plaintext
30 lines
557 B
Plaintext
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetLastUsedBy();
|
|
|
|
// Give 10 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 10);
|
|
|
|
// Only fire once.
|
|
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
|
|
return;
|
|
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
|
|
|
|
CreateItemOnObject("inrikvalinors", oPC);
|
|
|
|
oTarget = GetObjectByTag("Shaft_Blue_in");
|
|
DestroyObject(oTarget, 1.0);
|
|
|
|
oTarget = GetObjectByTag("inrik_bag");
|
|
DestroyObject(oTarget, 10.0);
|
|
|
|
}
|
|
|