Jump to content
  • 0

Need assistance with: Healer, Buffer, Identifier


Question

Posted (edited)

Good day, I'm trying to get Identify in this script when you click it, it automatically ID's everything.
 

getinventorylist;
	for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) {
		if ( @inventorylist_identify[.@i] == 1 ) continue;
		delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
		getitem @inventorylist_id[.@i],1;
	}
}
//===== Heroes of Vanaheim ===================================
// Healer + Buffer + Identifier
//============================================================

-	script	Healer	436,{

	.@Price = 0;	// Zeny required for heal
	.@Buffs = 1;	// Also buff players? (1: yes / 0: no)
	.@Delay = 10;	// Heal delay, in seconds

	if (@HD > gettimetick(2))
		end;
	if (.@Price) {
		message strcharinfo(0), "Healing costs " + callfunc("F_InsertComma",.@Price) + " Zeny.";
		if (Zeny < .@Price)
			end;
		if (select("^0055FFHeal^000000:^777777Cancel^000000") == 2)
			end;
		Zeny -= .@Price;
	}
	specialeffect2 EF_HEAL2;
	percentheal 100,100;
	if (.@Buffs) {
		specialeffect2 EF_INCAGILITY;
		sc_start SC_INCREASEAGI,360000,10;
		specialeffect2 EF_BLESSING;
		sc_start SC_BLESSING,360000,10;
	}
	if (.@Delay)
		@HD = gettimetick(2) + .@Delay;
	end;
}


// Duplicates
//============================================================
alberta,25,240,6	duplicate(Healer)	Healer#alb	436
aldebaran,135,118,6	duplicate(Healer)	Healer#alde	436
amatsu,200,79,4	duplicate(Healer)	Healer#ama	436
ayothaya,207,169,6	duplicate(Healer)	Healer#ayo	436
comodo,184,158,6	duplicate(Healer)	Healer#com	436
einbech,57,36,6	duplicate(Healer)	Healer#einbe	436
einbroch,57,202,6	duplicate(Healer)	Healer#einbr	436
geffen,115,72,6	duplicate(Healer)	Healer#gef	436
gonryun,156,122,6	duplicate(Healer)	Healer#gon	436
hugel,89,150,6	duplicate(Healer)	Healer#hug	436
izlude,121,150,6	duplicate(Healer)	Healer#izl	436	//Pre-RE: (125,118)
izlude_a,134,150,4	duplicate(Healer)	Healer#izl	811	//Pre-RE: (125,118)
izlude_b,134,150,4	duplicate(Healer)	Healer#izl	811	//Pre-RE: (125,118)
izlude_c,134,150,4	duplicate(Healer)	Healer#izl	811	//Pre-RE: (125,118)
izlude_d,134,150,4	duplicate(Healer)	Healer#izl	811	//Pre-RE: (125,118)
jawaii,250,139,4	duplicate(Healer)	Healer#jaw	436
lighthalzen,152,100,6	duplicate(Healer)	Healer#lhz	436
louyang,226,103,4	duplicate(Healer)	Healer#lou	436
manuk,272,144,6	duplicate(Healer)	Healer#man	436
mid_camp,203,289,6	duplicate(Healer)	Healer#mid	436
moc_ruins,72,164,4	duplicate(Healer)	Healer#moc	436
morocc,153,97,6	duplicate(Healer)	Healer#mor	436
moscovia,220,191,4	duplicate(Healer)	Healer#mos	436
niflheim,212,182,5	duplicate(Healer)	Healer#nif	436
payon,179,106,4	duplicate(Healer)	Healer#pay	436
prontera,157,187,4	duplicate(Healer)	Healer#prt	436
rachel,125,116,6	duplicate(Healer)	Healer#rac	436
splendide,201,153,4	duplicate(Healer)	Healer#spl	436
thor_camp,249,74,4	duplicate(Healer)	Healer#thor	436
umbala,105,148,3	duplicate(Healer)	Healer#umb	436
veins,217,121,4	duplicate(Healer)	Healer#ve	436
xmas,143,136,4	duplicate(Healer)	Healer#xmas	436
yuno,164,45,4	duplicate(Healer)	Healer#yuno	436
veil,126,150,4	duplicate(Healer)	Healer#veil	436

// Duplicates (Renewal)
//============================================================
brasilis,194,221,6	duplicate(Healer)	Healer#bra	436
dewata,195,187,4	duplicate(Healer)	Healer#dew	436
dicastes01,201,194,4	duplicate(Healer)	Healer#dic	436
ecl_in01,45,60,4	duplicate(Healer)	Healer#ecl	436
malangdo,132,114,6	duplicate(Healer)	Healer#mal	436
malaya,227,204,6	duplicate(Healer)	Healer#ma	436
mora,55,152,4	duplicate(Healer)	Healer#mora	436

 

Edited by Rivers

3 answers to this question

Recommended Posts

  • 1
Posted
(...)
indentifyall(true);
specialeffect2 EF_HEAL2;
percentheal 100,100;
(...)

Right above  specialeffect2.

If you want a trigger you can use.:

(...)
.@Price = 0;    // Zeny required for heal
.@Buffs = 1;    // Also buff players? (1: yes / 0: no)
.@Delay = 10;    // Heal delay, in seconds
.@identify = 1;  // Also identify? (1: yes / 0: no)
(...)
if (.@identify)
    indentifyall(true);
specialeffect2 EF_HEAL2; 
percentheal 100,100;
(...)

This is extremely basic, so maybe will help if have a look on this:
https://github.com/rathena/rathena/blob/master/doc/script_commands.txt
 

  • Upvote 1
  • 0
Posted
*identifyall({<type>{,<account_id>}});

Returns the count of unidentified items in the player inventory.
If <type> is true the command will identify all the unidentified items as well (default).
If <type> is false the command only returns the count of unidentified items.

 

  • Upvote 1

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