• 0
garro

Heal only in Woe

Question

 

Hello community, I found this npc somewhere in the forum, I would like it to only heal when woe starts, and to say this disbottom we are woe I only give heal

heal.txt

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
getinventorylist;
while( .@i < @inventorylist_count ){
	if ( !@inventorylist_identify[.@i] ){
		delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
		getitem @inventorylist_id[.@i],1;
	}
	.@i++;
}

bad code

actually there are some items that are drop with cards, or item options (example crimson weapons)
https://rathena.org/board/topic/118245-error-buildin_delitem2-failed-to-delete-1-items/?do=findComment&comment=357700

we either need a getitem3/delitem3 script command or identifyall script command ... we missing both of them right now

 

and for your answer
just add if ( agitcheck() || agitcheck2() ) ... something like that

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now