Jump to content
  • 0
creeps123

Armor Enchanter Npc

Question

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!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1

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;
}
[email protected] = getequipid( EQI_ARMOR );
[email protected] = getequiprefinerycnt( EQI_ARMOR );
[email protected] = getequipcardid( EQI_ARMOR, 0 );
[email protected] = getequipcardid( EQI_ARMOR, 1 );
[email protected] = getequipcardid( EQI_ARMOR, 2 );
[email protected] = getequipcardid( EQI_ARMOR, 3 );
if ( [email protected] == 255 || [email protected] == 254 ) {
	mes "I can't enchant a signed equipment";
	close;
}
if ( [email protected] ) {
	mes "this armor has already enchanted";
	close;
}

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

delitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 0;
getitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 4700 + [email protected] * 10 + [email protected];
equip [email protected];
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 ( [email protected] < 10 ) {
	.totalchance = .totalchance + .rate[[email protected]];
	[email protected]++;
}
end;
}

  • Upvote 1
Link to comment
Share on other sites

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;
}
[email protected] = getequipid( EQI_ARMOR );
[email protected] = getequiprefinerycnt( EQI_ARMOR );
[email protected] = getequipcardid( EQI_ARMOR, 0 );
[email protected] = getequipcardid( EQI_ARMOR, 1 );
[email protected] = getequipcardid( EQI_ARMOR, 2 );
[email protected] = getequipcardid( EQI_ARMOR, 3 );
if ( [email protected] == 255 || [email protected] == 254 ) {
	mes "I can't enchant a signed equipment";
	close;
}
if ( [email protected] ) {
	mes "this armor has already enchanted";
	close;
}

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

delitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 0;
getitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 4700 + [email protected] * 10 + [email protected];
equip [email protected];
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 ( [email protected] < 10 ) {
	.totalchance = .totalchance + .rate[[email protected]];
	[email protected]++;
}
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
Link to comment
Share on other sites

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*)
Link to comment
Share on other sites

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;
}
[email protected] = getequipid( EQI_ARMOR );
[email protected] = getequiprefinerycnt( EQI_ARMOR );
[email protected] = getequipcardid( EQI_ARMOR, 0 );
[email protected] = getequipcardid( EQI_ARMOR, 1 );
[email protected] = getequipcardid( EQI_ARMOR, 2 );
[email protected] = getequipcardid( EQI_ARMOR, 3 );
if ( [email protected] == 255 || [email protected] == 254 ) {
	mes "I can't enchant a signed equipment";
	close;
}
if ( [email protected] ) {
	mes "this armor has already enchanted";
	close;
}

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

delitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 0;
getitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 4700 + [email protected] * 10 + [email protected];
equip [email protected];
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 ( [email protected] < 10 ) {
	.totalchance = .totalchance + .rate[[email protected]];
	[email protected]++;
}
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..

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.