Jump to content
  • 0

Armor Enchanter Npc


Question

Posted

hello.. can anyone share or make me a script of an Armor Echanter NPC that gives you +10str +10agi +10int +10vit +10dex +10luk stats? with a certain rate.. not high.. i have no idea what rate is good. but please keep it low.. what i mean is.. it is also random.. random if +1 str - +10 str or +1 int - +10 int.. just all random random stats random 1-10 stats. thanks to all!

5 answers to this question

Recommended Posts

  • 1
Posted

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/npc/merchants/enchan_arm.txt

hmm ?

or I make another one just for fun

prontera,156,178,5	script	ldfhsdfkljs	100,{
mes "do you want to enchant your equipped armor ?";
next;
if ( select ( "yes", "no" ) == 2 ) close;
if ( !getequipisequiped( EQI_ARMOR ) ) {
	mes "you did not equip an armor at the moment";
	close;
}
.@id = getequipid( EQI_ARMOR );
.@ref = getequiprefinerycnt( EQI_ARMOR );
.@card1 = getequipcardid( EQI_ARMOR, 0 );
.@card2 = getequipcardid( EQI_ARMOR, 1 );
.@card3 = getequipcardid( EQI_ARMOR, 2 );
.@card4 = getequipcardid( EQI_ARMOR, 3 );
if ( .@card1 == 255 || .@card1 == 254 ) {
	mes "I can't enchant a signed equipment";
	close;
}
if ( .@card4 ) {
	mes "this armor has already enchanted";
	close;
}

.@rand = rand(.totalchance);
while ( ( .@rand = .@rand - .rate[.@r] ) >= 0 ) .@r++;
.@o = rand(0,5); // orb of str/int/dex ....

delitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 0;
getitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 4700 + .@o * 10 + .@r;
equip .@id;
close;
OnInit:
setarray .rate, 55,50,45,40,35,30,25,20,15,10; // rate of getting +1 is 55%, +2 is 50% .... +10 is 10% ...

while ( .@i < 10 ) {
	.totalchance = .totalchance + .rate[.@i];
	.@i++;
}
end;
}

  • Upvote 1
Posted (edited)

https://rathena.svn..../enchan_arm.txt

hmm ?

or I make another one just for fun

prontera,156,178,5	script	ldfhsdfkljs	100,{
mes "do you want to enchant your equipped armor ?";
next;
if ( select ( "yes", "no" ) == 2 ) close;
if ( !getequipisequiped( EQI_ARMOR ) ) {
	mes "you did not equip an armor at the moment";
	close;
}
.@id = getequipid( EQI_ARMOR );
.@ref = getequiprefinerycnt( EQI_ARMOR );
.@card1 = getequipcardid( EQI_ARMOR, 0 );
.@card2 = getequipcardid( EQI_ARMOR, 1 );
.@card3 = getequipcardid( EQI_ARMOR, 2 );
.@card4 = getequipcardid( EQI_ARMOR, 3 );
if ( .@card1 == 255 || .@card1 == 254 ) {
	mes "I can't enchant a signed equipment";
	close;
}
if ( .@card4 ) {
	mes "this armor has already enchanted";
	close;
}

.@rand = rand(.totalchance);
while ( ( .@rand = .@rand - .rate[.@r] ) >= 0 ) .@r++;
.@o = rand(0,5); // orb of str/int/dex ....

delitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 0;
getitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 4700 + .@o * 10 + .@r;
equip .@id;
close;
OnInit:
setarray .rate, 55,50,45,40,35,30,25,20,15,10; // rate of getting +1 is 55%, +2 is 50% .... +10 is 10% ...

while ( .@i < 10 ) {
	.totalchance = .totalchance + .rate[.@i];
	.@i++;
}
end;
}

I gladly accept this! ill try it out.. thank you very much maam. :)

wait. maam. how about.. making the npc deduct money from you. like 100k? thanks again!!

erm excuse.. why is that i can't talk to the npc?? it does nothing.. when i loaded it.. i used the shorter script.. not the link..

Edited by creeps123
Posted
Well maybe it's not polite to answer for her... sorry
oh, the reason that I want everything ask on forum because its better to have someone answer it for me o.o

I couldn't able to support every single topic here also

Her script (shorter script) works for rAthena, not for eAthena... Maybe it's because of that ?
wahahaha, I don't want to make my script works for eathena because I have problem with eathena admin (*hides*)
Posted

https://rathena.svn..../enchan_arm.txt

hmm ?

or I make another one just for fun

prontera,156,178,5	script	ldfhsdfkljs	100,{
mes "do you want to enchant your equipped armor ?";
next;
if ( select ( "yes", "no" ) == 2 ) close;
if ( !getequipisequiped( EQI_ARMOR ) ) {
	mes "you did not equip an armor at the moment";
	close;
}
.@id = getequipid( EQI_ARMOR );
.@ref = getequiprefinerycnt( EQI_ARMOR );
.@card1 = getequipcardid( EQI_ARMOR, 0 );
.@card2 = getequipcardid( EQI_ARMOR, 1 );
.@card3 = getequipcardid( EQI_ARMOR, 2 );
.@card4 = getequipcardid( EQI_ARMOR, 3 );
if ( .@card1 == 255 || .@card1 == 254 ) {
	mes "I can't enchant a signed equipment";
	close;
}
if ( .@card4 ) {
	mes "this armor has already enchanted";
	close;
}

.@rand = rand(.totalchance);
while ( ( .@rand = .@rand - .rate[.@r] ) >= 0 ) .@r++;
.@o = rand(0,5); // orb of str/int/dex ....

delitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 0;
getitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 4700 + .@o * 10 + .@r;
equip .@id;
close;
OnInit:
setarray .rate, 55,50,45,40,35,30,25,20,15,10; // rate of getting +1 is 55%, +2 is 50% .... +10 is 10% ...

while ( .@i < 10 ) {
	.totalchance = .totalchance + .rate[.@i];
	.@i++;
}
end;
}

I gladly accept this! ill try it out.. thank you very much maam. :)

wait. maam. how about.. making the npc deduct money from you. like 100k? thanks again!!

erm excuse.. why is that i can't talk to the npc?? it does nothing.. when i loaded it.. i used the shorter script.. not the link..

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...