Jump to content
  • 0

need script identifier and repair 1 click


Question

Posted

hey brother, im newbie in scripting :( so i need example script identifier and repair i want to learning how to make script

If you not mind i need the example script in file .txt

Thanks for you attention

5 answers to this question

Recommended Posts

Posted

Here is a Script from Euphy:

set .@Price, 100;	// Zeny per identify
	getinventorylist;
	for(set .@i,0; .@i<@inventorylist_count; set .@i,.@i+1) {
		if (@inventorylist_identify[.@i]) continue;
		if (Zeny < .@Price) {
			dispbottom "It costs "+.@Price+" to identify an item."; break; }
		set Zeny, Zeny-.@Price;
		delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
		getitem @inventorylist_id[.@i],1;
		setarray .@Total[0], .@Total[0]+1, .@Total[1]+.@Price; }
	if (!.@Total[0]) {
		message strcharinfo(0),"No items identified."; end; }
	specialeffect2 154;
	message strcharinfo(0),"Identified "+.@Total[0]+" items"+((.@Total[1])?" for "+.@Total[1]+" Zeny":"")+".";
	end;
}

For repair, go in rAthena/trunk/npc/merchants/refine.txt

Search there for "repair".

 

You will find this line:

// Equipment Repair Function
//============================================================
Posted


prontera,174,184,1 script Sample 100,{

getinventorylist;

for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) {

if ( @inventorylist_identify[.@i] == 1 ) continue;

delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;

getitem @inventorylist_id[.@i],1;

}

if ( getbrokenid(1) == 0 ) {

mes "You don't have anything to be repaired!";

close;

}

atcommand "@repairall";

end;

}

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