Jump to content

Madeon

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by Madeon

  1. 3 minutes ago, OptimusM said:
    
    prontera,164,174,5	script	pack de inicio#tupack	56,{
       if( BaseLevel > 176 ){
       mes "[^000088Pack Inicio^000000]";
       mes "BLABLABLABLABALBA.";
       end;
       }
    
       if( #freebies == 1){
       mes "[^000088Pack Inicio^000000]";
       mes "Ya tienes tu pack de inicio";
      
       close;
       }
       else{
    
       mes "[^000088Pack Inicio^000000]";
       mes "BLABLABLABLABALBA";
       mes "BLABLABLABLABALBA.";
       mes "BLABLABLABLABALBA.";
       next;
       mes "[^000088Pack inicio^000000]";
       mes "BLABLABLABLABALBA.";
       mes "BLABLABLABLABALBA";
       next;
    
       getitem 909,1;
       getitem 1000,1;
       
       set #freebies, 1;
       mes "BLABLABLABLABALBA!";
       close;
       } 
    OnInit:
    	waitingroom "Pack de inicio",0;
    }

    Solo cambia los diálogos, sprite, items a dar y coordenadas del NPC a tu conveniencia ~

    Gracías por la rápida respuesta... Pero lo que busco es un NPC que use el last_unique_id de gepard shield

  2. Alguien tiene un NPC o donde puedo encontrar un NPC que solo de el pack de bienvenida una sola ves usando unique_id de gepard shield, Gracías de antemano ?

     

    prontera,156,181,5	script	Freebies NPC	100,{
    	mes "[ ^FF0000Administrator Helper^000000 ]";
    	mes "Welcome to Ragnarok Online.";
    	next;
    	switch(select("Reclamar Paquete:~ Cancelar")){
    		Case 1:
    		query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(0)+"", .@freebiesip$);
    			if (.@lastip$ == .@freebiesip$) {
    					mes "[ ^FF0000Administrator Helper^000000 ]";
    					mes "Sorry, but you've already received your ^43572FBeginner Rewards^000000.";
    					close;
    				} else {
    					mes "[ ^FF0000Administrator Helper^000000 ]";
    					mes "Here's your ^43572FBeginner Rewards^000000.";
    					query_sql("INSERT INTO `login` VALUES (NULL," + getcharid(0) + ",'" + escape_sql(strcharinfo(0)) + "','" + .@freebiesip$ + "')");
    					for ( set .@x,0; .@x < getarraysize(.freebie_item); set .@x,.@x + 1 ) {
    						getitem .freebie_item[.@x], .quantity[.@x];
    					}
    				}
    				close;
    		Case 2:
    			close;
    	
    	}
    // Configuracion
    	OnInit:
    	setarray .freebie_item[0],2357,2524,2421,2115,40138,7776; // ID ITEM
    	setarray .quantity[0],2,2,2,3,3,10; // Cantidad
    }

     

    He intentado con este pero una ves reclamas el pack no deja a nadie mas del servidor

  3. Gracías  Mael y sader1992... Usare el siguiente que es más facil de entender y editar.

     

    1 hour ago, Mael said:

    Si gustas también puedes probar este.

    
    -	script	#mvp_announce	-1,{
    
    OnInit:
    //	.gmp = 40;  // Nivel de GM para preever anuncio.
    	// Lista de Mapas de MVP.
    	setarray .t_maps$[0],"moc_pryd06","lhz_dun03","gld2_prt","abbey02","ayo_dun02","lhz_dun04","ra_fild02","xmas_fild01","dic_dun02","beach_dun","iz_dun05","tur_dun04","lhz_dun02","jupe_core","moc_fild22","anthell02","odin_tem03","gon_dun03","gef_fild02","thana_boss","gef_fild10","ein_dun02","gef_fild14","moc_pryd04","dew_dun01","in_sphinx5","niflheim","moc_fild17","xmas_dun02","ice_dun03","kh_dun02","treasure02","moc_prydn2","pay_dun04","ra_san05","mosk_dun03","ama_dun03","thor_v03","gef_dun01","mjolnir_04","abyss_03","dic_dun03","prt_sewb4","pay_fild11","gef_dun02","gl_chyard","ra_fild03","ra_fild04","ve_fild01","ve_fild02","lou_dun03","prt_maze03","bra_dun02";
    	end;
    
    OnNPCKillEvent:
    //if (getgmlevel() >= .gmp ) end;
    if ( getmonsterinfo( killedrid, MOB_MVPEXP )) {
    	for (.@a = 0; .@a < getarraysize(.t_maps$); .@a++) {
    	if ( strcharinfo(3) == .t_maps$[.@a]) { 
    			if ( getcharid(1) ) {
    				getpartymember getcharid(1), 1;
    				getpartymember getcharid(1), 2;
    				for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
    					if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { 
    						.@partymemberaid[.@c] = $@partymemberaid[.@i];
    						.@c++;
    					}
    				}
    				announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), bc_all;
    			}
    			else {
    				announce "[ System ] : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" alone at "+ strcharinfo(3), bc_all;
    			}
    	end;
    	}
    	}
    }	
    }

    Aquí modifica los mapas en los que se encuentran los mvps que contarán:

    
    setarray .t_maps$[0],"moc_pryd06","lhz_dun03","gld2_prt","abbey02","ayo_dun02","lhz_dun04","ra_fild02","xmas_fild01","dic_dun02","beach_dun","iz_dun05","tur_dun04","lhz_dun02","jupe_core","moc_fild22","anthell02","odin_tem03","gon_dun03","gef_fild02","thana_boss","gef_fild10","ein_dun02","gef_fild14","moc_pryd04","dew_dun01","in_sphinx5","niflheim","moc_fild17","xmas_dun02","ice_dun03","kh_dun02","treasure02","moc_prydn2","pay_dun04","ra_san05","mosk_dun03","ama_dun03","thor_v03","gef_dun01","mjolnir_04","abyss_03","dic_dun03","prt_sewb4","pay_fild11","gef_dun02","gl_chyard","ra_fild03","ra_fild04","ve_fild01","ve_fild02","lou_dun03","prt_maze03","bra_dun02";

    Nota: Como no sé que modo estas utilizando "RE o PRE" ahí puedes ir eligiendo a tu gusto. Para que funcione todo perfectamente te recomendaría poner mapflag de uso de bloody branch en esos maps ? claro es una sugerencia.

    Para activar la función para GMs solo descomenta estos:

    
    //	.gmp = 40;  // Nivel de GM para preever anuncio.
    
    //if (getgmlevel() >= .gmp ) end;

    Créditos a @pajodex por el script, yo solo removí algunas funciones y lo convertí solo en anunciador.

     

     

  4. 1 hour ago, sader1992 said:
    
    if (.@index != -1 && strcharinfo(3) == .map$[.@index] ) {

     

    [Warning]: script:getelementofarray: index out of range (-1)
    [Debug]: Data: variable name='.map$' index=0
    [Debug]: Source (NPC): mvp_announce (invisible/not on a map)

    Aun sigue tirando error

  5. Buenas chicos y chicas, Por que cuando mato un monstruo que esta fuera de la lista de este script me tira el siguiente error en la consola -- Script hecho por Mabuhay (sin testear)

     

    -	script	mvp_announce	-1,{
    OnInit:
        setarray .mobid, 1002, 1001;
        setarray .map$, "prt_fild08", "prontera";
        end;
    
    OnNPCKillEvent:
        .@index = inarray(.mobid[0], killedrid );
        if ( strcharinfo(3) == .map$[.@index] ) {
    		announce "["+ strcharinfo(0) +"] ha matado "+ getmonsterinfo( killedrid, MOB_NAME ) +" en el mapa "+ strcharinfo(3) +".", bc_all;
        }
    }

     

    Error

    [Warning]: script:getelementofarray: index out of range (-1)
    [Debug]: Data: variable name='.map$' index=0
    [Debug]: Source (NPC): jklasdf (invisible/not on a map)

×
×
  • Create New...