Jump to content
  • Featured Topics

  • Latest Commits

  • Topics

  • Posts

    • The error is due to the main NPC not being in a map. As it is not in a map, Herc most likely didn't initialize unit data for it (since it would be useless).   Either put it in a map or add a check to not apply unitdata for it. Here is how to do the 2nd option: OnInit: if (strnpcinfo(NPC_MAP) == "") // Not in a map, can't set view data end; setunitdata(getnpcid(), UDT_GROUP, 1); setunittitle(getnpcid(), "Goddess Statue"); end;  
    • That's weird... cvc was implemented together with the clan system, not having cvc would mean you don't have the clan system too. I do recommend updating though, since it is there since 2017. But here is the PR that introduced it: https://github.com/HerculesWS/Hercules/pull/1718  
    • I did a check and I saw that my emulator still doesn't have cvc, is there any diff or patch that I can add to my emulator?
    • Hello, I tested this on the latest hercules. It has error
    • I get this error when i set it to OnInit: setunitdata( getnpcid(), UDT_GROUP, 21); setunittitle( getnpcid(), "Goddess Statue" ); end;   then: OnInit: setunitdata( strnpcinfo(1), UDT_GROUP, 21); setunittitle( strnpcinfo(1), "Goddess Statue" ); end; Whole script: //===== Hercules Script ====================================== //= [ Heal & Buffs ] //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.2 //===== Description: ========================================= //= Basic [ Heal & Buffs ] script. //===== Additional Comments: ================================= //= 1.0 Initial script. //= 1.1 Aligned coordinates with @go. //= 1.2 Fix variables and character stuck at healing //============================================================ - script Healer FAKE_NPC,{ .@price = 0; // Zeny required for heal .@Buffs = 1; // Also buff players? (1: yes / 0: no) .@Delay = 5; // Heal delay, in seconds if (@HD > gettimetick(GETTIMETICK_UNIXTIME)) { end; } if (.@price) { message strcharinfo(PC_NAME),"Healing costs "+.@price+" Zeny."; if (Zeny < .@price) end; if(select("^0055FFHeal^000000", "^777777Cancel^000000") == 2) close; Zeny -= .@price; } specialeffect(EF_HEAL2, AREA, playerattached()); percentheal 100,100; if (.@Buffs) { specialeffect(EF_INCAGILITY, AREA, playerattached()); sc_start SC_INC_AGI,240000,10; specialeffect(EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10; } if (.@Delay) { @HD = gettimetick(GETTIMETICK_UNIXTIME) + .@Delay; } end; OnInit: setunitdata( strnpcinfo(1), UDT_GROUP, 21); setunittitle( strnpcinfo(1), "Goddess Statue" ); end; } // Duplicates //============================================================ alberta,25,240,6 duplicate(Healer) Healer#alb 4_F_08_STATUE aldebaran,135,118,6 duplicate(Healer) Healer#alde 4_F_08_STATUE amatsu,200,79,4 duplicate(Healer) Healer#ama 4_F_08_STATUE ayothaya,207,169,6 duplicate(Healer) Healer#ayo 4_F_08_STATUE comodo,184,158,6 duplicate(Healer) Healer#com 4_F_08_STATUE einbech,57,36,6 duplicate(Healer) Healer#einbe 4_F_08_STATUE einbroch,57,202,6 duplicate(Healer) Healer#einbr 4_F_08_STATUE geffen,115,72,6 duplicate(Healer) Healer#gef 4_F_08_STATUE gonryun,156,122,6 duplicate(Healer) Healer#gon 4_F_08_STATUE hugel,89,150,6 duplicate(Healer) Healer#hug 4_F_08_STATUE izlude,125,118,5 duplicate(Healer) Healer#izl 4_F_08_STATUE jawaii,250,139,4 duplicate(Healer) Healer#jaw 4_F_08_STATUE lighthalzen,152,100,6 duplicate(Healer) Healer#lhz 4_F_08_STATUE louyang,226,103,4 duplicate(Healer) Healer#lou 4_F_08_STATUE manuk,272,144,6 duplicate(Healer) Healer#man 4_F_08_STATUE mid_camp,203,289,6 duplicate(Healer) Healer#mid 4_F_08_STATUE moc_ruins,72,164,4 duplicate(Healer) Healer#moc 4_F_08_STATUE morocc,153,97,6 duplicate(Healer) Healer#mor 4_F_08_STATUE moscovia,220,191,4 duplicate(Healer) Healer#mos 4_F_08_STATUE niflheim,212,182,5 duplicate(Healer) Healer#nif 4_F_08_STATUE payon,179,106,4 duplicate(Healer) Healer#pay 4_F_08_STATUE prontera,162,193,4 duplicate(Healer) Healer#prt 4_F_08_STATUE rachel,125,116,6 duplicate(Healer) Healer#rac 4_F_08_STATUE splendide,201,153,4 duplicate(Healer) Healer#spl 4_F_08_STATUE thor_camp,249,74,4 duplicate(Healer) Healer#thor 4_F_08_STATUE umbala,105,148,3 duplicate(Healer) Healer#umb 4_F_08_STATUE veins,217,121,4 duplicate(Healer) Healer#ve 4_F_08_STATUE xmas,143,136,4 duplicate(Healer) Healer#xmas 4_F_08_STATUE yuno,164,45,4 duplicate(Healer) Healer#yuno 4_F_08_STATUE // Duplicates (Renewal) //============================================================ brasilis,194,221,6 duplicate(Healer) Healer#bra 4_F_08_STATUE dewata,195,187,4 duplicate(Healer) Healer#dew 4_F_08_STATUE dicastes01,201,194,4 duplicate(Healer) Healer#dic 4_F_08_STATUE ecl_in01,45,60,4 duplicate(Healer) Healer#ecl 4_F_08_STATUE malangdo,132,114,6 duplicate(Healer) Healer#mal 4_F_08_STATUE malaya,205,205,6 duplicate(Healer) Healer#ma 4_F_08_STATUE mora,55,152,4 duplicate(Healer) Healer#mora 4_F_08_STATUE t_garden,123,121,4 duplicate(Healer) Healer#tgarden 4_F_08_STATUE  
  • Download Statistics

    • Files
      457
    • Comments
      154
    • Reviews
      240

    Latest File
    By Hyroshima

    53    0

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.