Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   New Server Options Features (https://forums.graalonline.com/forums/showthread.php?t=134260411)

xAndrewx 09-02-2010 10:08 PM

New Server Options Features
 
***global msg Tigairius@Kingdoms iPhone: Hello! Quite a few new serveroption flags have been added recently. In order to promote familiarizing yourself with them (especially classic servers), you may want to refer here: http://www.graal.net/index.php?title...Player_Syncing

Some good ones if you didn't already know! :)

DustyPorViva 09-02-2010 10:24 PM

So the sync one does what? Let you change the distance cutoff of player data being sent to other players? 192 = 3 levels so I assume so... I imagine increasing this too high will create a lot more bandwidth?

fowlplay4 09-02-2010 10:31 PM

I believe this (sync vars) is only useful for iPhone Servers, so iPhone clients don't waste CPU processing off-screen players.

DustyPorViva 09-02-2010 10:32 PM

Quote:

Originally Posted by fowlplay4 (Post 1598333)
I believe this is only useful for iPhone Servers, so iPhone clients don't waste CPU processing off-screen players.

I imagine so... it would be useful for my multilayered house except it'd have to apply to the whole server, instead of specifically :(

Tigairius 09-02-2010 10:45 PM

Quote:

Originally Posted by DustyPorViva (Post 1598334)
I imagine so... it would be useful for my multilayered house except it'd have to apply to the whole server, instead of specifically :(

It is applied to the whole server.

Quote:

Originally Posted by DustyPorViva (Post 1598331)
So the sync one does what? Let you change the distance cutoff of player data being sent to other players?

Yes.

Skyld 09-02-2010 11:07 PM

The sync distance is indeed useful on iPhone because the client is not aware of any players outside of the sync distance, therefore there is less network processing to do. Beforehand it was using a huge amount of CPU time on iPhone just to process all the packets coming in. Typically on iPhone we are using a sync distance near to that of the visible on-screen area so that you only get updates for players that you can see.

The sync distance always applies on GMAPs, and as the list shows, it is optional for inside levels. I think you need to restart the gserver for this option to take correct effect without causing issues.

MrOmega 09-03-2010 12:04 AM

Gah still no feature so when changing pot tile it doesn't drop the default health? >:[

Crow 09-03-2010 05:18 PM

Quote:

Originally Posted by MrOmega (Post 1598352)
Gah still no feature so when changing pot tile it doesn't drop the default health? >:[

That's hardcoded I believe.

The syncing stuff seems very nice. I'll have to try that :redface:

Admins 09-04-2010 08:49 PM

Quote:

Originally Posted by DustyPorViva (Post 1598334)
I imagine so... it would be useful for my multilayered house except it'd have to apply to the whole server, instead of specifically :(

The server options only specify the defaut value for players. A client can change the distance by calling following function:
PHP Code:

sendtext("syncoptions","distance", {horizontalvertical}); 

Quote:

Originally Posted by MrOmega (Post 1598352)
Gah still no feature so when changing pot tile it doesn't drop the default health? >:[

The only way to do that right now is to add itemdropevents=true in the server options, then the Control-NPC gets an event onItemDrop(level,x,y,itemname) each time an item is dropped. This is however disabling all classic items.

MrOmega 09-04-2010 09:50 PM

Quote:

Originally Posted by Stefan (Post 1598789)
The only way to do that right now is to add itemdropevents=true in the server options, then the Control-NPC gets an event onItemDrop(level,x,y,itemname) each time an item is dropped. This is however disabling all classic items.

Finally a way! Oh I could kiss you right now! :D

MrOmega 10-01-2010 05:59 PM

Quote:

Originally Posted by Stefan (Post 1598789)
The only way to do that right now is to add itemdropevents=true in the server options, then the Control-NPC gets an event onItemDrop(level,x,y,itemname) each time an item is dropped. This is however disabling all classic items.

I'm still confused how to disable all classic items. My NPC server gets the event when an item is dropped, the actual item doesn't show but I still hear a drop sound and the gralat noise sometimes. I've tried the old fashion take/take2/removeitem etc, nothing works. How can I get it so it doesn't make those sounds...

Basically how do I access the object in param[ 3] so I can completely destroy it.

EDIT: I'm working with the default pot;

MrOmega 10-04-2010 05:37 AM

Bump


All times are GMT +2. The time now is 11:51 PM.

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