Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   NPCs in other levels not loading? (https://forums.graalonline.com/forums/showthread.php?t=65521)

Yen 04-20-2006 08:23 PM

NPCs in other levels not loading?
 
I'm not sure if gmaps have always acted like this, but NPC scripts outside the player's level on a gmap aren't running.

I have a ladder that draws itself on the clientside, using showimg. However, the showimg hides if the player leaves the single level with the NPC in it.
So, if I'm a level below, I won't see the ladder. If I'm a level to the left, I won't see the ladder.

Is there any way to change/fix this?

EDIT: Kai, well Skyld cleared it up. Clientside only uses the one level you're in, on the gmap. Is there any way to make it load NPCs outside the level?

jake13jake 04-20-2006 11:55 PM

Quote:

Originally Posted by Yen
I'm not sure if gmaps have always acted like this, but NPC scripts outside the player's level on a gmap aren't running.

I have a ladder that draws itself on the clientside, using showimg. However, the showimg hides if the player leaves the single level with the NPC in it.
So, if I'm a level below, I won't see the ladder. If I'm a level to the left, I won't see the ladder.

Is there any way to change/fix this?

EDIT: Kai, well Skyld cleared it up. Clientside only uses the one level you're in, on the gmap. Is there any way to make it load NPCs outside the level?

Well, I can say your options include to showimg from the level connecting to the outside level, or to just setimg an NPC.

Yen 04-21-2006 02:24 AM

That's too much trouble, these NPCs are made so that idiots can easily place them.. :/

And yeah, the ladder is 3 seperate images; the top, the bottom, and each rung.

jake13jake 04-21-2006 02:46 AM

Quote:

Originally Posted by Yen
That's too much trouble, these NPCs are made so that idiots can easily place them.. :/

And yeah, the ladder is 3 seperate images; the top, the bottom, and each rung.

That's why I love ganis.

Admins 04-21-2006 12:51 PM

I am not sure what the problem is, scripts are ran for all npcs in the surrounding 3x3 levels. The level name #L/#F might not match, but everything else is fine, otherwise the lamps on Era or Kingdoms wouldn't work.

jake13jake 04-21-2006 03:35 PM

hmm... maybe your NPCs are in a weird level border position (although I doubt it?)?

Yen 04-21-2006 08:41 PM

I tried to put it in a gani, but it still only shows if you're in the same level..
Perhaps it's just me?
If anyone could, log on Aetherforge. The gmap should be 2x3. At the very bottom, you won't see the ladder, but you can still climb it. If you jump up the platforms to your right and go over to the ladder, you'll be able to see it since you entered the same level.

PHP Code:

if (created) {
  
hideimgs(0,100);
  for (
0<= params[0] + 1a++) {
    if (
== 0) {
      
showimg(a,"tom_ladder3.png",x,y);
    }
    else if (
== params[0]+1) {
      
showimg(a,"tom_ladders2.png",x,y+(45/16)+(34/16)*(a-1));
    }
    else {
      
showimg(a,"tom_ladder.png",x,y+(45/16)+(34/16)*(a-1));
    }
    
findimg(a).layer 0;
  }




All times are GMT +2. The time now is 01:27 AM.

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