Jump to content

DEsMOn

Members
  • Posts

    138
  • Joined

  • Last visited

Posts posted by DEsMOn

  1. Hellow can any 1 guide to fix this?

    [Error]: buildin_dispbottom: fatal error ! player not attached!
    [Debug]: Function: dispbottom (1 parameter):
    [Debug]: Data: string value="You got the Antonio Leader's christmas gift!"
    [Debug]: Source (NPC): AntonioInvasion (invisible/not on a map)
    [Debug]: Source (NPC): AntonioInvasion (invisible/not on a map)
     

    AntonioInvasion.txt

  2. 4 hours ago, Tokei said:

    The error you received, "Server received crash signal! Attempting to save all online characters!", is a generic error that means absolutely nothing besides "your server crashed". You will always get this same error. You most likely have two unrelated crashes there.

    As cook1e said above, you want to run your server with gdb (there is a link provided in his post that explains how to use it). Gdb is a debugging tool that will give you a stack trace. You will get the crash reason, followed by the line in your source code that crashed the server, followed by the functions that called your code step by step. To print the stack trace, you will want to use "bt full" after the crash.

    You should also always run your server with gdb as you can't predict when a crash will happen.

    Once you have the stack trace, you can share it here and people can tell you how to fix your code. Or they'll ask you to provide the code surrouding the crash. Or, if the error is obvious, you might be able to fix it yourself. But either way, we can't help you without a gdb stack trace. Goodluck!

    When i logged in VNC, i've seen something which likes @reloadmobdb..continued with

    [Error]: Server received crash signal! Attempting to save all online characters! Segmentation fault

    thing is no 1 is there to do @reloadmobdb then how it was doing auto reloadmob db? so i replaced old mob db txt from back up n recompiled n restarted server and did @reloadmobdb no crash happend. My server uses 2 mob db 1 ) is mob_db.yml & 2) is mob_db.txt during test never seen those issues but frequently this started happening...

     

    Asked by DEsMOn

  3. 4 hours ago, Tokei said:

    The error you received, "Server received crash signal! Attempting to save all online characters!", is a generic error that means absolutely nothing besides "your server crashed". You will always get this same error. You most likely have two unrelated crashes there.

    As cook1e said above, you want to run your server with gdb (there is a link provided in his post that explains how to use it). Gdb is a debugging tool that will give you a stack trace. You will get the crash reason, followed by the line in your source code that crashed the server, followed by the functions that called your code step by step. To print the stack trace, you will want to use "bt full" after the crash.

    You should also always run your server with gdb as you can't predict when a crash will happen.

    Once you have the stack trace, you can share it here and people can tell you how to fix your code. Or they'll ask you to provide the code surrouding the crash. Or, if the error is obvious, you might be able to fix it yourself. But either way, we can't help you without a gdb stack trace. Goodluck!

    I tried installing GDB , after that step doens't work. to be frank have no knowledge about this stuffs. If your okay can u help me out?

  4. 19 minutes ago, cook1e said:

    Something is crashing the map-server, run your server with gdb and once it crashes upload the output here. https://github.com/rathena/rathena/wiki/GDB

    Okay,

    But i noticed twice. when i did @reloadmobdb server crashes with same error in  cmd.

    But the problem is this happened before also when i didn't event use @reloadmobdb. So confused why its happening...

  5. Hellow Scripters

    Im getting this issue in CMD how to fix this?

    [Warning]: npc_event: player's event queue is full, can't add event 'Event_Bombring::OnPCDieEvent' !
    [Warning]: npc_event: player's event queue is full, can't add event 'DM PvP Warper#mid::OnPCDieEvent' !
    [Warning]: npc_event: player's event queue is full, can't add event 'DM PvP Warper#rac3::OnPCDieEvent' !
    [Warning]: npc_event: player's event queue is full, can't add event 'DM PvP Warper#mal::OnPCDieEvent' !
    [Warning]: npc_event: player's event queue is full, can't add event 'rfyl_Trap::OnPCDieEvent' !
    [Warning]: npc_event: player's event queue is full, can't add event 'Event_NvZ::OnPCDieEvent' !
     

  6. On 4/24/2022 at 4:25 PM, Chaos92 said:

    Its regarding the skilldescript.lub, skillinfolist.lub and skilltreeview.lub in skillinfoz from your GRF so pre-renewal most probably doesnt have this.

    You need to add the info manually. You can get it from here : https://github.com/llchrisll/ROenglishRE/tree/master/Renewal/data/luafiles514/lua files/skillinfoz

    Search for MC_CARTDECORATE

    skilldescript.lub

    skillinfolist.lub

    skilltreeview.lub

     

    Thank you for the reply sir, Will check and update soon...

    Update :- Still same.. nothing happend

     

     

  7. Hello Guys,

    I'm Getting this in my CMD how to solve this?

    [Warning]: script:query_sql: Too many columns, discarding last 3 columns.
    [Debug]: Source (NPC): MVPLadder (invisible/not on a map)
     

    /---- MvP Ladder Logic Script
    
    -	script	MVPLadder	-1,{
    
    OnInit:
    // Config
    	.map_killannounce = 1; // announce when MVP is dead on the map where the MVP was killed : 0 - off, 1 - o
    	.killannounce = 1; // announce when MVP is dead globally : 0 - off, 1 - on
    	.gmnokill = 0; // GMs are not suppose to kill MVP. A GM with <this number> level or higher will do nothing. IF set to 60, GM60 and above kill any player will not get anything : 0 - off
    
    //	.min_gm_menu = 90; // minimum level of GM can use the GM menu on ladder npc
    
    	.showtotal = 20; // show the length of ladder.
    	.showpage = 10;	// set the views per page.
    
    	.showstatue = 5; // number of statues. This number must match with the number of duplicates at the end of the script
    	.fix_custom_sprite = false; // if your server has custom animated sprite that overlaps the sprite animation repeatedly on the statues, enable this
    
    // Config ends ------------------------------------------------------------------------------------------
    
    //	to prevent bug happen
    	if (.gmnokill <= 0) .gmnokill = 100;
    
    	sleep 1;
    	
    OnTimer30000: // refresh statues every 30 seconds. Note the `char` table is unrealiable, player still need to perform certain task to save the character -> see 'save_settings' in conf\map-server.conf
    	[email protected]$ = "SELECT `char`.`char_id`, `char`.`name`, `char`.`guild_id`, `char`.`class`,"
    			 + "`char`.`sex`, `char`.`hair`, `char`.`hair_color`, `char`.`clothes_color`,"
    			 + "`char`.`body`, `char`.`head_top`, `char`.`head_mid`, `char`.`head_bottom`, `char`.`robe`,"
    	         + "SUM(`mvpladder`.`kills`)"
    	         + "FROM `char` RIGHT JOIN `mvpladder` ON `char`.`char_id` = `mvpladder`.`char_id` GROUP BY `char`.`char_id` ORDER BY `kills` DESC LIMIT "+ .showstatue;
    	[email protected] = query_sql([email protected]$, [email protected], [email protected]$, [email protected]_id, [email protected], [email protected]$, [email protected], [email protected]_color, [email protected]_color, [email protected], [email protected]_top, [email protected]_mid, [email protected]_bottom, [email protected], [email protected]);
    	if (.fix_custom_sprite) {
    		for ([email protected] = 0; [email protected] < [email protected]; [email protected]) {
    			setunitdata .statue[[email protected] +1], UNPC_HEADTOP, 0;
    			setunitdata .statue[[email protected] +1], UNPC_HEADMIDDLE, 0;
    			setunitdata .statue[[email protected] +1], UNPC_HEADBOTTOM, 0;
    			setunitdata .statue[[email protected] +1], UNPC_ROBE, 0;
    		}
    	}
    	for ([email protected] = 0; [email protected] < [email protected]; [email protected]) {
    		setunitdata .statue[[email protected] +1], UNPC_CLASS, [email protected][[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_SEX, ([email protected]$[[email protected]] == "F")? SEX_FEMALE:SEX_MALE;
    		setunitdata .statue[[email protected] +1], UNPC_HAIRSTYLE, [email protected][[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_HAIRCOLOR, [email protected]_color[[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_CLOTHCOLOR, [email protected]_color[[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_BODY2, [email protected][[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_HEADTOP, [email protected]_top[[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_HEADMIDDLE, [email protected]_mid[[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_HEADBOTTOM, [email protected]_bottom[[email protected]];
    		setunitdata .statue[[email protected] +1], UNPC_ROBE, [email protected][[email protected]];
    		setnpcdisplay "mvp_ladder_statue#"+([email protected] +1), [email protected]$[[email protected]];
    		.statue_name$[[email protected] +1] = [email protected]$[[email protected]];
    		.statue_guild$[[email protected] +1] = getguildname([email protected]_id[[email protected]]);
    		.statue_kills[[email protected] +1] = [email protected][[email protected]];
    	}
    	for ([email protected] = [email protected]; [email protected] < .showstatue; [email protected])
    		setunitdata .statue[[email protected] +1], UNPC_CLASS, HIDDEN_WARP_NPC;
    	initnpctimer;
    	end;
    
    OnNPCKillEvent: // Logic to detect when a MvP is killed
    	if (getmonsterinfo(killedrid, MOB_MVPEXP) > 0) {
    		[email protected]$ = "SELECT char_id, mob_id, kills FROM mvpladder WHERE char_id = '" + getcharid(0) + "' AND mob_id = '" + killedrid + "';";
    		if (query_sql([email protected]$) > 0) { // Exist a kill of that MVP so +1 to kill count
    			[email protected]$ = "UPDATE mvpladder SET kills = kills + 1 WHERE char_id = '" + getcharid(0) + "' AND mob_id = '" + killedrid + "'";
    		} else { // Create a new kill of specific MVP
    			//[email protected]$ = "INSERT INTO mvpladder (char_id, mob_id, kills) VALUES ('" + getcharid(0) + "','" + killedrid + "','1');";
    			[email protected]$ = "INSERT INTO mvpladder (`char_id` , `mob_id` , `kills`) VALUES ('" + getcharid(0) + "','" + killedrid + "','1');";
    		}
    		query_sql([email protected]$);
    	}
    	end;
    }
    
    //---- MvP Ladder Info NPC
    
    prontera,169,175,5	script	MVP Ladder	512,{
    	[email protected]$ = strnpcinfo(0);
    	while (1) {
    		switch (select("^f44336Top MVP killer list^000000","^E69138Top MVP killed list^000000","My Information")) {
    		case 1:
    			[email protected]$ = "SELECT t1.char_id, SUM(t1.kills), t2.name " +
    								 "FROM `mvpladder` t1 " +
    								 "INNER JOIN `char` t2 " +
    								 "ON t1.char_id = t2.char_id " +
    								 "GROUP BY t1.char_id " +
    								 "ORDER BY t1.kills DESC " +
    								 "LIMIT " + getvariableofnpc(.showtotal, "MVPLadder") + ";";
    			[email protected] = query_sql([email protected]$, [email protected], [email protected], [email protected]$);
    			if ([email protected]) {
    				mes "The ladder currently is empty.";
    				next;
    			}
    			for ([email protected] = 0; [email protected] < [email protected]; [email protected] += getvariableofnpc(.showpage,"MVPLadder")) {
    				for ([email protected] = [email protected]; [email protected] < (getvariableofnpc(.showpage,"MVPLadder") + [email protected]) && [email protected] < [email protected]; [email protected])
    					mes "^996600" + ([email protected]+1) + ": ^006699" + [email protected]$[[email protected]] + " ^00AA00[^FF0000" + [email protected][[email protected]] + " MvP^00AA00 killed]^000000";
    				next;
    			}
    			break;
    			
    		case 2:
    			[email protected]$ = "SELECT char_id, mob_id, SUM(kills) " +
    								 "FROM `mvpladder` " +
    								 "GROUP BY mob_id " +
    								 "ORDER BY kills DESC " +
    								 "LIMIT " + getvariableofnpc(.showtotal, "MVPLadder") + ";";
    			[email protected] = query_sql([email protected]$, [email protected], [email protected], [email protected]);
    			if ([email protected]) {
    				mes "The ladder currently is empty.";
    				next;
    			}
    			for ([email protected] = 0; [email protected] < [email protected]; [email protected] += getvariableofnpc(.showpage,"MVPLadder")) {
    				for ([email protected] = [email protected]; [email protected] < (getvariableofnpc(.showpage,"MVPLadder") + [email protected]) && [email protected] < [email protected]; [email protected]) {
    					mes "^996600" + ([email protected]+1) + ": ^006699" + strmobinfo(1, [email protected][[email protected]]) + " ^FF0000MvP ^00AA00[Killed ^FF0000" + [email protected][[email protected]] + " ^00AA00times]^000000";
    				}
    				next;
    			}
    			query_sql("SELECT SUM(kills) FROM mvpladder;", [email protected]);
    			mes "Congratulation, "+strcharinfo(0) +" check your information below";
    			mes "^006699Total MvP Kills:^000000 [^FF0000" + [email protected][0] + " ^00AA00kills]^000000";
    			break;
    			
    		case 3:
    			[email protected]$ = "SELECT char_id, mob_id, SUM(kills) " +
    								"FROM `mvpladder` " +
    								"WHERE char_id = '" + getcharid(0) + "'" +
    								"ORDER BY kills DESC;";
    			[email protected] = query_sql([email protected]$, [email protected], [email protected], [email protected]);
    			if ([email protected]) {
    				mes "The ladder currently is empty.";
    				next;
    			}
    			[email protected] = 0;
    			for ([email protected] = 0; [email protected] < [email protected]; [email protected] += getvariableofnpc(.showpage,"MVPLadder")) {
    				for ([email protected] = [email protected]; [email protected] < (getvariableofnpc(.showpage,"MVPLadder") + [email protected]) && [email protected] < [email protected]; [email protected] ) {	
    					mes "^996600" + ([email protected]+1) + ": ^006699" + strmobinfo(1, [email protected][[email protected]]) + " ^FF0000MvP ^00AA00[Killed ^FF0000" + [email protected][[email protected]] + " ^00AA00times]^000000";
    					[email protected] = [email protected] + [email protected][[email protected]];
    				}
    				next;
    			}
    			mes "Congratulation, "+strcharinfo(0) +" check your information below";
    			mes "^006699Total Own MvP Kills:^000000 [^FF0000" + [email protected] + " ^00AA00kills]^000000";
    			break;
    		case 4:
    			callfunc "qsho2op",1;
    	end;
            }
    OnInit:
    	initnpctimer;
    	end;
    OnTimer1000:
    	showscript("MVP Ladder");
    	setnpctimer 0;
    	end;
        }
    close;
    
    }
    
    //---- MSG board NPCs
    
    -	script	mvp_ladder_statue	-1,{
    	[email protected] = getelementofarray(getvariableofnpc(.npcgid, "MVPLadder"), getnpcid(0));
    	mes "^996600[TOP "+ [email protected] +"]";
    	mes "^006699Name : "+ getelementofarray(getvariableofnpc(.statue_name$, "MVPLadder"), [email protected]);
    	[email protected]$ = getelementofarray(getvariableofnpc(.statue_guild$, "MVPLadder"), [email protected]);
    	mes "^00AAAAGuild : "+(([email protected]$ == "null")? "^AAAAAANone": [email protected]$);
    	mes "^00AA00Total MVP Kills : ["+ getelementofarray(getvariableofnpc(.statue_kills, "MVPLadder"), [email protected]) +"]";
    	close;
    
    OnInit:
    	[email protected] = strnpcinfo(2);
    	set getvariableofnpc(.statue[[email protected]], "MVPLadder"), getnpcid(0);
    	set getvariableofnpc(.npcgid[getnpcid(0)], "MVPLadder"), [email protected];
    	end;
    }
    
    
    prontera,176,175,3	duplicate(mvp_ladder_statue)	mvp_ladder_statue#1	1_F_MARIA
    prontera,179,172,3	duplicate(mvp_ladder_statue)	mvp_ladder_statue#2	1_F_MARIA
    prontera,182,169,3	duplicate(mvp_ladder_statue)	mvp_ladder_statue#3	1_F_MARIA
    prontera,185,166,3	duplicate(mvp_ladder_statue)	mvp_ladder_statue#4	1_F_MARIA
    prontera,188,163,3	duplicate(mvp_ladder_statue)	mvp_ladder_statue#5	1_F_MARIA
    
    prontera,176,175,5	script	 #top1	111,{
    OnInit:
    	initnpctimer;
    	end;
    OnTimer1000:
    	showscript("Top-1 MVP Killer");
    	setnpctimer 0;
    	end;
    }
    
    prontera,179,172,5	script	 #top2	111,{
    OnInit:
    	initnpctimer;
    	end;
    OnTimer1000:
    	showscript("Top-2 MVP Killer");
    	setnpctimer 0;
    	end;
    }
    
    prontera,182,169,5	script	 #top3	111,{
    OnInit:
    	initnpctimer;
    	end;
    OnTimer1000:
    	showscript("Top-3 MVP Killer");
    	setnpctimer 0;
    	end;
    }
    
    prontera,185,166,5	script	 #top4	111,{
    OnInit:
    	initnpctimer;
    	end;
    OnTimer1000:
    	showscript("Top-4 MVP Killer");
    	setnpctimer 0;
    	end;
    }
    
    prontera,188,163,5	script	 #top5	111,{
    OnInit:
    	initnpctimer;
    	end;
    OnTimer1000:
    	showscript("Top-5 MVP Killer");
    	setnpctimer 0;
    	end;
    }

     

  8. 1 hour ago, cook1e said:
    -	script	restrict_gm	-1,{
    OnPCLoadMapEvent:
    	if(getgroupid() == 4) {
    		for(.@i = 0; .@i < getarraysize(.map_list$); ++.@i) {
    			getmapxy(.@map$,.@x,.@y,BL_PC);
    			if(.@map$ == .map_list$[.@i]) {
    				dispbottom "You are not allowed in this map.";
    				if(.savepoint)
    					warp "SavePoint",0,0;
    				else
    					warp "prontera",155,180;
    				end;
    			}
    		}
    	}
    end;
    	
    OnInit:
    	.savepoint = true; // set to false if you don't want to warp gms to savepoint
    	setarray .map_list$, "map1", "map2"; // add maps you don't want your gms to warp
    	end;
    }
    
    map1	mapflag	loadevent
    map2	mapflag	loadevent
    
    // P.S: Every map you add in array .map_list$ needs a mapflag loadevent to work.

     

    Dear Sir,

    I checked its working for 1st map only i.e pay_fild11 not for others can u fix it?

    -	script	restrict_gm	-1,{
    OnPCLoadMapEvent:
    	if(getgroupid() == 4) {
    		for([email protected] = 0; [email protected] < getarraysize(.map_list$); [email protected]) {
    			getmapxy([email protected]$,[email protected],[email protected],BL_PC);
    			if([email protected]$ == .map_list$) {
    				dispbottom "You are not allowed in this map.";
    				if(.savepoint)
    					warp "SavePoint",0,0;
    				else
    					warp "prontera",155,180;
    				end;
    			}
    		}
    	}
    end;
    	
    OnInit:
    	.savepoint = true; // set to false if you don't want to warp gms to savepoint
    	setarray .map_list$, "pay_fild11", "pay_fild04", "niflheim", "moc_fild17", "xmas_fild01", "mjolnir_04","gef_fild02", "gef_fild10", "gef_fild14", "ve_fild01", "ve_fild02", "ra_fild02", "ra_fild03", "pay_dun04", "prt_sewb4", "anthell02", "beach_dun", "ama_dun03", "xmas_dun02", "gef_dun02", "lou_dun03", "gon_dun03", "mosk_dun03", "tur_dun04", "moc_pryd04", "in_sphinx5", "ayo_dun02", "ein_dun02", "jupe_core", "gl_chyard", "abyss_03", "abyss_02", "xmas_fild01", "lhz_dun02", "lhz_dun03", "kh_dun02", "ra_san05", "dic_dun02", "odin_tem03", "treasure02"; // add maps you don't want your gms to warp
    	end;
    }
    
    
    
    
    //MVP maps
    niflheim	mapflag	loadevent
    pay_fild11	mapflag	loadevent
    moc_fild17	mapflag	loadevent
    xmas_fild01	mapflag	loadevent
    mjolnir_04	mapflag	loadevent
    gef_fild02	mapflag	loadevent
    gef_fild10	mapflag	loadevent
    gef_fild14	mapflag	loadevent
    ve_fild01	mapflag	loadevent
    ve_fild02	mapflag	loadevent
    ra_fild02	mapflag	loadevent
    ra_fild03	mapflag	loadevent
    pay_dun04	mapflag	loadevent
    prt_sewb4	mapflag	loadevent
    anthell02	mapflag	loadevent
    beach_dun	mapflag	loadevent
    ama_dun03	mapflag	loadevent	
    xmas_dun02	mapflag	loadevent
    gef_dun02	mapflag	loadevent
    lou_dun03	mapflag	loadevent
    gon_dun03	mapflag	loadevent
    mosk_dun03	mapflag	loadevent	
    tur_dun04	mapflag	loadevent
    treasure02	mapflag	loadevent
    moc_pryd04	mapflag	loadevent
    in_sphinx5	mapflag	loadevent
    ayo_dun02	mapflag	loadevent
    ein_dun02	mapflag	loadevent
    jupe_core	mapflag	loadevent
    gl_chyard	mapflag	loadevent	
    abyss_03	mapflag	loadevent
    abyss_02	mapflag	loadevent	
    bra_dun02	mapflag	loadevent
    lhz_dun02	mapflag	loadevent
    lhz_dun03	mapflag	loadevent
    kh_dun02	mapflag	loadevent
    ra_san05	mapflag	loadevent
    dic_dun02	mapflag	loadevent
    odin_tem03	mapflag	loadevent
    pay_fild04	mapflag	loadevent
    
    // P.S: Every map you add in array .map_list$ needs a mapflag loadevent to work.

     

×
×
  • Create New...

Important Information

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