Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   findnpcbyid (https://forums.graalonline.com/forums/showthread.php?t=81239)

Mark Sir Link 08-15-2008 03:10 AM

findnpcbyid
 
Is this not intended for DB NPCs? If that is the case, is there anyway to get a DB NPC object on the clientside?

cbk1994 08-15-2008 03:14 AM

Quote:

Originally Posted by Mark Sir Link (Post 1414478)
Is this not intended for DB NPCs? If that is the case, is there anyway to get a DB NPC object on the clientside?

No, I don't believe there is.

Chompy 08-15-2008 03:27 AM

Well, you can get the object if your in the same level as the database npc.

(Database npcs appears in level.npcs[])

xXziroXx 08-15-2008 04:02 AM

Quote:

Originally Posted by Chompy (Post 1414481)
(Database npcs appears in level.npcs[])

Which is how Zach almost killed Zodiac when trying to clear a level from local NPCs using a loop and destroy's. :cool:

Mark Sir Link 08-15-2008 05:12 AM

it won't be used in only one level :(

Inverness 08-15-2008 09:28 AM

findnpcbyid() can be used with any NPC. On the client there is really no difference between normal NPCs and Database NPCs. The clientside part only loads when you load the level.

If you get the NPC ID from the server you can manipulate the clientside parts of the NPC on all clients.

Chompy 08-15-2008 10:21 AM

Quote:

Originally Posted by xxziroxx (Post 1414499)
which is how zach almost killed zodiac when trying to clear a level from local npcs using a loop and destroy's. :cool:

:-p


All times are GMT +2. The time now is 03:33 AM.

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