Jump to content

Sting0r

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Sting0r

  1. Hi, i'm trying to have a var initialised right at the instance creation, so all instance script can relate on it, event before OnInstanceInit: and i don't want to use a global var like $var

    i tryed 
        strdb_iput( entry->regs.vars, "somevar", 10 );

    just after 
        entry->regs.vars = i64db_alloc(DB_OPT_RELEASE_DATA);

    in instance_create() function, but when i put a simple "announce "somevar: " + 'somevar,bc_all;

    it just output 0 instead of 10, so i guess it's not that simple ?

     

    i got it with
        i64db_i64put( entry->regs.vars, reference_uid(add_str("'somevar"), 0), 10);

     

  2. Hi! Done that recently on my server.

    skill.cpp

    case GS_DISARM:
            skill_strip_equip(src, bl, skill_id, skill_lv);
            clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
            break;
    To

    case GS_DISARM:
            if( skill_strip_equip(src, bl, skill_id, skill_lv) )
                clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
            break;

  3. The weapons won't work like they're suppose to with autospell instead on autospellonskill. One way could be to only enable autospellonskill with right hand... but a lefty sinx would be sad

    Spoiler

    if(getequipid(EQI_HAND_R) == 13414){bonus4 bAutoSpellOnSkill,"MG_COLDBOLT","MG_FIREBOLT",3,1000; bonus4 bAutoSpellOnSkill,"MG_FIREBOLT","MG_LIGHTNINGBOLT",3,1000; bonus4 bAutoSpellOnSkill,"MG_LIGHTNINGBOLT","WZ_EARTHSPIKE",3,1000;}

     

  4. Hi!

    I have a question about the script behavior of Elemental Sword - http://db.irowiki.org/db/item-info/13414/

    when you equip 2 of this sword, the bolts trigger autocast of both weapons launching a big spamming of bolts, wich is pretty laggy for players and i am wondering if on official servers it act like that.

    With one sword you get 12 hit bolts of magic damage and with two sword .... 45 hit of bolt

    To clarify i hope https://drive.google.com/file/d/1tbsaibJ0nnqW9wU_JbktU29dAAly2SbT/view?usp=sharing
     

×
×
  • Create New...