Cid Kagenou Posted March 31, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 107 Reputation: 5 Joined: 07/01/14 Last Seen: March 28 Share Posted March 31, 2015 Hi , can i ask how to make this script repair items and identify them with the same area? amatsu,235,237,4 script healer 925,{ end;OnInit:OnTimer5000: initnpctimer; getmapxy(.@m$,.@x,.@y,1,strnpcinfo(0)); areapercentheal .@m$,.@x-15,.@y-15,.@x+15,.@y+15,100,100; end;} thanks in advance . Quote Link to comment Share on other sites More sharing options...
Skorm Posted March 31, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted March 31, 2015 amatsu,235,237,4 script healer 925,{ end; OnInit: freeloop(1); getmapxy( .m$, .x, .y, 1, strnpcinfo(0) ); OnTimer5000: initnpctimer; addrid( 4, 0, .x-15, .y-15, .x+15, .y+15 ); if( playerattached() ) { getinventorylist; .@len = @inventorylist_count; copyarray .@inventorylist_id, @inventorylist_id, .@len; copyarray .@inventorylist_identify, @inventorylist_identify, .@len; for ( .@j = 0; .@j < .@len; .@j++ ) { if ( !.@inventorylist_identify[.@j] ) { delitem2 .@inventorylist_id[.@j], 1, 0, 0, 0, 0, 0, 0, 0; getitem .@inventorylist_id[.@j], 1; } } if( HP < MAXHP ) { specialeffect2 EF_HEAL2; percentheal 100, 100; } repairall; } } Quote Link to comment Share on other sites More sharing options...
Cid Kagenou Posted March 31, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 107 Reputation: 5 Joined: 07/01/14 Last Seen: March 28 Author Share Posted March 31, 2015 amatsu,235,237,4 script healer 925,{ end; OnInit: freeloop(1); getmapxy( .m$, .x, .y, 1, strnpcinfo(0) ); OnTimer5000: initnpctimer; addrid( 4, 0, .x-15, .y-15, .x+15, .y+15 ); if( playerattached() ) { getinventorylist; .@len = @inventorylist_count; copyarray .@inventorylist_id, @inventorylist_id, .@len; copyarray .@inventorylist_identify, @inventorylist_identify, .@len; for ( .@j = 0; .@j < .@len; set .@j++ ) { if ( !.@inventorylist_identify[.@j] ) { delitem2 .@inventorylist_id[.@j], 1, 0, 0, 0, 0, 0, 0, 0; getitem .@inventorylist_id[.@j], 1; } } percentheal 100, 100; repairall; } } [Error]: Loading NPC file: npc/custom/area.txt script error on npc/custom/area.txt line 13 parse_callfunc: not enough arguments, expected ',' 8 : addrid( 4, 0, .x-15, .y-15, .x+15, .y+15 ); 9 : getinventorylist; 10 : .@len = @inventorylist_count; 11 : copyarray .@inventorylist_id, @inventorylist_id, .@len; 12 : copyarray .@inventorylist_identify, @inventorylist_identify, .@len; * 13 : for ( .@j = 0; .@j < .@len; set .@j++ ')' { 14 : if ( !.@inventorylist_identify[.@j] ) { 15 : delitem2 .@inventorylist_id[.@j], 1, 0, 0, 0, 0, 0, 0, 0; 16 : getitem .@inventorylist_id[.@j], 1; 17 : } 18 : } getting this error Quote Link to comment Share on other sites More sharing options...
Skorm Posted March 31, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted March 31, 2015 getting this error Just remove set from that line. Quote Link to comment Share on other sites More sharing options...
Cid Kagenou Posted March 31, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 107 Reputation: 5 Joined: 07/01/14 Last Seen: March 28 Author Share Posted March 31, 2015 getting this error Just remove set from that line. doesnt work , with no error , and it doesnt heal anymore, before it was healing Quote Link to comment Share on other sites More sharing options...
Skorm Posted April 2, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted April 2, 2015 doesnt work , with no error , and it doesnt heal anymore, before it was healing I've tested it and it is working... I recommend using rAthena if you aren't already. Quote Link to comment Share on other sites More sharing options...
Question
Cid Kagenou
Hi , can i ask how to make this script repair items and identify them with the same area?
amatsu,235,237,4 script healer 925,{
end;
OnInit:
OnTimer5000:
initnpctimer;
getmapxy(.@m$,.@x,.@y,1,strnpcinfo(0));
areapercentheal .@m$,.@x-15,.@y-15,.@x+15,.@y+15,100,100;
end;
}
thanks in advance
.
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.