17 lines
545 B
Plaintext
17 lines
545 B
Plaintext
#include "sha_misc_funcs"
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oTarget = GetLocalObject(oPC, "PLAYER_TARGETED");
|
|
if(!GetIsObjectValid(oTarget))
|
|
{
|
|
DeleteLocalInt(GetPCSpeaker(), "BROWSE_NEXT");
|
|
return;
|
|
}
|
|
AdjustAlignment(oPC, ALIGNMENT_EVIL, 25);
|
|
DeleteLocalInt(oPC, "PLAYERS_SHIFTED");
|
|
SetLocalString(OBJECT_SELF, "LAST_HIRED", GetName(oPC));
|
|
CreateObject(OBJECT_TYPE_CREATURE, "sha_assasin", GetLocation(oTarget));
|
|
DelayCommand(25.0, DeleteLocalObject(oPC, "PLAYER_TARGETED"));
|
|
}
|