HoS_PRC8/_mod/_module/nss/wizard_2_astral.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

21 lines
519 B
Plaintext

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));
}