Jump to content

Legend

Members
  • Content Count

    375
  • Joined

  • Days Won

    5

Posts posted by Legend


  1. 54 minutes ago, meko said:

    Hercules should automatically generate constants based on the AegisName of items in your database. If Apple evaluates to 0 it means you are either using a very old version of Hercules, or you don't have an item named Apple in your item db

    @meko Yea, I thought of the same thing.


  2. 56 minutes ago, Vixus said:

    requesting for a shop NPC that will jump on random location after a player bought an item

    like jumper event but shop NPC..

    like prontera,155,155,5 shop annie 757,501:50,502:50,503:50

    set $@ran, rand(1,10);
    if ($@ran == 10) set $@jmpmap$,"hugel";
    if ($@ran == 9) set $@jmpmap$,"yuno";
    if ($@ran == 8) set $@jmpmap$,"comodo";
    if ($@ran == 7) set $@jmpmap$,"xmas";
    if ($@ran == 6) set $@jmpmap$,"aldebaran";
    if ($@ran == 5) set $@jmpmap$,"izlude";
    if ($@ran == 4) set $@jmpmap$,"payon";
    if ($@ran == 3) set $@jmpmap$,"geffen";
    if ($@ran == 2) set $@jmpmap$,"morocc";
    if ($@ran == 1) set $@jmpmap$,"prontera";
    OnBuyItem:
    movenpc "annie"+$@ran+"",1,1; //move the NPC
    setnpcdisplay "annie"+$@ran+"",1002;
    end;
    }

    I don't think you can move npc from one map to another. Afaik, you can only randomize the coordinates (x &y) of a certain map.


  3. Updating your git

    1. Right click your Hercules folder (having green check on the folder) and choose Git Sync
    Image:

     

     

    2. A window will pop up, then click Pull
    Image:

     

     

    3. The one on the red box indicates that git is already receiving objects
    Image:

     

     

    4. Message on the window indicates that you successfully updated your File.
    Image:

     

  4. @CraftNCheez This patch was written many years ago and was already outdated.

    Try this solution, tho I haven't tried it to run:

    1)
    On this line find:

    +	if( map[sd->bl.m].flag.pvp || map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.gvg_castle || map[sd->bl.m].flag.gvg_dungeon ) {

    and replace it with:

    +	if (map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg || map->list[sd->bl.m].flag.gvg_castle || map->list[sd->bl.m].flag.gvg_dungeon) {


    2)
    On this line find:

    +			if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )

    and replace it with:

    +			if( map->list[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )

     

    3)
    On this line find:

    +				else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )

    and replace it with:

    +				else if( map->list[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )

     

×
×
  • Create New...

Important Information

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