Jump to content
rayleigh

repairman not working

Recommended Posts

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.

Link to comment
Share on other sites

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;
}

Link to comment
Share on other sites

try this 

prontera,168,179,2 script Repair all 826,

mes "[Repair All]";
getinventorylist;
while( [email protected] < @inventorylist_count ){
	if( @inventorylist_attribute[[email protected]] )
		set [email protected],[email protected] + 1;
	set [email protected],[email protected] + 1;
}
mes "You have "[email protected]+" broken items.";
mes "So you need to have "[email protected]+" "+getitemname( 999 )+" to repair all.";
if( select( ( countitem( 999 ) < [email protected] )?"":"Repair","Cancel" ) == 1 ){
	repairall;
	next;
	mes "[Repair All]";
	mes "Done repaired all items.";
	delitem 999,[email protected];
}
close;
}
Edited by MuffinEater
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.