Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   how can i tell a class to perform commands in a lag free efficient way? (https://forums.graalonline.com/forums/showthread.php?t=57145)

Gman4pwnu 01-19-2005 02:54 AM

so like
callnpc index,test;

would be responded to with if (test){ ?

also is it a serverside cmd?

Lance 01-19-2005 03:03 AM

Quote:

Originally Posted by Gman4pwnu
so like
callnpc index,test;

would be responded to with if (test){ ?

also is it a serverside cmd?

Yes, and I believe so.

Tolnaftate2004 01-19-2005 03:04 AM

Quote:

Originally Posted by Gman4pwnu
so like
callnpc index,test;

would be responded to with if (test){ ?

Yes
Quote:

Originally Posted by Gman4pwnu
also is it a serverside cmd?

It works for either serverside or clientside.

And it should be
NPC Code:
callnpc index,eventflag [,param1,...,paramN];


And parameters are read the same as triggeraction.

Gman4pwnu 01-19-2005 03:11 AM

thanks for everyones help, now i can finally work on pathfinding

Evil_Trunks 01-19-2005 04:37 AM

Stefan once said callnpc was laggy and should be avoided

Lance 01-19-2005 04:39 AM

Quote:

Originally Posted by Evil_Trunks
Stefan once said callnpc was laggy and should be avoided

A level triggeraction would be better, anyway, as long as NPCs aren't stacked on top of one another.

Evil_Trunks 01-19-2005 04:43 AM

what if the NPC is hidden?

the other day, I was wondering what the best way to trigger it would be


All times are GMT +2. The time now is 12:28 PM.

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