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?
I may be mistaken and thinking of dialogue but I do believe that filenames cannot be more than 16 characters. Yours is 18. Try reducing it to something different.
Well it worked before and I think you were the one who told me to do that. But, I'll try that.
Wow, after intense study of my script I have realized I made one of the stupidest mistakes ever. The file name for the script that was supposed to execute was wrong, so problem solved. If a mod could close this thread?