Jump to content

Almond Snicker

Members
  • Content Count

    9
  • Joined

  • Last visited

Posts posted by Almond Snicker


  1. Wondering @4144 maybe you have inputs on this

    will autosave_time release more load from the map serve if you make it more that your avg players? autosave_time > avg players? with avg players of 300 will  600(auto save time) make it better?

    Also for minsave_time by increasing it will slow down the saving time. will it be better? if you have 300 players avg?

    		// Database autosave time
    		// All characters are saved on this time in seconds (example:
    		// autosave of 60 secs with 60 characters online -> one char is
    		// saved every second)
    		autosave_time: 300
    
    		// Min database save intervals (in milliseconds)
    		// Prevent saving characters faster than at this rate (prevents
    		// char-server save-load getting too high as character-count
    		// increases)
    		minsave_time: 100

     


  2. Hi, 

    I'm currently having issues on my cpu usage, it spikes up to 80% at some point and it causes lag to the server. 
    Couple of questions to ask:
    1.) Does an unstable client version affect the cpu usage of map?
    2.) Having mysql Log-error on htop is normal?
    3.) what are the possible reasons of the spiking of cpu usage?

    Currently running game-64 of OVH hosted in SG. i7-7700 upto 4.5ghz and 64gb ram dedicated.

    Here's what it look like:
    image.thumb.png.0695365006acf128be1a84cae810b664.png

     


  3. On 9/22/2020 at 2:40 AM, AnnieRuru said:

    https://upaste.me/691b80

    emistry's script should work though ...

     

    - script Sample FAKE_NPC,{ OnPCLoadMapEvent: .@map$ = strcharinfo(PC_MAP); .@guild_id = getcharid(CHAR_ID_GUILD); if (getmapflag(.@map$, MF_GVG_CASTLE) && .@guild_id) { if (getmapguildusers( .@map$,.@guild_id ) > 2){ mes "Max Guild Member can stay on this map exceed."; close2; warp "prontera",155,181; } } end; } aldeg_cas01 mapflag gvg_castle aldeg_cas01 mapflag loadevent

    
    -	script	Sample	FAKE_NPC,{
    OnPCLoadMapEvent:
    	.@map$ = strcharinfo(PC_MAP);
    	.@guild_id = getcharid(CHAR_ID_GUILD);
    
    	if (getmapflag(.@map$, MF_GVG_CASTLE) && .@guild_id) {
    		if (getmapguildusers( .@map$,.@guild_id ) > 2){
    			mes "Max Guild Member can stay on this map exceed.";
    			close2;
    			warp "prontera",155,181;
    		}
    	}
    	end;
    }
    
    aldeg_cas01	mapflag	gvg_castle
    aldeg_cas01	mapflag	loadevent

     

    now astralprojection's script

    .... also works when set .max, 2; ...

     

    ... I have no idea why doesn't work for you,

    - I open 6 client, 3 client join guild A, other 3 client join guild B

    - guild A only can only enter 2 guild members, guild B also only can enter 2 guild members, always 1 getting kick

     

    if it doesn't work this way, then what is the behavior you want ?

    Could Emistry's script be modified to limit a certain job class instead of  the whole guild limite? EX. Limit wizards to 5 only upon entering the map and warps the exceeded job classes to savepoint? or maybe yours @astralprojection

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.