Jump to content

WhiteEagle

Members
  • Posts

    461
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by WhiteEagle

  1. 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);
      .@r = rand(.size_hairstyle);
      .@r2 = rand(.size_haircolor);
      .@i = 30;
      while (.@i <= 30) {
    	fakeplayer( map, x, y, name, job_id, sex, .hairstyle[.@r], .haircolor[.@r2], weapon, shield, head_top, head_mid, head_bottom, option, cloth_color );
    	.@i++;
      }
      end;
    }

     

  2. 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);

     

  3. 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),.@title_id);

     

  4. 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?
     

  5. 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

     

  6. 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)+";",.@dCreds);
        if(!.@dCreds) {
            end;
        }
        set #CASHPOINTS,#CASHPOINTS+.@dCreds;
        .@dCreds = 0;
        query_sql("UPDATE `cp_credits` SET `balance` = "+.@dCreds+" WHERE account_id = "+getcharid(3)+";");
        dispbottom "Credis were converted into Cashpoints ["+ #CASHPOINTS +"].";
        end;

     

    • Love 1
  7. 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

  8. I don't have test it, but it should work.
    Go in itemdb.cpp and search for 
     

    /** Specifies if item-type should drop unidentified.
    * @param nameid ID of item
    */
    char itemdb_isidentified(t_itemid nameid) {
    	int type=itemdb_type(nameid);
    	switch (type) {
    		case IT_WEAPON:
    		case IT_ARMOR:
    		case IT_PETARMOR:
    		case IT_SHADOWGEAR:
    		case IT_CHARM:
    			return 0;
    		default:
    			return 1;
    	}
    }

     and change it to:

    /** Specifies if item-type should drop unidentified.
    * @param nameid ID of item
    */
    char itemdb_isidentified(t_itemid nameid) {
    	int type=itemdb_type(nameid);
    {
    			return 1;
    	}
    }


    or if you want only for weapons and armor:
     

    /** Specifies if item-type should drop unidentified.
    * @param nameid ID of item
    */
    char itemdb_isidentified(t_itemid nameid) {
    	int type=itemdb_type(nameid);
    	switch (type) {
    		case IT_WEAPON:
                return 1;
    		case IT_ARMOR:
                return 1;
    		case IT_PETARMOR:
    		case IT_SHADOWGEAR:
    		case IT_CHARM:
    			return 0;
    		default:
    			return 1;
    	}
    }

     

    • Love 1
  9. Yes. Server is recompiled. I did all diff changes again and same result. No compiling errors and still just 4 warps.
    Don't know what I do wrong ?


    Unbenannt.PNG.16eb710cdfae48082aea0fbb6a3b0fc8.PNG

    O M G.... nevermind. I made the changes on my second test server and recompile the other server. >_> I am so sorry XD

    Thank you very much for this awesome work. ❤️

    • Upvote 1
×
×
  • Create New...