Rivers Posted July 24, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 244 Reputation: 58 Joined: 12/04/13 Last Seen: April 20 Share Posted July 24, 2020 (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 July 24, 2020 by Rivers Quote Link to comment Share on other sites More sharing options...
1 buraquera Posted July 24, 2020 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 68 Reputation: 8 Joined: 05/12/20 Last Seen: April 6 Share Posted July 24, 2020 (...) 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 1 Quote Link to comment Share on other sites More sharing options...
0 Mabuhay Posted July 24, 2020 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted July 24, 2020 *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. 1 Quote Link to comment Share on other sites More sharing options...
0 Rivers Posted July 24, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 244 Reputation: 58 Joined: 12/04/13 Last Seen: April 20 Author Share Posted July 24, 2020 Thank you for this, but I'm still having troubles as where to put it in the lines. Thanks.. And thanks for this resource! Quote Link to comment Share on other sites More sharing options...
Question
Rivers
Good day, I'm trying to get Identify in this script when you click it, it automatically ID's everything.
//===== 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
Link to comment
Share on other sites
3 answers to this question
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.