Jump to content

WhiteEagle

Members
  • Posts

    390
  • Joined

  • Last visited

Posts posted by WhiteEagle

  1. Sure sure.^^
    Here an excample: We have 999 Silvervines and I buy 99 pieces.
    Unbenannt.PNG.01d7a885f2964a50c356f1778c201ed8.PNG

    So just 900 Silvervines are left for the whole server.
    But my wish is that the 99 pieces are removed only for me and not for the whole server.
    So everyone has the "own" stack in the shop.
    Unbenannt2.PNG.52ac4eac60b5b9069571330bcba1c202.PNG

  2. I think, you don't understand the source change correctly.
    It create a new function like summon/monster spawning.

     fakeplayer( map, x, y, name, job_id, sex, hair_style, hair_color, weapon, shield, head_top, head_mid, head_bottom, option, cloth_color );

    Just make a script like this as excample:

    OnInit:
      setarray .hairstyle,1,2,3,4,5,6;
      setarray .haircolor,1,2,3,4,5,6;
      and so on !!
      .size_hairstyle = getarraysize(.hairstyle);
      .size_haircolor = getarraysize(.haircolor);
      [email protected] = rand(.size_hairstyle);
      [email protected] = rand(.size_haircolor);
      [email protected] = 30;
      while ([email protected] <= 30) {
    	fakeplayer( map, x, y, name, job_id, sex, .hairstyle[[email protected]], .haircolor[[email protected]], weapon, shield, head_top, head_mid, head_bottom, option, cloth_color );
    	[email protected]++;
      }
      end;
    }

     

  3. 22 hours ago, eakzoi said:

    I also realized something, it's not summoning any monster with a player skin, it's summoning a Poring with a player skin. Ideally I would like to create new monsters on the mob_db (so that I can have different behaviors, levels, skills) while also randomizing their look. So if there's a way to modify that, that would be great too!

    That is no problem. Just search for this line and change the MobID (1002) to ur wish.

    // Using poring as monster behavior
    md = mob_once_spawn_sub(NULL, m, x, y, name, 1002, "", SZ_SMALL, AI_NONE);

     

  4. It now works as it should, except for the fact that if you reselect the title, you have to log in again before it will be recognized.
    Apart from that, I don't find any problems so far.

    Thanks Rynbef~

    WhiteEagle

  5. 6 hours ago, Rynbef said:

    I don't think u means an buying or vending store title😂

    Haha, you're right. xD
    And thanks for your help.

    I am interested in items that give bonuses related to titles.
    Like for example:

    "_______________________",
    "When equipped with \"Kafra\" title: Exp gained +5%, Item drop rate +5%, All Stats +4.",
    "_______________________",


    Thanks, that should work.

    6 hours ago, Rynbef said:

    query_sql("SELECT `char_id` FROM `char` WHERE `char_id`="+getcharid(0),[email protected]_id);

     

  6. Thanks for your reply,
    but the formatting is correct. I've no errors and all quests working except the location check.

     

    - Id: 22000
        Title: Fishy affair
        Targets:
          - Mob: VADON
            Count: 45
            Location: iz_dun01
            MapName: Undersea Tunnel B2

     

    I've test now different formats like
     

    - Id: 22000
      Title: Fishy affair
      Targets:
        - Mob: VADON
          Count: 45
          Location:
            iz_dun01: true
          MapName: Undersea Tunnel B2
    
    - Id: 22000
      Title: Fishy affair
      Targets:
        - Mob: VADON
          Count: 45
          Location: "iz_dun01"
          MapName: Undersea Tunnel B2

    No matter how I do the format, I get no error message and the kills are counted no matter where.
    Is it possible that it is not working in general at the moment?
     

  7. I have the problem that no matter where I kill the monster, the kill is counted.
    However, it should only be counted on the specified map.
    In the example below, you are supposed to kill Vadons on the map "iz_dun01". 
    If you spawn Vadons in Prontera, they will also be counted.

    What am I doing wrong?
     

    Example:

    - Id: 22000
        Title: Fishy affair
        Targets:
          - Mob: VADON
            Count: 45
            Location: iz_dun01
            MapName: Undersea Tunnel B2

     

  8. Why don't use the OnPCLoginEvent?

    Like:
     

    -    script    DonateExchange    FAKE_NPC,{
        end;
    OnPCLoginEvent:
        set @dCreds,query_sql("SELECT `balance` FROM cp_credits WHERE `account_id` = "+getcharid(3)+";",[email protected]);
        if([email protected]) {
            end;
        }
        set #CASHPOINTS,#[email protected];
        [email protected] = 0;
        query_sql("UPDATE `cp_credits` SET `balance` = "[email protected]+" WHERE account_id = "+getcharid(3)+";");
        dispbottom "Credis were converted into Cashpoints ["+ #CASHPOINTS +"].";
        end;

     

    • Love 1
  9. Hey,
    for sure you are missing the source edit for pre-renewal in mmo.hpp.

    Search for 

    #define MAX_GUILDSKILL	15 ///Max Guild skills

    and increase it like for renewal
    #define MAX_GUILDSKILL    20 ///Max Guild skills

    #define MAX_GUILDSKILL	20 ///Max Guild skills

    or edit the whole part like:

    #ifdef RENEWAL
    #define MAX_GUILDSKILL	20 ///Max Guild skills
    #else
    #define MAX_GUILDSKILL	15 ///Max Guild skills
    #endif
    
    to
    
    #define MAX_GUILDSKILL	20 ///Max Guild skills



    recompile and it will work

×
×
  • Create New...

Important Information

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