kanca putra Posted February 9, 2014 Posted February 9, 2014 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 Quote
WhiteEagle Posted February 9, 2014 Posted February 9, 2014 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 //============================================================ Quote
Patskie Posted February 9, 2014 Posted February 9, 2014 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; } Quote
kanca putra Posted February 9, 2014 Author Posted February 9, 2014 hey brother, if you not mind can you upload that script to format .txt Because im on in phone so i can't copy paste that Quote
kanca putra Posted February 9, 2014 Author Posted February 9, 2014 [paste=1krpxfllqxrr]Thankyou mr.patskie , so im just need the identifier npc Quote
Question
kanca putra
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.