16 lines
470 B
Plaintext
16 lines
470 B
Plaintext
// Create Watcher Mercenary
|
|
void main()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
object oMe=OBJECT_SELF;
|
|
object oTemp;
|
|
string sID=GetLocalString(oPC,"sTeamID");
|
|
object oMerc;
|
|
object oWP=GetObjectByTag(sID+"_RESOURCES");
|
|
oTemp=GetObjectByTag(sID+"_PROXY");
|
|
oMerc=CreateObject(OBJECT_TYPE_CREATURE,"watchermercenary",GetLocation(oMe));
|
|
SetLocalString(oMerc,"sTeamID",sID);
|
|
ChangeFaction(oMerc,oTemp);
|
|
TakeGoldFromCreature(1000,oPC,TRUE);
|
|
}
|