Jump to content

HD Scripts

Members
  • Posts

    183
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by HD Scripts

  1. Hi guys '-'

     

    i have a problem, in my scripts, some arquives apeears an error like this:

    'Assistente Kafra#prtg_cas03' is too long (len=27) in file 'npc/gde/prtg_cas03.txt', line'114'. Truncating to 24 characters.
    

    my mmo.h:

    #define NAME_LENGTH (23 + 1)
    #define NPC_NAME_LENGTH 37
    

    for now, when i set NPC_NAME_LENGHT to 37, don't change anything '-'

     

    some reason?

    what more arquives i do to change?

     

    waiting '-'

     

    @edit

     

    Solved!

     

    https://rathena.org/board/topic/71004-how-to-change-the-max-npc-name-length/

     

    Follow this support post, and now my emulator is ok!

     

    thank's for all,

     

    #close

  2. Well, i need insert a option in this script, to randomic style, between cloths, hair style and hair color, randomically.

    Is possible?

     

    Script:

    //===== rAthena Script =======================================
    //= Stylist
    //===== By: ==================================================
    //= Euphy
    //===== Current Version: =====================================
    //= 1.1
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= Changes your hair style, hair color, and cloth color.
    //===== Additional Comments: =================================
    //= 1.0 Initial script.
    //= 1.1 Switched to 'getbattleflag', credits to Saithis. [Euphy]
    //============================================================
    
    prontera,170,180,1	script	Stylist#custom_stylist	122,{
    	setarray .@Styles[1],
    		getbattleflag("max_cloth_color"),
    		getbattleflag("max_hair_style"),
    		getbattleflag("max_hair_color");
    	setarray .@Look[1],
    		LOOK_CLOTHES_COLOR,
    		LOOK_HAIR,
    		LOOK_HAIR_COLOR;
    	set .@s, select(" ~ Cloth color: ~ Hairstyle: ~ Hair color");
    	set .@Revert, getlook(.@Look[.@s]);
    	set .@Style,1;
    	while(1) {
    		setlook .@Look[.@s], .@Style;
    		message strcharinfo(0),"This is style #"+.@Style+".";
    		set .@menu$, " ~ Next (^0055FF"+((.@Style!=.@Styles[.@s])?.@Style+1:1)+"^000000): ~ Previous (^0055FF"+((.@Style!=1)?.@Style-1:.@Styles[.@s])+"^000000): ~ Jump to...: ~ Revert to original (^0055FF"+.@Revert+"^000000)";
    		switch(select(.@menu$)) {
    		case 1:
    			set .@Style, ((.@Style != .@Styles[.@s]) ? .@Style+1 : 1);
    			break;
    		case 2:
    			set .@Style, ((.@Style != 1) ? .@Style-1 : .@Styles[.@s]);
    			break;
    		case 3:
    			message strcharinfo(0),"Choose a style between 1 - "+.@Styles[.@s]+".";
    			input .@Style,0,.@Styles[.@s];
    			if (!.@Style)
    				set .@Style, rand(1,.@Styles[.@s]);
    			break;
    		case 4:
    			set .@Style, .@Revert;
    			setlook .@Look[.@s], .@Revert;
    			break;
    		}
    	}
    }
    
  3. Something like this, can edit with ur infos

    query_sql "INSERT INTO `storage` (`id`, `account_id`, `nameid`, `amount`, `identify`, `refine`, `attribute`, `card0`, `card1`, `card2`, `card3`, `expire_time`) VALUES (NULL, '"+getcharid(3)+"', '"+$PackGuild3[@i]+"', '"+$PackQnt3[@i]+"', '"+getcharid(2)+"', '0', '0', '0', '0', '0', '0', '0')";
    
  4.  

    Hi, when i download and extract rAthena-Launcher[v012].exe to rathena main folder, than when i run it , it show :

    ---------------------------

    Error
    ---------------------------
    Some very basic files seem to be missing!.
    ---------------------------
    OK   
    ---------------------------
     
    anything wrong?

     

     

    I have same problem, any solution?

  5. Make a equal NPC, but insert this check:

    if(getcastledata("prtg_cas01",1) == getcharid(2)){
    

    It changes “prtg_cas01” for the castle that to want, and adds buffs below

    ex:

    -	script	GuidBuff::GuildBuff	-1,{
    
    	if(getcastledata("prtg_cas01",1) == getcharid(2)){
    		percentheal 100,100;
    		skilleffect 34,0; sc_start SC_BLESSING,360000,10;
    		skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
    		sc_start SC_ASPDPOTION2,360000,0;
    		sc_start SC_STRFood,360000,5;
    		sc_start SC_AGIFood,360000,5;
    		sc_start SC_VITFood,360000,5;
    		sc_start SC_INTFood,360000,5;
    		sc_start SC_DEXFood,360000,5;
    		sc_start SC_LUKFood,360000,5;
    		sc_start SC_HitFood,1200000,30;
    		sc_start SC_FleeFood,1200000,30;
    		sc_start SC_BATKFood,1200000,5;
    		sc_start SC_MATKFood,120000,5;
    		switch ( basejob ) {
    			case Job_Alchemist:	set .@spirit, 445; break;
    			case Job_Monk:	 set .@spirit, 447; break;
    			case Job_Star_Gladiator:  set .@spirit, 448; break;
    			case Job_Sage:	 set .@spirit, 449; break;
    			case Job_Crusader:	set .@spirit, 450; break;
    			case Job_SuperNovice:   set .@spirit, 451; break;
    			case Job_Knight:	set .@spirit, 452; break;
    			case Job_Wizard:	set .@spirit, 453; break;
    			case Job_Priest:	set .@spirit, 454; break;
    			case Job_Bard: case Job_Dancer: set .@spirit, 455; break;
    			case Job_Rogue:	 set .@spirit, 456; break;
    			case Job_Assassin:	set .@spirit, 457; break;
    			case Job_Blacksmith:   set .@spirit, 458; break;
    			case Job_Hunter:	set .@spirit, 460; break;
    			case Job_Soul_Linker:   set .@spirit, 461; break;
    			default:
    				if ( upper == 1 && baselevel < 70 )
    					set .@spirit, 494;
    		}
    		if ( .@spirit ) {
    			sc_start4 sc_spirit, 360000, 5, .@spirit,0,0;
    			skilleffect .@spirit, 5;
    		}
    	}
    	
    	if(getcastledata("prtg_cas02",1) == getcharid(2)){
    		percentheal 100,100;
    		skilleffect 34,0; sc_start SC_BLESSING,360000,10;
    		skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
    	}
    	end;
    }
    
    //add more duplicates here
    mellina,74,82,5	duplicate(GuildBuff)	Guild Buffer#aldeg_cas01	696
    //gefg_cas01,<x>,<y>,0	duplicate(GuildBuff)	Guild Buff#gefg_cas01	696
    //payg_cas01,<x>,<y>,0	duplicate(GuildBuff)	Guild Buff#payg_cas01	696
    //prtg_cas01,<x>,<y>,0	duplicate(GuildBuff)	Guild Buff#prtg_cas01	696
    
×
×
  • Create New...