HoS_PRC8/_mod/_module/nss/wizard_2_astral.nss

21 lines
519 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
void fnJump(object oDest)
{
object oMe=OBJECT_SELF;
if (GetArea(oMe)!=GetArea(oDest)||GetDistanceBetween(oMe,oDest)>3.0)
{ // jump
AssignCommand(oMe,ClearAllActions(TRUE));
AssignCommand(oMe,JumpToObject(oDest));
DelayCommand(0.8,fnJump(oDest));
} // jump
} // fnJump()
void main()
{
object oWizard=OBJECT_SELF;
object oMe=GetPCSpeaker();
object oWP=GetWaypointByTag("PLANESHIFT_ASTRAL");
AssignCommand(oWizard,TakeGoldFromCreature(200,oMe));
AssignCommand(oMe,fnJump(oWP));
}