Jump to content

rhizokeel

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by rhizokeel

  1. I use 2015-11-04ragexe client. I dunno how to change this to english. All is well except for this. Please help. Thank you

    how.PNG

     

     

    EDIT: Already figured it out, just by renaming. XD sorry

  2. My MVP Rankings Only show Top 1 Name.. and the 2nd-10th place doesn't show their names even though it has kills.

    For example:

     

    Top 1 Rhizokeel with 50 MVP killed.

    Top 2  with 33 MVP killed.

    Top 3  with 20 MVP killed.

    Top 4  with 5 MVP killed.

    Top 5  with 1 MVP killed.

    and so on

     

    Here is my code...

     

    -	script	Rank MvP	-1,{
    
    OnInit:
    
    
    setarray .mobid[0],1511,1647,1785,1630,1399,1039,1874,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,1708,1312,1751,1685,1648,1917,1658;
    set .a, 1; // [ 1 - Enable global announcement on MvP kill ] [ 0 - Disable global announcement ]
    set $@top, 10; // Number of top rankings that will be shown.
    end;
    
    OnNPCKillEvent:
    if (getgmlevel() > 10) end;
    
    for (set .@c, 0; .@c < getarraysize(.mobid); set .@c, .@c + 1) { if (killedrid == .mobid[.@c]) set .@s, 1; } // Check MvP
    if (!.@s) end;
    if (.a) announce "The user [" +strcharinfo(0) +"] has killed [" +getmonsterinfo(killedrid,0) +"] in map [" +strcharinfo(3) +"]",bc_blue|bc_all;
    
    query_sql "SELECT char_id FROM mvp_ranking WHERE char_id = "+getcharid(0),@char_id;
    
    if (@char_id == getcharid(0)) {
    	query_sql "SELECT mvp_count FROM mvp_ranking WHERE char_id = "+getcharid(0),@mvptotal;
    	set @mvptotal, @mvptotal +1;
    	query_sql "UPDATE mvp_ranking SET mvp_count = '"+@mvptotal+"' WHERE char_id = "+getcharid(0);
    	} else {
    	set @mvptotal, 1;
    	query_sql "INSERT INTO mvp_ranking (id,char_id,mvp_count) VALUES ('','"+getcharid(0)+"','"+@mvptotal+"')";
    	}
    	end;
    }
    
    prontera,104,97,6	script	MvP Ranking	586,{
    
    OnInit:
    
    waitingroom "MVP Ranking",0;
    
    
    
    set .@menu$, "- Check TOP 10 MVP ranking:- Check my stats";
    if (getgmlevel() >= 80) { set .@menu$, .@menu$ + ":- ^FF0000Reset All Rankings^000000"; }
    
    mes "[Top " +$@top +" MvP Rank]";
    mes "Please select an option.";
    next;
    switch(select(.@menu$)) {
    case 1:
    	query_sql "SELECT mvp_count FROM mvp_ranking ORDER BY mvp_count desc LIMIT "+$@top,@count[0];
    	query_sql "SELECT char_id FROM mvp_ranking ORDER BY mvp_count desc LIMIT "+$@top,@char_id[0];
    	query_sql "SELECT `name` from `char` WHERE `char_id` = '"+@char_id[.@c]+"'",.@names$[0];
    
    	mes "[Top " +$@top +" MvP Rank]";
    	for (set .@c, 0; .@c < $@top; set .@c, .@c + 1){
    		mes "";
    		mes "Top ^FF0000" +(.@c + 1)+"^000000 ^0000FF"+.@names$[.@c]+"^000000 with ^FF0000"+@count[.@c]+"^000000 MVP killed.";
    	}
    	close;
    case 2:
    	query_sql "SELECT `mvp_count` FROM `mvp_ranking` WHERE `char_id` = "+getcharid(0),@amount;
    	if (@amount) {
    		mes "[Top " +$@top +" MvP Rank]";
    		mes "You have killed ^FF0000"+@amount+"^000000 MVP"+( ( .@amount == 1)? "." : "s." );
    	}
    	close;
    case 3:
    	mes "[Top " +$@top +" MvP Rank]";
    	mes "This will delete all existing rankings.";
    	mes "Do you want to proceed?";
    	next;
    	if (select("No:Yes") == 1) end;
    	query_sql "DELETE FROM `mvp_ranking`";
    	mes "[Top " +$@top +" MvP Rank]";
    	mes "All rankings have been reset.";
    	close;
    	}
    	end;
    }

     

  3. On 3/15/2017 at 9:41 PM, Technoken said:

    Maybe show us your script so we can help you.

    prontera.gat,125,75,4	script	Ultimate PvP Warper	843,{
    	if (.pvp_square$=="") donpcevent "Ultimate PVP warper::OnClock0000";
     
    	mes "[PvP Warper]";
    	mes "Which arena do you want to go to?";
    	switch(select("PVP Square ["+getmapusers(.pvp_square$)+"/100]:PVP Nightmare ["+getmapusers("guild_vs3")+"/100]:PVP LowLevel 80 Below ["+getmapusers("guild_vs1")+"/100]:PVP NoPotion ["+getmapusers("pvp_y_8-2")+"/100]")) {
    	case 1:	// PVP Square
    		if (getmapusers(.pvp_square$) > 99) callsub S_full;
    		
    		warp .pvp_square$,0,0;
    		end;
     
    	case 2:	// PVP Nightmare
    		if (getmapusers("guild_vs3") > 99) callsub S_full;
    		
    		warp "guild_vs3",0,0;
    		end;
     
    	case 3:	// PVP LowLevel
    		if (getmapusers("guild_vs1") > 99) callsub S_full;
    		if (BaseLevel > 80) { // Edit 150 to any maximum Lvl of a player can enter this room
    			mes "only Base Level 1 - 80 may enter.";
    			close;
    		}
    		
    		warp "guild_vs1",0,0;
    		end;
     
    	case 4:	// PVP NoPotion
    		if (getmapusers("pvp_y_8-2") > 99) callsub S_full;
    		for( set .@i,0; .@i<getarraysize(.NoPotion_ids); set .@i,.@i+1 ) {
    			if (countitem(.NoPotion_ids[.@i])) {
    				mes "You cannot bring Potions or other Healing items in this pvp.";
    				close;
    			}
    		}
    		
    		warp "pvp_y_8-2",0,0;
    		end;
     
    	}
     
    S_full:
    	mes " ";
    	mes "I'm sorry, this arena is full.  Please try again later...";
    	close;
    S_payment:
    	if (Zeny < (200*BaseLevel + 800)) {
    		mes "You don't have enough zeny.";
    		mes "It costs "+(200*BaseLevel + 800)+" zeny for you to enter.";
    		close;
    	}
    	set Zeny, Zeny - (200*BaseLevel + 800);
    	return;
     
    OnInit:
    	   waitingroom "PvP Warper",0;
        end;
    OnClock0000:
    	// set the "PVP Square" map, based on day of the weeek
    	switch(gettime(4)) {
    	case 0:	// Sunday
    	case 1:	// Monday
    		set .pvp_square$, "guild_vs2";
    		break;
    	case 2:	// Tuesday
    	case 3:	// Wednesday
    		set .pvp_square$, "guild_vs5";
    		break;
    	case 4:	// Thursday
    	case 5:	// Friday
    		set .pvp_square$, "guild_vs4";
    		break;
    	case 6:	// Saturday
    		set .pvp_square$, "guild_vs1-2";
    		break;
    	}
     
    	// items not allowed in PVP NoPotion
    	setarray .NoPotion_ids[0], 607, 608 ;
     
    	// items not allowed in Non Donator PVP
    	setarray .NoDonator_ids[0], 2410, 1530;
    	end;
    }
     
    izlude.gat,134,90,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#13	843
      
      // Mapflags
    guild_vs2	mapflag	pvp
    guild_vs5	mapflag	pvp
    guild_vs4	mapflag	pvp
    guild_vs1-2	mapflag	pvp
     
    guild_vs3	mapflag	pvp
    guild_vs1	mapflag	pvp
    pvp_y_8-2	mapflag	pvp
    1@orcs	mapflag	pvp
     
    guild_vs3	mapflag	pvp_nightmaredrop	random,equip,300

    There you go. I only put the izlude.gat

  4. This is the best! Keep up the good work! :) From this day i became your fan hehe, That intro vid before login and gacha is sugoi! I was hoping to use your script on gacha :( really interested.. anyways Goodluck! if i'm still a ragnarok player i would want to play in your server because of the features. More power!

  5. On 1/10/2017 at 10:57 AM, zackdreaver said:

    Can't see them, maybe my browser has a problem

     

    Alright I can see your ss now after changing browser.

    That text is not part of msgstringtable.txt, rather it need to be diffed with diff patcher like NEMO.

    I see you're korean, if you set your langtype to 0 you will figure out what the text means.

    Default client limiting player from buying more than 10 itemss.

    I'm really sorry but i used all the langtypes but it doesn't fix my problem.. anyways, can i just ask what is your recommended langtype for an english version server?

×
×
  • Create New...