You can delay the loading of the rest of the NPC by doing this I guess
PHP Code:
//#CLIENTSIDE
function onCreated() {
while (temp.wait < 10) {
temp.wait++;
sleep(0.05);
}
[Other Stuff Here]
}
But it would probably be better practice to do it this way:
PHP Code:
function onCreated() {
scheduleEvent(1, "NewCreated", NULL);
}
function onNewCreated() {
[Other Stuff Here]
}