kanca putra Posted February 9, 2014 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 02/07/14 Last Seen: July 10, 2014 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted February 9, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 7 hours ago Share Posted February 9, 2014 [paste=1krpxfllqxrr] Quote Link to comment Share on other sites More sharing options...
WhiteEagle Posted February 9, 2014 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 481 Reputation: 67 Joined: 08/28/12 Last Seen: 2 hours ago Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted February 9, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 7 hours ago Share 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 Link to comment Share on other sites More sharing options...
kanca putra Posted February 9, 2014 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 02/07/14 Last Seen: July 10, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
kanca putra Posted February 9, 2014 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 02/07/14 Last Seen: July 10, 2014 Author Share Posted February 9, 2014 [paste=1krpxfllqxrr]Thankyou mr.patskie , so im just need the identifier npc Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.