Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   findLevelLink() (https://forums.graalonline.com/forums/showthread.php?t=76541)

coreys 08-28-2007 07:00 AM

findLevelLink()
 
Something such as this would be rather nice:
PHP Code:

function getLevelLinks(level) {
  
temp.linklist findLevel(level).levellinks;
  
temp.linkdata NULL;
  for (
i=0i<temp.links.size(); i++) {
    
temp.link findLevelLink(temp.linklist[i]);
    
temp.linkvars temp.link.getStaticVarNames();
    for (
a=0a<temp.linkvars.size(); a++)
      
temp.linkdata[i][a] = temp.link.(@ temp.linkvars[a]);
  }


There is a TServerLeveLink with these variables (x, y, width, height, destx, and desty), but there's no way I know of to access them like this. This could add new functionality to NPCs such as baddies, so that they can go through links.

Admins 08-28-2007 11:13 AM

Hmmm or access the links like on client-side via level.links[] ?

coreys 08-29-2007 12:48 AM

Oh, seriously, I didn't know you could, although something serverside would be nice.

Angel_Light 08-29-2007 03:19 AM

maybe try to read the actual text file of a nw level and try to work it like that?

DustyPorViva 08-29-2007 03:28 AM

Could always do a check when they enter and pass it to the serverside somehow.

coreys 08-29-2007 03:33 AM

Quote:

Originally Posted by DustyPorViva (Post 1344444)
Could always do a check when they enter and pass it to the serverside somehow.

I'd prefer not to do triggers on already cpu-intensive serverside baddies.


All times are GMT +2. The time now is 09:55 PM.

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