Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-10-2010, 07:45 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
iPhone functions & Disabling Classic stuff

If you're not using iphone, I wouldn't use these features

Server Options:
HTML Code:
  syncdistancex=
  syncdistancey=
  syncbydistanceinside=
Define the radius (in tiles) at which players are synced to the screen. This is used for GMAPs to reduce players from being drawn outside of the specified radius. By default, it is being drawn at 192x192.

HTML Code:
syncdistanceprojectiles=
Same as above, define the radius (in tiles)


Flags & Script
HTML Code:
  disablenpchits = [Boolean]
  disablenpconnpchits = [Boolean]
  disableactionprojectile = [Boolean]
  disableactionprojectile2 = [Boolean]
(Self explanatory)

We can now define how far you see people, depending on your screen size.
HTML Code:
  if (screenwidth > 480)
    sendtext("syncoptions", "distance",  {int(screenwidth/16/2)+4, int(screenheight/16/2)+4}); 
For example, 480x320 screen resolution is 30x20 tiles big. Basically, the client doesn't know of any player outside that sync distance. If you are on a gmap with 1000 players you only get data from players on your screen. (the only exception are projectiles)
__________________

Last edited by xAndrewx; 12-10-2010 at 09:06 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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