Jump to content

Home

Onenter script woes


Recommended Posts

So, with my "beautiful" onenter script there is one problem. For some reason, it does not execute old_k_pdan_14b_area.

 

void main()
{ 	


if (!GetLocalBoolean(OBJECT_SELF, 40) && (GetEnteringObject() == GetFirstPC())) { 


           if (GetGlobalBoolean("MERC_ASSIGN")){ 

SetLocalBoolean(OBJECT_SELF, 40, TRUE); 


                 CreateObject(OBJECT_TYPE_CREATURE, "n_merc02", Location(Vector(559.64, 50.61, 7.70), 0.0));
                 CreateObject(OBJECT_TYPE_CREATURE, "n_doha", Location(Vector(566.85, 51.61, 7.57), 180.0));
                 CreateObject(OBJECT_TYPE_CREATURE, "n_merc01", Location(Vector(560.04, 53.33, 7.76), 0.0));
                 CreateObject(OBJECT_TYPE_CREATURE, "n_aramil", Location(Vector(561.50, 52.10, 7.72), 0.0));

           }
    ExecuteScript("old_k_pdan14b_area", OBJECT_SELF); 	
  }   
}

 

Can anyone help?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...