Draundenth Posted April 29, 2021 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 04/23/21 Last Seen: January 15, 2024 Share Posted April 29, 2021 Hello i'm using this healer script on my server: //===== Hercules Script ====================================== //= Healer npc //===== By: ================================================== //= AnnieRuru //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= Hercules 2015-12-02 //===== Description: ========================================= //= my custom healer script used on defunt ComelRO //===== Topic ================================================ //= http://herc.ws/board/topic/11193-edite-my-healer-by-annieruru/?hl=healer#entry66007 //===== Additional Comments: ================================= //= ComelRO was a high rate server ... I posted it on eathena forum when it went down //= https://www.eathena.ws/board/index.php?s=&showtopic=274421&view=findpost&p=1504415 //============================================================ prontera,155,185,5 script Healer 1_F_MARIA,{ .@cooldown = 10; // how many seconds before the player can heal again if ( @heal_cooldown + .@cooldown > gettimetick(2) ) { dispbottom "You need wait for " + ( @heal_cooldown + .@cooldown - gettimetick(2) ) + " seconds."; end; } // disable negative buffs ... I out from RO scene for about 4 years, so this is my only known negative buffs sc_end SC_STONE; sc_end SC_FREEZE; sc_end SC_STUN; sc_end SC_SLEEP; sc_end SC_POISON; sc_end SC_CURSE; sc_end SC_SILENCE; sc_end SC_CONFUSION; sc_end SC_BLIND; sc_end SC_BLOODING; sc_end SC_DPOISON; sc_end SC_FEAR; sc_end SC_COLD; sc_end SC_BURNING; sc_end SC_DEEP_SLEEP; sc_end SC_DEC_AGI; sc_end SC_BROKENARMOR; sc_end SC_BROKENWEAPON; sc_end SC_NOEQUIPWEAPON; sc_end SC_NOEQUIPSHIELD; sc_end SC_NOEQUIPARMOR; sc_end SC_NOEQUIPHELM; sc_end SC__STRIPACCESSARY; sc_end SC_PROPERTYUNDEAD; sc_end SC_ORCISH; sc_end SC_BERSERK; sc_end SC_SKE; sc_end SC_SWOO; sc_end SC_SKA; // give players buff ... don't give too much otherwise player wanna spam .@time = 300000; // the buff last 5 minutes sc_start SC_INC_AGI, .@time, 10; sc_start SC_BLESSING, .@time, 10; // sc_start SC_CONCENTRATION, .@time, 10; // sc_start SC_IMPOSITIO, .@time, 5; // sc_start SC_SUFFRAGIUM, .@time, 3; // sc_start SC_KYRIE, .@time, 10; // sc_start SC_MAGNIFICAT, .@time, 5; // sc_start SC_GLORIA, .@time, 5; // sc_start SC_WINDWALK, .@time, 5; // sc_start SC_ANGELUS, .@time, 10; // give player's soul link if ( .@spirit = .spirit[BaseJob] ); else if ( Upper & 1 && BaseLevel < 70 ) .@spirit = SL_HIGH; if ( .@spirit ) { sc_start4 SC_SOULLINK, .@time, 1, .@spirit,0,0; skilleffect .@spirit, 1; } // automatically turn all oridecon and elunium stone into pure stone to reduce player's weight .@ori = countitem(Oridecon_Stone); if ( .@ori >= 5 ) { delitem Oridecon_Stone, .@ori / 5 * 5; getitem Oridecon, .@ori / 5; message strcharinfo(0), "Refined "+ ( .@ori / 5 * 5 ) +" Oridecon Stones, got "+ ( .@ori / 5 ) +" Oridecons."; } .@elu = countitem(Elunium_Stone); if ( .@elu >= 5 ) { delitem Elunium_Stone, .@elu / 5 * 5; getitem Elunium, .@elu / 5; message strcharinfo(0), "Refined "+ ( .@elu / 5 * 5 ) +" Elunium Stones, got "+ ( .@elu / 5 ) +" Eluniums."; } // repair all player's broken eqiupments repairall; // identify all player's equipments getinventorylist; for( .@i = 0; .@i < @inventorylist_count; .@i++ ) { if ( @inventorylist_identify[.@i] == 1 ) continue; else if ( getskilllv(MC_IDENTIFY) == 1 && Sp >= 10 ) heal 0,0; // lol... this is supposed to reduce their SP by 10, whatever else if ( countitem(Spectacles) ) delitem Spectacles,1; else if ( getskilllv(RG_COMPULSION) && Zeny >= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5 ) Zeny -= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5; else if ( getskilllv(MC_DISCOUNT) && Zeny >= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5 ) Zeny -= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5; else if ( Zeny >= 40 ) Zeny -= 40; else break; delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0; getitem @inventorylist_id[.@i],1; .@icount++; } if ( .@icount ) message strcharinfo(0), "Identified "+ .@icount +" Items."; // and last, give players heal percentheal 100,100; skilleffect AL_HEAL, MaxHp; skilleffect MG_SRECOVERY, MaxSp; emotion e_lv; @heal_cooldown = gettimetick(2); end; OnInit: .spirit[Job_Alchemist] = SL_ALCHEMIST; .spirit[Job_Monk] = SL_MONK; .spirit[Job_Star_Gladiator] = SL_STAR; .spirit[Job_Sage] = SL_SAGE; .spirit[Job_Crusader] = SL_CRUSADER; .spirit[Job_SuperNovice] = SL_SUPERNOVICE; .spirit[Job_Knight] = SL_KNIGHT; .spirit[Job_Wizard] = SL_WIZARD; .spirit[Job_Priest] = SL_PRIEST; .spirit[Job_Bard] = .spirit[Job_Dancer] = SL_BARDDANCER; .spirit[Job_Rogue] = SL_ROGUE; .spirit[Job_Assassin] = SL_ASSASIN; .spirit[Job_Blacksmith] = SL_BLACKSMITH; .spirit[Job_Hunter] = SL_HUNTER; .spirit[Job_Soul_Linker] = SL_SOULLINKER; end; } when click it in game he not identify and not change rough elu-ori into elu/ori in mapservr i have this error after clicked npc: [Error]: buildin_countitem: Invalid item '0'. [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_countitem: Invalid item '0'. [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_skilleffect: Invalid skill defined (0)! [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_skilleffect: Invalid skill defined (0)! [Debug]: Source (NPC): Healer at prontera (153,193) anyone know how fix that ? Quote Link to comment Share on other sites More sharing options...
0 Radian Posted April 29, 2021 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted April 29, 2021 (edited) 38 minutes ago, Draundenth said: Hello i'm using this healer script on my server: //===== Hercules Script ====================================== //= Healer npc //===== By: ================================================== //= AnnieRuru //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= Hercules 2015-12-02 //===== Description: ========================================= //= my custom healer script used on defunt ComelRO //===== Topic ================================================ //= http://herc.ws/board/topic/11193-edite-my-healer-by-annieruru/?hl=healer#entry66007 //===== Additional Comments: ================================= //= ComelRO was a high rate server ... I posted it on eathena forum when it went down //= https://www.eathena.ws/board/index.php?s=&showtopic=274421&view=findpost&p=1504415 //============================================================ prontera,155,185,5 script Healer 1_F_MARIA,{ .@cooldown = 10; // how many seconds before the player can heal again if ( @heal_cooldown + .@cooldown > gettimetick(2) ) { dispbottom "You need wait for " + ( @heal_cooldown + .@cooldown - gettimetick(2) ) + " seconds."; end; } // disable negative buffs ... I out from RO scene for about 4 years, so this is my only known negative buffs sc_end SC_STONE; sc_end SC_FREEZE; sc_end SC_STUN; sc_end SC_SLEEP; sc_end SC_POISON; sc_end SC_CURSE; sc_end SC_SILENCE; sc_end SC_CONFUSION; sc_end SC_BLIND; sc_end SC_BLOODING; sc_end SC_DPOISON; sc_end SC_FEAR; sc_end SC_COLD; sc_end SC_BURNING; sc_end SC_DEEP_SLEEP; sc_end SC_DEC_AGI; sc_end SC_BROKENARMOR; sc_end SC_BROKENWEAPON; sc_end SC_NOEQUIPWEAPON; sc_end SC_NOEQUIPSHIELD; sc_end SC_NOEQUIPARMOR; sc_end SC_NOEQUIPHELM; sc_end SC__STRIPACCESSARY; sc_end SC_PROPERTYUNDEAD; sc_end SC_ORCISH; sc_end SC_BERSERK; sc_end SC_SKE; sc_end SC_SWOO; sc_end SC_SKA; // give players buff ... don't give too much otherwise player wanna spam .@time = 300000; // the buff last 5 minutes sc_start SC_INC_AGI, .@time, 10; sc_start SC_BLESSING, .@time, 10; // sc_start SC_CONCENTRATION, .@time, 10; // sc_start SC_IMPOSITIO, .@time, 5; // sc_start SC_SUFFRAGIUM, .@time, 3; // sc_start SC_KYRIE, .@time, 10; // sc_start SC_MAGNIFICAT, .@time, 5; // sc_start SC_GLORIA, .@time, 5; // sc_start SC_WINDWALK, .@time, 5; // sc_start SC_ANGELUS, .@time, 10; // give player's soul link if ( .@spirit = .spirit[BaseJob] ); else if ( Upper & 1 && BaseLevel < 70 ) .@spirit = SL_HIGH; if ( .@spirit ) { sc_start4 SC_SOULLINK, .@time, 1, .@spirit,0,0; skilleffect .@spirit, 1; } // automatically turn all oridecon and elunium stone into pure stone to reduce player's weight .@ori = countitem(Oridecon_Stone); if ( .@ori >= 5 ) { delitem Oridecon_Stone, .@ori / 5 * 5; getitem Oridecon, .@ori / 5; message strcharinfo(0), "Refined "+ ( .@ori / 5 * 5 ) +" Oridecon Stones, got "+ ( .@ori / 5 ) +" Oridecons."; } .@elu = countitem(Elunium_Stone); if ( .@elu >= 5 ) { delitem Elunium_Stone, .@elu / 5 * 5; getitem Elunium, .@elu / 5; message strcharinfo(0), "Refined "+ ( .@elu / 5 * 5 ) +" Elunium Stones, got "+ ( .@elu / 5 ) +" Eluniums."; } // repair all player's broken eqiupments repairall; // identify all player's equipments getinventorylist; for( .@i = 0; .@i < @inventorylist_count; .@i++ ) { if ( @inventorylist_identify[.@i] == 1 ) continue; else if ( getskilllv(MC_IDENTIFY) == 1 && Sp >= 10 ) heal 0,0; // lol... this is supposed to reduce their SP by 10, whatever else if ( countitem(Spectacles) ) delitem Spectacles,1; else if ( getskilllv(RG_COMPULSION) && Zeny >= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5 ) Zeny -= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5; else if ( getskilllv(MC_DISCOUNT) && Zeny >= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5 ) Zeny -= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5; else if ( Zeny >= 40 ) Zeny -= 40; else break; delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0; getitem @inventorylist_id[.@i],1; .@icount++; } if ( .@icount ) message strcharinfo(0), "Identified "+ .@icount +" Items."; // and last, give players heal percentheal 100,100; skilleffect AL_HEAL, MaxHp; skilleffect MG_SRECOVERY, MaxSp; emotion e_lv; @heal_cooldown = gettimetick(2); end; OnInit: .spirit[Job_Alchemist] = SL_ALCHEMIST; .spirit[Job_Monk] = SL_MONK; .spirit[Job_Star_Gladiator] = SL_STAR; .spirit[Job_Sage] = SL_SAGE; .spirit[Job_Crusader] = SL_CRUSADER; .spirit[Job_SuperNovice] = SL_SUPERNOVICE; .spirit[Job_Knight] = SL_KNIGHT; .spirit[Job_Wizard] = SL_WIZARD; .spirit[Job_Priest] = SL_PRIEST; .spirit[Job_Bard] = .spirit[Job_Dancer] = SL_BARDDANCER; .spirit[Job_Rogue] = SL_ROGUE; .spirit[Job_Assassin] = SL_ASSASIN; .spirit[Job_Blacksmith] = SL_BLACKSMITH; .spirit[Job_Hunter] = SL_HUNTER; .spirit[Job_Soul_Linker] = SL_SOULLINKER; end; } when click it in game he not identify and not change rough elu-ori into elu/ori in mapservr i have this error after clicked npc: [Error]: buildin_countitem: Invalid item '0'. [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_countitem: Invalid item '0'. [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_skilleffect: Invalid skill defined (0)! [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_skilleffect: Invalid skill defined (0)! [Debug]: Source (NPC): Healer at prontera (153,193) anyone know how fix that ? I dont think this will work on rAthena since these are not available. the Oridecon_Stone part now // automatically turn all oridecon and elunium stone into pure stone to reduce player's weight .@ori = countitem(Oridecon_Stone); if ( .@ori >= 5 ) { delitem Oridecon_Stone, .@ori / 5 * 5; getitem Oridecon, .@ori / 5; message strcharinfo(0), "Refined "+ ( .@ori / 5 * 5 ) +" Oridecon Stones, got "+ ( .@ori / 5 ) +" Oridecons."; } .@elu = countitem(Elunium_Stone); if ( .@elu >= 5 ) { delitem Elunium_Stone, .@elu / 5 * 5; getitem Elunium, .@elu / 5; message strcharinfo(0), "Refined "+ ( .@elu / 5 * 5 ) +" Elunium Stones, got "+ ( .@elu / 5 ) +" Eluniums."; } change that part into this // automatically turn all oridecon and elunium stone into pure stone to reduce player's weight .@ori = countitem(756); if ( .@ori >= 5 ) { delitem 756, .@ori / 5 * 5; getitem 984, .@ori / 5; message strcharinfo(0), "Refined "+ ( .@ori / 5 * 5 ) +" Oridecon Stones, got "+ ( .@ori / 5 ) +" Oridecons."; } .@elu = countitem(757); if ( .@elu >= 5 ) { delitem 757, .@elu / 5 * 5; getitem 985, .@elu / 5; message strcharinfo(0), "Refined "+ ( .@elu / 5 * 5 ) +" Elunium Stones, got "+ ( .@elu / 5 ) +" Eluniums."; } Edited April 29, 2021 by Radian 1 Quote Link to comment Share on other sites More sharing options...
0 Draundenth Posted April 29, 2021 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 04/23/21 Last Seen: January 15, 2024 Author Share Posted April 29, 2021 all work good now but i have another problem i forgot to mention, after reload healer i have this errors in mapserv: [Status]: NPC file 'npc/custom/healer.txt' was reloaded. [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer at prontera (153,193) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#alb at alberta (25,240) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#alde at aldebaran (135,118) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#ama at amatsu (204,112) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#ayo at ayothaya (144,117) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#com at comodo (184,158) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#einbe at einbech (57,36) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#einbr at einbroch (57,202) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#gef at geffen (115,72) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#gon at gonryun (156,122) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#hug at hugel (89,150) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#izl at izlude (121,150) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#jaw at jawaii (250,139) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#lhz at lighthalzen (152,100) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#lou at louyang (223,120) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#man at manuk (272,144) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#mid at mid_camp (203,289) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#moc at moc_ruins (72,164) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#mor at morocc (153,97) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#mos at moscovia (220,191) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#nif at niflheim (212,182) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#pay at payon (163,226) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#rac at rachel (125,116) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#spl at splendide (201,153) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#thor at thor_camp (249,74) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#umb at umbala (105,148) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#ve at veins (217,121) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#xmas at xmas (143,136) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#yuno at yuno (164,45) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Status]: Event 'OnInit' executed with '29' NPCs. any fix for that ? Quote Link to comment Share on other sites More sharing options...
0 Radian Posted April 29, 2021 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted April 29, 2021 1 hour ago, Draundenth said: all work good now but i have another problem i forgot to mention, after reload healer i have this errors in mapserv: [Status]: NPC file 'npc/custom/healer.txt' was reloaded. [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer at prontera (153,193) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#alb at alberta (25,240) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#alde at aldebaran (135,118) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#ama at amatsu (204,112) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#ayo at ayothaya (144,117) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#com at comodo (184,158) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#einbe at einbech (57,36) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#einbr at einbroch (57,202) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#gef at geffen (115,72) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#gon at gonryun (156,122) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#hug at hugel (89,150) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#izl at izlude (121,150) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#jaw at jawaii (250,139) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#lhz at lighthalzen (152,100) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#lou at louyang (223,120) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#man at manuk (272,144) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#mid at mid_camp (203,289) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#moc at moc_ruins (72,164) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#mor at morocc (153,97) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#mos at moscovia (220,191) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#nif at niflheim (212,182) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#pay at payon (163,226) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#rac at rachel (125,116) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#spl at splendide (201,153) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#thor at thor_camp (249,74) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#umb at umbala (105,148) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#ve at veins (217,121) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#xmas at xmas (143,136) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Error]: get_val_: fatal error ! player not attached! [Debug]: Function: setr (2 parameters): [Debug]: Data: variable name='.spirit' index=18 [Debug]: Data: variable name='SL_ALCHEMIST' index=0 [Debug]: Source (NPC): Healer#yuno at yuno (164,45) [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0 [Status]: Event 'OnInit' executed with '29' NPCs. any fix for that ? // give player's soul link if ( .@spirit = .spirit[BaseJob] ); else if ( Upper & 1 && BaseLevel < 70 ) .@spirit = SL_HIGH; if ( .@spirit ) { sc_start4 SC_SOULLINK, .@time, 1, .@spirit,0,0; skilleffect .@spirit, 1; } change that part into this // give player's soul link if ( .@spirit = .spirit[BaseJob] ); else if ( Upper & 1 && BaseLevel < 70 ) .@spirit = 494; if ( .@spirit ) { sc_start4 SC_SPIRIT, .@time, 5, .@spirit,0,0; skilleffect .@spirit, 5; } 1 Quote Link to comment Share on other sites More sharing options...
0 Draundenth Posted April 30, 2021 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 04/23/21 Last Seen: January 15, 2024 Author Share Posted April 30, 2021 (edited) ok i fix that, i do what Radian said thanks so much for help, and i change this: OnInit: .spirit[Job_Alchemist] = SL_ALCHEMIST; .spirit[Job_Monk] = SL_MONK; .spirit[Job_Star_Gladiator] = SL_STAR; .spirit[Job_Sage] = SL_SAGE; .spirit[Job_Crusader] = SL_CRUSADER; .spirit[Job_SuperNovice] = SL_SUPERNOVICE; .spirit[Job_Knight] = SL_KNIGHT; .spirit[Job_Wizard] = SL_WIZARD; .spirit[Job_Priest] = SL_PRIEST; .spirit[Job_Bard] = .spirit[Job_Dancer] = SL_BARDDANCER; .spirit[Job_Rogue] = SL_ROGUE; .spirit[Job_Assassin] = SL_ASSASIN; .spirit[Job_Blacksmith] = SL_BLACKSMITH; .spirit[Job_Hunter] = SL_HUNTER; .spirit[Job_Soul_Linker] = SL_SOULLINKER; end; } into this: OnInit: .spirit[Job_Alchemist] = 445; .spirit[Job_Monk] = 447; .spirit[Job_Star_Gladiator] = 448; .spirit[Job_Sage] = 449; .spirit[Job_Crusader] = 450; .spirit[Job_SuperNovice] = 451; .spirit[Job_Knight] = 452; .spirit[Job_Wizard] = 453; .spirit[Job_Priest] = 454; .spirit[Job_Bard] = .spirit[Job_Dancer] = 455; .spirit[Job_Rogue] = 456; .spirit[Job_Assassin] = 457; .spirit[Job_Blacksmith] = 458; .spirit[Job_Hunter] = 460; .spirit[Job_Soul_Linker] = 461; end; } now all work perectly ^^ Edited April 30, 2021 by Draundenth Quote Link to comment Share on other sites More sharing options...
Question
Draundenth
Hello i'm using this healer script on my server:
//===== Hercules Script ====================================== //= Healer npc //===== By: ================================================== //= AnnieRuru //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= Hercules 2015-12-02 //===== Description: ========================================= //= my custom healer script used on defunt ComelRO //===== Topic ================================================ //= http://herc.ws/board/topic/11193-edite-my-healer-by-annieruru/?hl=healer#entry66007 //===== Additional Comments: ================================= //= ComelRO was a high rate server ... I posted it on eathena forum when it went down //= https://www.eathena.ws/board/index.php?s=&showtopic=274421&view=findpost&p=1504415 //============================================================ prontera,155,185,5 script Healer 1_F_MARIA,{ .@cooldown = 10; // how many seconds before the player can heal again if ( @heal_cooldown + .@cooldown > gettimetick(2) ) { dispbottom "You need wait for " + ( @heal_cooldown + .@cooldown - gettimetick(2) ) + " seconds."; end; } // disable negative buffs ... I out from RO scene for about 4 years, so this is my only known negative buffs sc_end SC_STONE; sc_end SC_FREEZE; sc_end SC_STUN; sc_end SC_SLEEP; sc_end SC_POISON; sc_end SC_CURSE; sc_end SC_SILENCE; sc_end SC_CONFUSION; sc_end SC_BLIND; sc_end SC_BLOODING; sc_end SC_DPOISON; sc_end SC_FEAR; sc_end SC_COLD; sc_end SC_BURNING; sc_end SC_DEEP_SLEEP; sc_end SC_DEC_AGI; sc_end SC_BROKENARMOR; sc_end SC_BROKENWEAPON; sc_end SC_NOEQUIPWEAPON; sc_end SC_NOEQUIPSHIELD; sc_end SC_NOEQUIPARMOR; sc_end SC_NOEQUIPHELM; sc_end SC__STRIPACCESSARY; sc_end SC_PROPERTYUNDEAD; sc_end SC_ORCISH; sc_end SC_BERSERK; sc_end SC_SKE; sc_end SC_SWOO; sc_end SC_SKA; // give players buff ... don't give too much otherwise player wanna spam .@time = 300000; // the buff last 5 minutes sc_start SC_INC_AGI, .@time, 10; sc_start SC_BLESSING, .@time, 10; // sc_start SC_CONCENTRATION, .@time, 10; // sc_start SC_IMPOSITIO, .@time, 5; // sc_start SC_SUFFRAGIUM, .@time, 3; // sc_start SC_KYRIE, .@time, 10; // sc_start SC_MAGNIFICAT, .@time, 5; // sc_start SC_GLORIA, .@time, 5; // sc_start SC_WINDWALK, .@time, 5; // sc_start SC_ANGELUS, .@time, 10; // give player's soul link if ( .@spirit = .spirit[BaseJob] ); else if ( Upper & 1 && BaseLevel < 70 ) .@spirit = SL_HIGH; if ( .@spirit ) { sc_start4 SC_SOULLINK, .@time, 1, .@spirit,0,0; skilleffect .@spirit, 1; } // automatically turn all oridecon and elunium stone into pure stone to reduce player's weight .@ori = countitem(Oridecon_Stone); if ( .@ori >= 5 ) { delitem Oridecon_Stone, .@ori / 5 * 5; getitem Oridecon, .@ori / 5; message strcharinfo(0), "Refined "+ ( .@ori / 5 * 5 ) +" Oridecon Stones, got "+ ( .@ori / 5 ) +" Oridecons."; } .@elu = countitem(Elunium_Stone); if ( .@elu >= 5 ) { delitem Elunium_Stone, .@elu / 5 * 5; getitem Elunium, .@elu / 5; message strcharinfo(0), "Refined "+ ( .@elu / 5 * 5 ) +" Elunium Stones, got "+ ( .@elu / 5 ) +" Eluniums."; } // repair all player's broken eqiupments repairall; // identify all player's equipments getinventorylist; for( .@i = 0; .@i < @inventorylist_count; .@i++ ) { if ( @inventorylist_identify[.@i] == 1 ) continue; else if ( getskilllv(MC_IDENTIFY) == 1 && Sp >= 10 ) heal 0,0; // lol... this is supposed to reduce their SP by 10, whatever else if ( countitem(Spectacles) ) delitem Spectacles,1; else if ( getskilllv(RG_COMPULSION) && Zeny >= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5 ) Zeny -= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5; else if ( getskilllv(MC_DISCOUNT) && Zeny >= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5 ) Zeny -= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5; else if ( Zeny >= 40 ) Zeny -= 40; else break; delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0; getitem @inventorylist_id[.@i],1; .@icount++; } if ( .@icount ) message strcharinfo(0), "Identified "+ .@icount +" Items."; // and last, give players heal percentheal 100,100; skilleffect AL_HEAL, MaxHp; skilleffect MG_SRECOVERY, MaxSp; emotion e_lv; @heal_cooldown = gettimetick(2); end; OnInit: .spirit[Job_Alchemist] = SL_ALCHEMIST; .spirit[Job_Monk] = SL_MONK; .spirit[Job_Star_Gladiator] = SL_STAR; .spirit[Job_Sage] = SL_SAGE; .spirit[Job_Crusader] = SL_CRUSADER; .spirit[Job_SuperNovice] = SL_SUPERNOVICE; .spirit[Job_Knight] = SL_KNIGHT; .spirit[Job_Wizard] = SL_WIZARD; .spirit[Job_Priest] = SL_PRIEST; .spirit[Job_Bard] = .spirit[Job_Dancer] = SL_BARDDANCER; .spirit[Job_Rogue] = SL_ROGUE; .spirit[Job_Assassin] = SL_ASSASIN; .spirit[Job_Blacksmith] = SL_BLACKSMITH; .spirit[Job_Hunter] = SL_HUNTER; .spirit[Job_Soul_Linker] = SL_SOULLINKER; end; }
when click it in game he not identify and not change rough elu-ori into elu/ori in mapservr i have this error after clicked npc:
[Error]: buildin_countitem: Invalid item '0'. [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_countitem: Invalid item '0'. [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_skilleffect: Invalid skill defined (0)! [Debug]: Source (NPC): Healer at prontera (153,193) [Error]: buildin_skilleffect: Invalid skill defined (0)! [Debug]: Source (NPC): Healer at prontera (153,193)
anyone know how fix that ?
Link to comment
Share on other sites
4 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.