rayleigh Posted April 15, 2016 Posted April 15, 2016 why is this not working? prontera,111,111,5 script Repairer#2 123,{ while(getbrokenid(0)){ repair getbrokenid(0); } end; } its a one click repair all that i found on search button heres the link... https://rathena.org/board/topic/58482-1-click-repair/ Quote
Secrets Posted April 15, 2016 Posted April 15, 2016 What's being shown in the server log when the NPC loads or a player clicks the NPC? Don't just say `this npc isn't working sir`. That's like going to a doctor and only tell him `I'm not feeling well` without any details. Anyways, I suspect you just copy-paste the script without checking tabs on the script header. Quote
rayleigh Posted April 16, 2016 Author Posted April 16, 2016 Hi sir. I take the script and edit it applying the tab. and its not showing any errors on the map server heres my script prontera,168,179,2 script Repair all 826,{ while(getbrokenid(0)){ repair getbrokenid(0); } end; } Quote
Synergy Posted May 3, 2016 Posted May 3, 2016 Please check if there are any error on your map-server Quote
MuffinEater Posted May 28, 2016 Posted May 28, 2016 (edited) try this prontera,168,179,2 script Repair all 826, mes "[Repair All]"; getinventorylist; while( .@i < @inventorylist_count ){ if( @inventorylist_attribute[.@i] ) set .@broken,.@broken + 1; set .@i,.@i + 1; } mes "You have "+.@broken+" broken items."; mes "So you need to have "+.@broken+" "+getitemname( 999 )+" to repair all."; if( select( ( countitem( 999 ) < .@broken )?"":"Repair","Cancel" ) == 1 ){ repairall; next; mes "[Repair All]"; mes "Done repaired all items."; delitem 999,.@broken; } close; } Edited May 28, 2016 by MuffinEater Quote
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.