Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    72

Posts posted by Euphy

  1. First off, you've written your condition as "getgmlevel() <= 80", which would include normal players as well. Not sure if that's what you intended...

    If OnPCLoadMapEvent triggers on a map, 'mf_loadevent' must have been set on that map (you can type @mapinfo to confirm this). You might have another mapflag script running (security scripts often do this); if you remove all the 'mapflag' lines from this script, for instance, does the label still get triggered?

    A workaround is to run a map name check on the label, although you should really see if you can resolve the larger issue first.

    if (!compare("abbey02|ra_san05|thor_v03|lhz_dun01|lhz_dun02|lhz_dun03|payg_cas04|abbey03|thana_boss", strcharinfo(3)) end;
  2. The normal, official Battlegrounds scripts come enabled, so you don't need to make any changes. They're located in npc/battleground/. There are different types of matches, which you can read about on iRO Wiki.

    The "custom" battlegrounds have been moved into npc/custom/battleground/unofficial/ as of 163a98c to avoid confusion. As stated in npc/scripts_custom.conf, they are custom implementations of the official scripts which were written before the Aegis conversion (i.e. the accurate, official scripts currently in npc/battleground/). As such, they shouldn't be used, and are still there largely for history; however, if you prefer them to the official scripts, comment out the official scripts and uncomment the custom ones (since they have identical names).

  3. It's not implemented yet. It's very unlikely that we'll have any scripts from new episodes before iRO implements them (since they do most of the translating from kRO), so chances are it'll be a while before you see anything related to Dali.

    • Upvote 1
  4. preg_match(<regex pattern>,<string>{,<offset>})

    commit: 957f495
    Searches a string for a match to the regular expression provided. The offset parameter indicates the index of the string to start searching. Returns offsets to captured substrings, or 0 if no match is found.


    This command is only available if the server is compiled with the regular expressions library enabled.For some examples, read the "F_GetArticle" function in 957f495#diff-1.
  5. prontera,150,150,1	script	GM Tracker	101,{

    .@gm_name$ = "GM Untrustworthy";

    mes "Tracking: " + .@gm_name$;

    next;

    .@i = select("Get coordinates.:Warp to GM.");

    if (!getcharid(0,.@gm_name$)) {

    mes .@gm_name$ + " is not online.";

    close;

    }

    getmapxy(.@map$,.@x,.@y,0,.@gm_name$);

    if (.@i == 1)

    mes sprintf("%s is at %s (%d,%d).",.@gm_name$,.@map$,.@x,.@y);

    else

    warp .@map$,.@x,.@y;

    close;

    }

    • Upvote 1
  6. Here's a sample using 'autobonus2': [paste=6y8ui2jsunt8] (obviously credits to Annie for a lot of parts XD)

    It's not as convenient as Annie's script, but should cause less strain on the servers since it only triggers when hit (instead of running all the time). This of course has its disadvantages, such as not being able to work for SP.

    Also, for some reason I couldn't get 'consumeitem' to work while testing (probably due to the weird mixing of 'bonus_script', 'autobonus', functions, 'itemheal'...) so you have to add items manually. x.x

  7. I haven't tried it, but the autobonus commands might be useful for this ('autobonus2' in particular). For instance, something like this:

    autobonus2 "{}",10000,1,BF_WEAPON|BF_MAGIC,"{ if (Hp < MaxHp && countitem(504)) { delitem 504,1; consumeitem 504; specialeffect2 EF_POTION4; } }";
    No idea if it would work or not, but just another/simpler approach.
×
×
  • Create New...