Jump to content

bachvugx

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by bachvugx

  1. ITEM BOX:

    29056,Auto_Attack_Box,Auto Attack Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ rentitem 29002,604800; },{},{}
    

    ITEM AUTO

    29002,autoatk_Card,Auto Attack Card,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{ callfunc "command__"; set @at,1;},{ callfunc "command__"; set @at,0;}
    

    FUNCTION ATCOMMAND

    function script command__ {
    atcommand "@autoattack";
    return;}
    

    FUNCTION CHECK

    - script fixautoattack -1,{
    OnPCLogoutEvent:
    if (@at == 1)
    { atcommand "@autoattack"; set @at,0;};
    end;
    }
    

    Before TEST plz unequip ITEM AUTO and turn off auto attack.

    Sr ! My English is very very very BAD :(

    • Upvote 1
  2. try this

    30001,Auto_Attack_Card,Auto Attack,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{ callfunc "command__"; set @at,1;},{ callfunc "command__"; set @at,0;}
    

    function script command__ {
    
    attachnpctimer getcharid(3);
    if
    atcommand "@autoattack";
    initnpctimer;
    return;
    

    and

    - script fixautoattack {
    OnPCLoginEvent:
    if (@at == 0)
    {end;} else { atcommand "@autoattack"; set @at,0;};
    end;
    

  3. I want to drop coinid by monster & mvp.

    monster (monster's baseexp / monster's jobexp) * (monster's baselevel / 100)

    and mvp (mvp's baseexp + mvp's jobexp)/(mvp's mvpexp)

    my english very bad :((

    Help me, plz !! Thank

    - script Coinlevel -,{
    OnNPCKillEvent:
    if (getmonsterinfo(killedrid,22) == 0)
     {
      set @coindropnum, 1;
      if (getmonsterinfo(killedrid,3) < getmonsterinfo(killedrid,4))
    {
    set @ratedropcoin, getmonsterinfo(killedrid,4) / getmonsterinfo(killedrid,3);
    } else
    {
    set @ratedropcoin, getmonsterinfo(killedrid,3) / getmonsterinfo(killedrid,4);
    }
      set @ratedropcoin, @ratedropcoin * getmonsterinfo(killedrid,2) * 10;
     } else
     {
      set @coindropnum, 20;
      set @ratedropcoin, getmonsterinfo(killedrid,3) + getmonsterinfo(killedrid,4);
      set @ratedropcoin, @ratedropcoin * 2 * 1000 / getmonsterinfo(killedrid,22);
     };
    set @possibilty, rand(0,100000);
    if (@possibilty <=  @ratedropcoin)
    {
    getitem @coinid,@coindropnum;
    end;
    };
    end;
    }

×
×
  • Create New...