23 lines
368 B
Plaintext
23 lines
368 B
Plaintext
|
|
|
|
void main()
|
|
{
|
|
|
|
object oTarget;
|
|
object oSpawn;
|
|
location lTarget;
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
|
|
SetLocalString(oPC, "elad", "1");
|
|
|
|
// Remove some gold from the player
|
|
TakeGoldFromCreature(500, GetPCSpeaker(), FALSE);
|
|
|
|
oTarget = GetWaypointByTag("WP_SPn_Elad_Th_As");
|
|
lTarget = GetLocation(oTarget);
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "darick", lTarget);
|
|
|
|
}
|