Jump to content

Question

2 answers to this question

Recommended Posts

Posted

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

I have this in stock, I never used it and I don't even know who it belongs to xD

 

It'll heal, identify, repair all players around it every 5 seconds

oh sry I forgot blessing and agi

amatsu,235,237,4	script	healer	925,{ //30 32
	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;
		}
		if (!getstatus(30)) sc_start 30,240000,10;
		if (!getstatus(32))sc_start 32,240000,10;
		repairall;
	}
}

Join the conversation

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

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...