Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Clientside NPC loading problem (https://forums.graalonline.com/forums/showthread.php?t=62444)

Lance 11-22-2005 09:23 PM

Clientside NPC loading problem
 
If you change levels before the clientside NPCs of a level are fully loaded, they will load in the wrong level.

Example: worldl-17.nw on Graal2001 Dev, enter cs2_start.nw and exit back to worldl-17.nw before the NPCs finish loading. You will see worldl-17.nw as a nopkzone and sparringzone.

Magadal 11-24-2005 03:23 PM

Also, sometimes if you enter a level, some of the NPCs are at the wrong positions. Often happens to NPCs with scripts like x+=.5; or something else.

Lance 11-24-2005 07:12 PM

Quote:

Originally Posted by Magadal
Also, sometimes if you enter a level, some of the NPCs are at the wrong positions. Often happens to NPCs with scripts like x+=.5; or something else.

Put the adjustment in the created event block instead of the playerenters event block. This is not a bug. -_-

Admins 11-24-2005 08:02 PM

Quote:

Originally Posted by Lance
If you change levels before the clientside NPCs of a level are fully loaded, they will load in the wrong level.

Example: worldl-17.nw on Graal2001 Dev, enter cs2_start.nw and exit back to worldl-17.nw before the NPCs finish loading. You will see worldl-17.nw as a nopkzone and sparringzone.

Normally the npcserver says where the npcs go to so you can never get the npcs into the wrong level. It's a little bit hard to test when having a low ping too x-x Do you also see the npcs in the other level or is it only a problem of the scripts still running when you already entered the other level ?

Lance 11-25-2005 12:12 AM

Quote:

Originally Posted by Stefan
Normally the npcserver says where the npcs go to so you can never get the npcs into the wrong level. It's a little bit hard to test when having a low ping too x-x Do you also see the npcs in the other level or is it only a problem of the scripts still running when you already entered the other level ?

It seems to just keep executing the script when you have entered the other level. I added:

NPC Code:
  addstring client.message,playerenters L:#L, F:#F;



to the script, and according to it the value of #F is the inside level when this happens, but #L is the outside level.

Magadal 11-25-2005 02:37 PM

Quote:

Originally Posted by Lance
Put the adjustment in the created event block instead of the playerenters event block. This is not a bug. -_-


It is in the created event block :).


All times are GMT +2. The time now is 05:40 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.