Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Announcements (https://forums.graalonline.com/forums/forumdisplay.php?f=240)
-   -   GServer and NPCServer update (https://forums.graalonline.com/forums/showthread.php?t=134257836)

Admins 02-01-2010 06:49 PM

GServer and NPCServer update
 
The gserver and npcserver have been updated. The classic servers have been restarted, hosted and private servers can use the "/global servercontrol this restart" command. It is recommended to restart very soon because of a bug in the npcserver.

Updates:
- speed improvements in the gserver to handle more players
- fixed a bug with "this.savelocally=true;": updating a level with such npcs was duplicating them when the level was in memory
- onPlayerKilled(victim, killer) event for the classic hitpoint system
- when you load a player object with new TServerPlayer(accountname) (don't forget to call destroy() on it after using it) you can now access the level name via "TServerPlayer.levelname". You can also change that level for offline players although it's in beta (you can set x and y of offline players only to values between 0 and 64 so it will not work fine with gmaps).

Immolate 02-01-2010 06:55 PM

Nice work :) The added event will make life so much easier for me.

Crow 02-01-2010 07:25 PM

Quote:

Originally Posted by Stefan (Post 1553589)
- fixed a bug with "this.savelocally=true;": updating a level with such npcs was duplicating them when the level was in memory

God dammit, finally!

Matt 02-01-2010 07:50 PM

Thank you. ^^

DustyPorViva 02-01-2010 08:39 PM

No sign data fix? :(

Admins 02-03-2010 03:36 PM

Quote:

Originally Posted by DustyPorViva (Post 1553607)
No sign data fix? :(

Sign data?

DustyPorViva 02-03-2010 03:39 PM

Quote:

Originally Posted by Stefan (Post 1553937)
Sign data?

http://forums.graalonline.com/forums...hp?t=134257192

Sign data is not loaded on the clientside, and not even loaded on the serverside... or at least I haven't been able to get them to load at all.

Cubical 05-26-2010 09:43 PM

Quote:

Originally Posted by Stefan (Post 1553589)
- onPlayerKilled(victim, killer) event for the classic hitpoint system

I have tried echoing the parameters of this both serverside and clientside and cannot seem to get it to work. Could someone post a working example.

cbk1994 05-26-2010 10:14 PM

Quote:

Originally Posted by Cubical (Post 1578811)
I have tried echoing the parameters of this both serverside and clientside and cannot seem to get it to work. Could someone post a working example.

They're probably player objects.

PHP Code:

function onPlayerKilled(victimkiller) {
  echo(
victim.communityname " was killed by " killer.communityname;



Cubical 05-26-2010 10:23 PM

even just doing echo("blah"); inside onPlayerKilled() doesn't work.

xAndrewx 05-26-2010 10:48 PM

V6

cbk1994 05-26-2010 10:49 PM

Quote:

Originally Posted by xAndrewx (Post 1578831)
V6

...it's serverside o.o

xAndrewx 05-26-2010 10:54 PM

weird o-o

Have you restarted your server?

Cubical 05-26-2010 11:35 PM

I think testbed needs to be restarted

Bell 05-27-2010 01:24 AM

I restarted it a couple hours ago.


All times are GMT +2. The time now is 10:06 AM.

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