Jump to content

caspe

Members
  • Content Count

    146
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by caspe


  1. On 6/27/2017 at 6:16 PM, caspe said:

    I'm trying to figure out a way to block healing items and skill when player has flag or stone, but it seems there is no script command that will block use of skill and items on flag. sc_end just end skill effect once and disable_items is for disable switching of items. 

    @Smoke Maybe u know what script command will do that. 

    any update on this @Smoke, due to use of skills and item's while carrying flag or stone players easily able to capture it. like stalker, assassin cross carrying flag in clock, chase walk mode. It affect many battleground modes like 3 to 4. 


  2. Thanks to @Myriad now emergency call show remaining time

    Here is changes:

    skill.c

    Spoiler

    In skill.c, find:
    -------------------
        if (sd)
            guild->block_skill(sd,skill->get_time2(skill_id,skill_lv));

    In case GD_EMERGENCYCALL:
    -------------------
    Change to
    -------------------
        if (sd)
        {
            guild->block_skill(sd,skill->get_time2(skill_id,skill_lv));
            pc_setglobalreg(sd, script->add_str("RECALL_DELAY"), time(0) + 300);
        }

    message.conf

    Spoiler

    In conf/message.conf, add your custom message
    -------------------
    CUSTOM_MSG_NUMBER: You cannot use Emergency Call for another %d seconds.

    clif.c

    Spoiler

    Find:

    --------------------------------------------------------------------

    if( pc_issit(sd) )
            return;

    if( skill->not_ok(skill_id, sd) )
            return;

    --------------------------------------------------------------------

    Add this code after first if

    -----------------------------------------------------------------------

    if (skill_id == GD_EMERGENCYCALL &&
            sd->state.gmaster_flag &&
            pc_readglobalreg(sd,script->add_str("RECALL_DELAY")) > time(0))
        {
            char output[100];
            sprintf(output, msg_txt(CUSTOM_MSG_NUMBER), (DIFF_TICK(pc_readglobalreg(sd,script->add_str("RECALL_DELAY")), time(0)))); // You cannot use Emergency Call for another %d seconds.
            clif->message(sd->fd, output);
            clif->message(sd->fd, "Emergency Call failed.");
            return;
        }

     

    Everything working fine except one compilation warning

    map\skill.c(8111): warning C4244: 'function': conversion from 'time_t' to 'int', possible loss of data

    Can someone help me to fix that. :innocent: using latest hercules revision. 


  3. 5 hours ago, Smoke said:

    Yes I've tried that and cannot reproduce it.

    hmmm, it's weird

    this is a Char Server error and i'm using latest revision of hercules and this plugin

    this only happen while in battleground and when do char select

    this error does not show after doing alt+f4 only after doing char select.

     

    What do you think what is problem?


  4. 3 hours ago, Smoke said:

    Fixes some compile errors and broken code from the recent PRs (ones I didn't check thoroughly before)

    https://github.com/Smokexyz/HerculesBG/commit/b5eb2e6b04e99a462beb3d816e12351c11549759

    1) Check this again using the latest revision of the hBG repo.

    2) This too.

    3) If someone can look into the script for this... I don't have the time or patience.

    4) Someone can probably push a pr for this too.

     

    On a side note, do you guys want the eAmod faction system as a plugin?

    non of the errors are fixed :astonished:

    More errors :

    1. There is no leader command no error massage nothing. (Does it require to keep enable @leader command?)

    2. Must give priority to Stalker and Assassin Cross as a team leader than first member who register.

     

×
×
  • Create New...

Important Information

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