Jump to content

Question

Posted (edited)

I dont wanted to open a topic again, so im just bumping this up. I've written a scrip, and its not going, i didnt find the mistake, maybe you guys?

Spoiler

glemior.gat,181,330,5    script    Buffer    52,{
percentheal 100,100;
mes "Please select buff type";
switch(select(Basic Buff - Free .:Full Buff - 100k .:Incredible Buff - 500k.")) {
    case 1:
        skilleffect 34,0; sc_start SC_BLESSING,18000,10;
        skilleffect 29,0; sc_start SC_INCREASEAGI,18000,10;
    case 2:
        set Zeny, Zeny-100000;
        skilleffect 34,0; sc_start SC_BLESSING,50000,10;
        skilleffect 29,0; sc_start SC_INCREASEAGI,50000,10;
        skilleffect 33,0; sc_start SC_ANGELUS,50000,10;
        skilleffect 74,0; sc_start SC_MAGNIFICAT,50000,5;
        skilleffect 75,0; sc_start SC_GLORIA,50000,5;
        skilleffect 66,0; sc_start SC_IMPOSITIO,50000,5;
        skilleffect 361,0; sc_start SC_ASSUMPTIO,50000,5;
    case 3:
        set Zeny, Zeny-500000;
        skilleffect 34,0; sc_start SC_BLESSING,3600000,10;
        skilleffect 29,0; sc_start SC_INCREASEAGI,3600000,10;
        skilleffect 33,0; sc_start SC_ANGELUS,3600000,10;
        skilleffect 74,0; sc_start SC_MAGNIFICAT,3600000,5;
        skilleffect 75,0; sc_start SC_GLORIA,3600000,5;
        skilleffect 66,0; sc_start SC_IMPOSITIO,3600000,5;
        skilleffect 361,0; sc_start SC_ASSUMPTIO,3600000,5;
        skilleffect 332,0; sc_start SC_SECRAMENT,3600000,5;
        sc_start SC_ASPDPOTION2,3600000,0;
        sc_start SC_STRFood,3600000,10;
        sc_start SC_AGIFood,3600000,10;
        sc_start SC_VITFood,3600000,10;
        sc_start SC_INTFood,3600000,10;
        sc_start SC_DEXFood,3600000,10;
        sc_start SC_LUKFood,3600000,10;
        sc_start SC_HitFood,12000000,30;
        sc_start SC_FleeFood,12000000,30;
        sc_start SC_BATKFood,12000000,10;
        sc_start SC_MATKFood,1200000,10;
}
close;
}
 

 

 

 

 

 

 

 

 

 

Hello! I couldnt find in the wiki the right command, could you guys help me out?

I want to point with the #charcommand to self the player, who klicked on the npc.

Spoiler

glemior,227,330,5    script    jRO Outfit    122,{
mes "The Costume outfits are available only for a few classes!";
select "Costume","Regular";
 if (@menu == 1) { charcommand    "#bodystyle @player$ 1"; }
 else { charcommand    "#bodystyle @player$  0"; }
 close;}

Thanks in advice, again!

Edited by Sunset

11 answers to this question

Recommended Posts

  • 0
Posted (edited)
glemior,227,330,5	script	jRO Outfit	122,{
mes "The Costume outfits are available only for a few classes!";
switch(select("- Costume Outfit:- Regular:- Nothing")){

	case 1:
		if(getlook(LOOK_BODY2) == 1) {
		mes "^ff0000You already wear costume outfit !!^000000"; 
		close;
		}
		// to prevent crash incase costume outfit for some class not available
		if(Class == JOB_GUILLOTINE_CROSS || Class == JOB_GUILLOTINE_CROSS_T || 	
			Class == JOB_ROYAL_GUARD || Class == JOB_ROYAL_GUARD_T ||
			Class == JOB_MECHANIC || Class == JOB_MECHANIC_T ||
			Class == JOB_GENETIC || Class == JOB_GENETIC_T ||
			Class == JOB_ARCH_BISHOP || Class == JOB_ARCH_BISHOP_T ||
			Class == JOB_RANGER || Class == JOB_RANGER_T ||
			Class == JOB_WARLOCK || Class == JOB_WARLOCK_T ||
			Class == JOB_MINSTREL || Class == JOB_MINSTREL_T ||
			Class == JOB_WANDERER || Class == JOB_WANDERER_T	||
			Class == JOB_SHADOW_CHASER || Class == JOB_SHADOW_CHASER_T ){
		atcommand "@bodystyle 1";
		close;
		} else { 
		mes "I'm sorry, but your class outfit is not supported yet.";
		close; 
		}
	
	case 2:
		mes "Change to regular outfit?";
		menu "Yes",-;
		atcommand "@bodystyle 0";
		close;
		
	case 3:
		mes "GTFO you son of a duck!";
		emotion e_bzz;
		close;
	}
}

untested, i just made it rewrite from your script.

Edited by Valor
  • 0
Posted (edited)

its works on me

glemior,227,330,5<TAB>script<TAB>jRO Outfit<TAB>122,{

make surei its a TAB betwen... not spacing

Edited by Valor
  • 0
Posted
1 hour ago, Valor said:

its works on me


glemior,227,330,5<TAB>script<TAB>jRO Outfit<TAB>122,{

make surei its a TAB betwen... not spacing

Oh yeah, ive forgot if i copy from here, i gotta recheck that. It works now, but upon relog, i get the original outfit still :v

  • 0
Posted

on your client.conf

Spoiler

// Save body styles. (Note 1)
// Note: Don't turn this on unless you know what your doing.
// Sprites are not released officially.
save_body_style: yes

 

  • 0
Posted
Just now, Valor said:

on your client.conf

  Hide contents

// Save body styles. (Note 1)
// Note: Don't turn this on unless you know what your doing.
// Sprites are not released officially.
save_body_style: yes

 

Oooh so there, thank you!

I dont wanna open one more topic so im asking here, maybe you can help me in this case too.

Spoiler

        progressbar "ffff00",1;
        set Zeny, Zeny-400000;
        delitem .@itemid,1;
        switch (rand(1)) {
            case 1: set .@addpart,4702;break;
            case 2: set .@addpart,4712;break;
            case 3: set .@addpart,4722;break;
            case 4: set .@addpart,4732;break;
            case 5: set .@addpart,4742;break;
            case 6: set .@addpart,4752;break;
            case 7: set .@addpart,4701;break;
            case 8: set .@addpart,4711;break;
            case 9: set .@addpart,4721;break;
            case 10: set .@addpart,4731;break;
            case 11: set .@addpart,4741;break;
            case 12: set .@addpart,4751;break;
            case 13: set .@addpart,4700;break;
            case 14: set .@addpart,4710;break;
            case 15: set .@addpart,4720;break;
            case 16: set .@addpart,4730;break;
            case 17: set .@addpart,4740;break;
            case 18: set .@addpart,4750;break;
        }
        getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
 

Its from Apprentice Craftsman script, ive edited it a bit, so now theres no fail, but it doesnt adds any bonus to the item. what should i edit?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...