Jump to content

Utility: Costume Enchantments - Custom idRO Klasik based


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Costume Enchantments - Custom idRO Klasik based


In this script

  • Custom NPCs  to exchange  listed costumes becomes Upper/Middle/Lower/Garment Enchant Stone Box
  • Custom NPCs  to enchant  listed costumes by selecting the enchant stones (50% success, failure will delete the stone only)
  • Custom NPC  to exchange Enchant Stone  to Upper/Middle/Lower/Garment Enchant Stone Box (require: 2,000,000,000 Zeny)

Not in this script

  • All items (server-side) that are not present in rAthena
  • All items (client-side) that are not present in kRO (or other official clients) because idRO Klasik customization
  • Lucky charms

 

Exchange it

Spoiler

 

 

Enchant it

 

Woops, I need to find another stone

Spoiler

 

 

 


  • Submitter
  • Submitted
    06/09/2018
  • Category
  • Video
    https://www.youtube.com/watch?v=M0nv3YWVA6w&list=PL274vHMHfeg1-5SkmFEZWCRSvLIGeat_V
  • Content Author
    Cydh

 

  • Upvote 4
  • Love 2
  • MVP 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Going to update this for

  • Replace delitem to delequip for NPC that need equip the costume 
  • Move the rate to npc variable
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

how to make example npc Upper only acept HP stone and SP stone to be ecnhant??

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

10 hours ago, melv0 said:

how to make example npc Upper only acept HP stone and SP stone to be ecnhant??

download it, read the file, edit the file by removing unwanted stone group & stones

Edited by Cydh
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

10 hours ago, Cydh said:

download it, read the file, edit the file by removing unwanted stone group & stones

and where the part to setting multiple ecnhant in one npc? it's possible? without dummy the npc ?

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  06/24/15
  • Last Seen:  

hi.. im already run this script in my server
and already add all stone item in item_db
but idk why im cant choose menu "STR Stone, INT Stone, ETC"
0:12 in your video
i just have blank menu

Edited by y00z
Link to comment
Share on other sites

  • 8 months later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

On 2/22/2019 at 9:14 AM, y00z said:

hi.. im already run this script in my server
and already add all stone item in item_db
but idk why im cant choose menu "STR Stone, INT Stone, ETC"
0:12 in your video
i just have blank menu

try load npc from npc/custom_scripts.conf not by loadnpc command

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  03/03/20
  • Last Seen:  

On 2/21/2019 at 7:14 PM, y00z said:

hi.. im already run this script in my server
and already add all stone item in item_db
but idk why im cant choose menu "STR Stone, INT Stone, ETC"
0:12 in your video
i just have blank menu

Did you ever get that MENU to pop up. Mine was still empty even though I tried this
 

 

On 11/18/2019 at 5:17 PM, Cydh said:

try load npc from npc/custom_scripts.conf not by loadnpc command

Any help would be appreciated.

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

Hi sir @Cydh just wondering by opening a 2nd/duplicate NPC for garment 3rd slot enchant why its not selecting the costume on the list

perhaps all the costumes that are equip are able to enchant even its not on the list?

// - The NPC will enchants costume on inventory, so it's
//   impossible to keep the current costume info, cannot
//   make multiple enchants.
// - For multiple enchant slots, read the documentation
//   below
-	script	cCostumeEnchant#Enchanter	-1,{
	.@loc$ = charat(strnpcinfo(2),3);
	.@this$ = ".data"+.@loc$+"";
	.@npcname$ = strnpcinfo(1);
	.@locname$ = getd(.@this$+"locname$");
	.@slot$ = charat(strnpcinfo(2),5);

	mes "["+.@npcname$+"]";
	mes "Hi "+strcharinfo(0)+", I'm "+.@npcname$;
	next;
	mes "["+.@npcname$+"]";
	mes "I have ability to maximize";
	mes "your "+.@locname$+" Costume.";
	next;
	mes "["+.@npcname$+"]";
	mes "I need a costume "+.@locname$+" and "+.@locname$+" enchant stone";
	mes "to begin the process";
	next;
	mes "["+.@npcname$+"]";
	mes "You need to know that my ability";
	mes "only for "+.@locname$+" costume";
	mes "that you have in inventory.";
	next;
	mes "["+.@npcname$+"]";
	mes "That's why, in this process";
	mes "also affected to similar";
	mes "costumes in your inventory.";
	mes "So, just place ^0000CCONE COSTUME^000000";
	mes "that you want to enchant";
	mes "in your inventory";
	next;
	mes "["+.@npcname$+"]";
	mes "I don't take the responsibility";
	mes " if you put more many costumes";
	mes "in your inventory.";
	next;
	mes "["+.@npcname$+"]";
	mes "Now, choose the stone";
	mes "that you have";
	next;
	.@sel = select(getd(.@this$+"groupmenu$")) - 1;
	.@sel = .@sel*2;
	.@groupID$ = getd(.@this$+"group$["+.@sel+"]");
	.@groupName$ = getd(.@this$+"group$["+(.@sel+1)+"]");

	// Stone selection
	next;
	mes "["+.@npcname$+"]";
	mes "Choose the "+.@groupName$+" stone that you have";
	next;
	.@grouparr$ = .@this$+"stones_"+.@groupID$+"$";
	.@stonemenu$ = "";
	for (.@i = 0; .@i < getarraysize(getd(""+.@grouparr$+"")); .@i+=2) {
		if (.@i)
			.@stonemenu$ = .@stonemenu$+":";
		.@stonemenu$ = .@stonemenu$+"[^0000CC"+countitem(atoi(getd(""+.@grouparr$+"["+(.@i)+"]")))+"^000000] "+getd(""+.@grouparr$+"["+(.@i+1)+"]")+"";
	}
	.@sel = select(.@stonemenu$) - 1;
	.@i = .@sel * 2;
	.@stoneID = atoi(getd(""+.@grouparr$+"["+(.@i)+"]"));
	.@stoneName$ = getd(""+.@grouparr$+"["+(.@i+1)+"]");
	.@cosarr$ = .@this$+"costumes$";
	setarray .@slot[0],0,0,0,0;
	.@refine = 0;
	disable_items;
	pcblockskill 0,true;
	if (.@slot$ == "") {
		// Costume selection
		next;
		mes "["+.@npcname$+"]";
		mes "Choose the costume that";
		mes "will be enchanted using "+.@stoneName$+"";
		.@costumemenu$ = "";
		for (.@i = 0; .@i < getarraysize(getd(.@cosarr$)); .@i+=2) {
			if (.@i)
				.@costumemenu$ = .@costumemenu$+":";
			.@temp = atoi(getd(.@cosarr$+"["+(.@i)+"]"));
			.@costumemenu$ = .@costumemenu$+""+getd(.@cosarr$+"["+(.@i+1)+"]")+" ("+(countitem(.@temp)-isequipped(.@temp))+")";
		}
		.@sel = select(.@costumemenu$) - 1;
		.@i = .@sel * 2;
		.@costumeID = atoi(getd(.@cosarr$+"["+.@i+"]"));
		.@costumeName$ = getd(.@cosarr$+"["+(.@i+1)+"]");
		if ((countitem(.@costumeID) - isequipped(.@costumeID)) < 1 || countitem(.@stoneID) < 1) {
			next;
			mes "["+.@npcname$+"]";
			mes "I said, you need bring";
			mes "the costume and stone needed";
			mes "for this process.";
			close;
		}
	}
	else {
		// Check equipped costume. Additional feature by me of course, Cydh!
		.@eqiLoc = getd(.@this$+"eqiLoc");
		.@costumeID = getequipid(.@eqiLoc);
		if (.@costumeID == -1 || countitem(.@stoneID) < 1 || countitem(.@costumeID) != 1) {
			next;
			mes "["+.@npcname$+"]";
			mes "You hvae to wear the "+.@locname$+" costume";
			mes "dan bring the stone needed";
			next;
			mes "["+.@npcname$+"]";
			mes "^0000CCPlease put somewhere else";
			mes "the similar costumes in your inventory^000000";
			close;
		}
		if (countitem(.@costumeID) != 1) {
			next;
			mes "["+.@npcname$+"]";
			mes "^0000CCPlease put somewhere else";
			mes "the similar costumes in your inventory^000000";
			close;
		}
		.@n = getarraysize(getd(.@cosarr$))/2;
		.@size = .@n/2;
		for (.@i = 0; .@i < .@n; .@i+=2) {
			if (.@costumeID == atoi(getd(.@cosarr$+"["+.@i+"]")))
				break;
		}
		if (.@i == .@size) {
			next;
			mes "["+.@npcname$+"]";
			mes "I don't recognized";
			mes "the costume you wear";
			close;
		}
		.@slot[0] = getequipcardid(.@eqiLoc,0);
		.@slot[1] = getequipcardid(.@eqiLoc,1);
		.@slot[2] = getequipcardid(.@eqiLoc,2);
		.@slot[3] = getequipcardid(.@eqiLoc,3);
		.@refine = getequiprefinerycnt(.@eqiLoc);
	}
	next;
	mes "["+.@npcname$+"]";
	mes "^ff0000- Important -^000000 before";
	mes "enchanting this costume";
	next;
	mes "["+.@npcname$+"]";
	mes "^ff0000If the costume had been enchanted";
	mes "with other stone and this process";
	mes "is success, the previous stone";
	mes "will be replaced with this";
	mes "new stone effect^000000";
	next;
	mes "["+.@npcname$+"]";
	mes "Continue?";
	next;
	if (select("Of course!","I doubt now") == 2) {
		next;
		mes "["+.@npcname$+"]";
		mes "OK, let's us meet again.";
		mes "See you.";
		close;
	}
	next;
	mes "["+.@npcname$+"]";
	mes "I will enchant "+.@costumeName$+"";
	mes "with a "+.@stoneName$+"";
	next;
	specialeffect2 EF_REPAIRWEAPON;
	progressbar "ffffff",3;
	if (countitem(.@costumeID) > 0 && countitem(.@stoneID) > 0) {
		delitem .@stoneID,1;
		if (rand(1,100) < 85) {
			specialeffect2 EF_PHARMACY_FAIL;
			mes "["+.@npcname$+"]";
			mes "Oopps, I failed. Sorry";
			close;
		}
		delitem .@costumeID,1;
		specialeffect2 EF_PHARMACY_OK;
		mes "["+.@npcname$+"]";
		mes "Great! It's done";
		if (.@slot$ == "")
			.@slot[3] = .@stoneID;
		else
			.@slot[atoi(.@slot$)] = .@stoneID;
		getitem2 .@costumeID,1,1,.@refine,0,.@slot[0],.@slot[1],.@slot[2],.@slot[3];
	}
	close;

	OnInit:
		.@hiddenname$ = strnpcinfo(2);
		if (.@hiddenname$ == "Enchanter")
			end;
		.@loc$ = charat(.@hiddenname$,3);
		/**
		* Stone groups
		**/
		setarray .@group$[0]			,"atk","ATK Stone"
							,"matk","MATK Stone"
							,"hp","HP Stone"
							,"sp","SP Stone";
		/**
		* Upper costumes
		**/
		if (.@loc$ == "0") {
			.@locname$ = "Upper";
			.@eqiLoc = EQI_COSTUME_HEAD_TOP;
			// Costumes
			setarray .@costumes$[0],"19936","C Knit Cap of Water"
					       ,"19762","C Happy Peach Proof"
					       ,"31179","C Wolf Masquerade"
					       ,"19935","C Hunting Cap of Gust";
					 //      ,"19992","C Chilling Breathe";
								
			// Stones
			setarray .@stone_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone";
			setarray .@stone_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone";
			setarray .@stone_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone";
			setarray .@stone_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone";
			setarray .@stone_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone";
			setarray .@stone_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone";
			setarray .@stone_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone";
			setarray .@stone_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone";
			setarray .@stone_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone";
			setarray .@stone_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone";
//			setarray .@stone_sp$[0],"6644","SP1 Stone","25440","SP2 Stone","25420","SP3 Stone";
//			setarray .@stone_sp$[0],"6645","SP1 Stone","25440","SP2 Stone","25420","SP3 Stone";
		}
		/**
		* Middle costumes
		**/
		else if (.@loc$ == "1") {
			.@locname$ = "Middle";
			.@eqiLoc = EQI_COSTUME_HEAD_MID;
			// Costumes
			setarray .@costumes$[0],"20005","C Sigrun Wings"
								,"31118","C Assassin Mask"
								,"19139","C Orbs of Survival"
								,"20132","C Vicious Mind Aura"
							//	,"20010","Costume Rainbow Wing Ears"
							//	,"31380","C Crow"
							//	,"18914","Costume Servant Devilring"
							//	,"20325","C Little Mermaid"
							//	,"20492","C. Whistle"
							//	,"20440","Costume Tone of Gold Orb"
							//	,"19805","Costume Taboo Cursed Scroll"
							//	,"20405","Costume Eremes Scarf"
								,"20399","C Crow Tengu Mask";
			// Stones
			setarray .@stone_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone";
			setarray .@stone_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone";
			setarray .@stone_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone";
			setarray .@stone_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone";
			setarray .@stone_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone";
			setarray .@stone_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone";
			setarray .@stone_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone";
			setarray .@stone_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone";
			setarray .@stone_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone";
			setarray .@stone_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone";

		}
		/**
		* Lower costumes
		**/
		else if (.@loc$ == "2") {
			.@locname$ = "Lower";
			.@eqiLoc = EQI_COSTUME_HEAD_LOW;
			// Costumes
			setarray .@costumes$[0]			,"30082","C Blue Electric Aura"
								,"30083","C Orange Electric Aura"
								,"30084","C Purple Electric Aura"
								,"30085","C Red Electric Aura"
								,"30109","C D-Blue Electric Aura"
								,"30110","C D-Orange Electric Aura"
								,"30111","C D-Purple Electric Aura"
								,"30112","C D-Red Electric Aura"
								,"31181","C Necklace Rosary"
								,"19992","C Chilling Breath"
								,"31134","C Talkative Parrot"
								,"3000","C Angeling Wings"
								,"3001","C Arctic Wings"
								,"3003","C Demon Wings"
								,"3005","C Gargoyle Wings"
								,"3006","C Icarus Wings"
								,"3007","C Phoenix Wings"
								,"3002","C Black Butterfly Wings";
;

			// Additional ASPD Stone
			setarray .@group$[getarraysize(.@group$)],"aspd","ASPD Stone"
								 ,"str","STR Stone"
								 ,"agi","AGI Stone"
								 ,"int","INT Stone"
								 ,"vit","VIT Stone"
								 ,"dex","DEX Stone"
								 ,"luk","LUK Stone";

			// Stones
			setarray .@stone_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone";
			setarray .@stone_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone";
			setarray .@stone_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone";
			setarray .@stone_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone";
			setarray .@stone_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone";
			setarray .@stone_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone";
			setarray .@stone_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone";
			setarray .@stone_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone";
			setarray .@stone_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone";
			setarray .@stone_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone";
			setarray .@stone_aspd$[0],"38033","ASPD1 Stone","38034","ASPD2 Stone","38035","ASPD3 Stone";
			
		}
		/**
		* Garment costumes
		**/
		else if (.@loc$ == "3") {
			.@locname$ = "Garment";
			.@eqiLoc = EQI_COSTUME_GARMENT;
			// Costumes
			setarray .@costumes$[0],"20830","C Wings of Seraph"
								,"20762","C Great Devil Wing"
								,"20510","C Wigs of Dagger"
								,"30018","C Wings of Butterfly"
								,"30020","C Wings Of Monarch"
								,"30021","C Wings of Phoenix"
								,"30105","C Gungnir"
								,"30107","C Mjolnir"
								,"30106","C Laevateinn"
								,"30108","C Sumbrandr"
								,"30022","C Wings of Profane";
			// Additional ASPD Stone
			setarray .@group$[getarraysize(.@group$)],"aspd","ASPD Stone"
								 ,"str","STR Stone"
								 ,"agi","AGI Stone"
								 ,"int","INT Stone"
								 ,"vit","VIT Stone"
								 ,"dex","DEX Stone"
								 ,"luk","LUK Stone";
			// Stones
			setarray .@stone_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone";
			setarray .@stone_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone";
			setarray .@stone_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone";
			setarray .@stone_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone";
			setarray .@stone_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone";
			setarray .@stone_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone";
			setarray .@stone_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone";
			setarray .@stone_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone";
			setarray .@stone_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone";
			setarray .@stone_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone";
			setarray .@stone_aspd$[0],"38033","ASPD1 Stone","38034","ASPD2 Stone","38035","ASPD3 Stone";
		}

		/**
		* DO NOT CHANGE THIS CODE BELOW IF YOU KNOW WHAT YOU ARE DOING
		* This is my style to load on init instead recall and redefining in every NPC is being used
		**/
		.@this$ = ".data"+.@loc$+"";
		setd(.@this$+"locname$",.@locname$);
		setd(.@this$+"eqiLoc",.@eqiLoc);
		.@groupmenu$ = ""; for (.@i = 0; .@i < getarraysize(.@group$); .@i+=2) { if (.@i) { .@groupmenu$ = .@groupmenu$+":"; } .@groupmenu$ = .@groupmenu$+""+.@group$[.@i+1]+""; setd(.@this$+"group$["+(.@i)+"]",.@group$[.@i]); setd(.@this$+"group$["+(.@i+1)+"]",.@group$[.@i+1]); }
		setd(.@this$+"groupmenu$",.@groupmenu$);
		for (.@i = 0; .@i < getarraysize(.@costumes$); .@i+=2) { setd(.@this$+"costumes$["+(.@i)+"]",.@costumes$[.@i]); setd(.@this$+"costumes$["+(.@i+1)+"]",.@costumes$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_str$); .@i+=2) { setd(.@this$+"stones_str$["+(.@i)+"]",.@stone_str$[.@i]); setd(.@this$+"stones_str$["+(.@i+1)+"]",.@stone_str$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_agi$); .@i+=2) { setd(.@this$+"stones_agi$["+(.@i)+"]",.@stone_agi$[.@i]); setd(.@this$+"stones_agi$["+(.@i+1)+"]",.@stone_agi$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_vit$); .@i+=2) { setd(.@this$+"stones_vit$["+(.@i)+"]",.@stone_vit$[.@i]); setd(.@this$+"stones_vit$["+(.@i+1)+"]",.@stone_vit$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_int$); .@i+=2) { setd(.@this$+"stones_int$["+(.@i)+"]",.@stone_int$[.@i]); setd(.@this$+"stones_int$["+(.@i+1)+"]",.@stone_int$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_dex$); .@i+=2) { setd(.@this$+"stones_dex$["+(.@i)+"]",.@stone_dex$[.@i]); setd(.@this$+"stones_dex$["+(.@i+1)+"]",.@stone_dex$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_luk$); .@i+=2) { setd(.@this$+"stones_luk$["+(.@i)+"]",.@stone_luk$[.@i]); setd(.@this$+"stones_luk$["+(.@i+1)+"]",.@stone_luk$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_atk$); .@i+=2) { setd(.@this$+"stones_atk$["+(.@i)+"]",.@stone_atk$[.@i]); setd(.@this$+"stones_atk$["+(.@i+1)+"]",.@stone_atk$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_matk$); .@i+=2) { setd(.@this$+"stones_matk$["+(.@i)+"]",.@stone_matk$[.@i]); setd(.@this$+"stones_matk$["+(.@i+1)+"]",.@stone_matk$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_hp$); .@i+=2) { setd(.@this$+"stones_hp$["+(.@i)+"]",.@stone_hp$[.@i]); setd(.@this$+"stones_hp$["+(.@i+1)+"]",.@stone_hp$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_sp$); .@i+=2) { setd(.@this$+"stones_sp$["+(.@i)+"]",.@stone_sp$[.@i]); setd(.@this$+"stones_sp$["+(.@i+1)+"]",.@stone_sp$[.@i+1]); }
		for (.@i = 0; .@i < getarraysize(.@stone_aspd$); .@i+=2) { setd(.@this$+"stones_aspd$["+(.@i)+"]",.@stone_aspd$[.@i]); setd(.@this$+"stones_aspd$["+(.@i+1)+"]",.@stone_aspd$[.@i+1]); }
		end;
}

same goes for the upper/lower/mid costumes im still trying to figure it out but i notice this line

}
		if (.@i == .@size) {
			next;
			mes "["+.@npcname$+"]";
			mes "I don't recognized";
			mes "the costume you wear";
			close;

its not event showing on the NPC dialogue

i think this line will tell if the costume equipped is listed or not

 

thanks a lot for the help

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
Reply to this topic...

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