Jump to content

Chaos92

Members
  • Posts

    1864
  • Joined

  • Last visited

  • Days Won

    63

Posts posted by Chaos92

  1. Added for job_stats.yml generator. This generator follows what job_stats.yml support in the import folder right now, which is 1000 base level, 255 job level, 500 level for BaseHP and BaseSP.

    To be honest I didnt tried it yet, but I hope it works and let me know if you have any issue using it so that I can fix it ASAP.

    image.thumb.png.9509915071ce37f180df34b542b2af67.png

  2. 17 hours ago, xeijvro said:

    //===== rAthena Script =======================================
    //= Gold PC Bonus NPC
    //===== Description: =========================================
    //= NPC that can be spawned via the Gold PC Timer Button.
    //===== Changelog: ===========================================
    //= 1.0 Initial release [Lemongrass]
    //= 1.1 Replay version [eppc0330]
    //= 1.2 Translation of the replay version [Lemongrass]
    //= 1.3 Cleanup of NPC logic [Lemongrass]
    //= 1.4 Added replay version of buff NPC [eppc0330]
    //============================================================

    prontera,0,0,0    script    Goldpoint Manager::GOLDPCCAFE    4_F_02,{
        // ID:AMOUNT:PRICE
        setarray .items$[1],
            "14003:5:3", // World_Tour_Ticket 1
            "13607:1:15",  // K_Secret_Key 1
            "23919:11:100",// K_Secret_Key 11
            "23919:33:300";// K_Secret_Key 33

        mes "[Goldpoint Manager]";
        mes "You currently have ^0000ff"+Goldpc_Points+"^000000 points.";
        mes "What reward do you want?";
        next;

        .@menu$ = "View current points";

        for(.@i = 1; .@i < getarraysize(.items$); .@i++) {
            explode(.@array$, .items$[.@i], ":");
            .@cost = atoi(.@array$[2]);
            .@menu$ += ":" + .@cost + " points gift";
            if( Goldpc_Points < .@cost ){
                .@menu$ += " ^ff0000(not enough points)^000000";
            }
        }

        .@s = select(.@menu$)-1;

        if(.@s == 0) {
            mes "[Goldpoint Manager]";
            mes "You currently have ^0000ff"+Goldpc_Points+"^000000 points.";
            close;
        }

        explode(.@array$, .items$[.@s], ":");
        .@itemid = atoi(.@array$[0]);
        .@amount = atoi(.@array$[1]);
        .@cost = atoi(.@array$[2]);

        if(Goldpc_Points < .@cost) {
            mes "[Goldpoint Manager]";
            mes "You have ^0000ff"+Goldpc_Points+"^000000 points remaining.";
            mes "You cannot get the prize with this amount of points.";
            close;
        }

        mes "[Goldpoint Manager]";
        mes "You chose the "+.@cost+" points gift. We will reward you immediately.";
        Goldpc_Points -= .@cost;
        getitem .@itemid,.@amount;
        mes "You have ^0000ff"+Goldpc_Points+"^000000 points remaining.";
        close;
    }

    ive changed some codes, the result should be like this

    image.png.cfc28d78ba3e0094084afaa33851bbf3.png

    //===== rAthena Script =======================================
    //= Gold PC Bonus NPC
    //===== Description: =========================================
    //= NPC that can be spawned via the Gold PC Timer Button.
    //===== Changelog: ===========================================
    //= 1.0 Initial release [Lemongrass]
    //= 1.1 Replay version [eppc0330]
    //= 1.2 Translation of the replay version [Lemongrass]
    //= 1.3 Cleanup of NPC logic [Lemongrass]
    //= 1.4 Added replay version of buff NPC [eppc0330]
    //============================================================
    
    prontera,155,168,3	script	Goldpoint Manager::GOLDPCCAFE	4_F_02,{
        // ID:AMOUNT:PRICE
        setarray .items$[1],
            "14003:5:3", // World_Tour_Ticket 1
            "13607:1:15",  // K_Secret_Key 1
            "23919:11:100",// K_Secret_Key 11
            "23919:33:300";// K_Secret_Key 33
    
        mes "[Goldpoint Manager]";
        mes "You currently have ^0000ff"+Goldpc_Points+"^000000 points.";
        mes "What reward do you want?";
        next;
    
        .@menu$ = "View current points";
    
        for(.@i = 1; .@i < getarraysize(.items$); .@i++) {
            explode(.@array$, .items$[.@i], ":");
            .@itemid = atoi(.@array$[0]);
            .@cost = atoi(.@array$[2]);
            .@menu$ += ":" + getitemname(.@itemid) + " (" + .@cost + " points)";
            if( Goldpc_Points < .@cost ){
                .@menu$ += " ^ff0000(not enough points)^000000";
            }
        }
    
        .@s = select(.@menu$)-1;
    
        if(.@s == 0) {
            mes "[Goldpoint Manager]";
            mes "You currently have ^0000ff"+Goldpc_Points+"^000000 points.";
            close;
        }
    
        explode(.@array$, .items$[.@s], ":");
        .@itemid = atoi(.@array$[0]);
        .@amount = atoi(.@array$[1]);
        .@cost = atoi(.@array$[2]);
    
        if(Goldpc_Points < .@cost) {
            mes "[Goldpoint Manager]";
            mes "You have ^0000ff"+Goldpc_Points+"^000000 points remaining.";
            mes "You cannot get the prize with this amount of points.";
            close;
        }
    
        mes "[Goldpoint Manager]";
        mes "You chose the "+.@cost+" points gift. We will reward you immediately.";
        Goldpc_Points -= .@cost;
        getitem .@itemid,.@amount;
        mes "You have ^0000ff"+Goldpc_Points+"^000000 points remaining.";
        close;
    }

     

    • Upvote 1
  3. 57 minutes ago, luizinhomt said:

    because that's what's strange, being there correctly in the folder, the image is in bmp 250 bits, the name is also correct but even so, when I put it to view I get a gravity error

    I didnt remember, but maybe save it with format 24-bit .bmp ? Didnt tried yet

  4. 5 hours ago, Kudo said:

    can i request the KOE script that has bind command of @koe
    you cannot use @koe command if the event is not yet started

    I think theres a lot of koe script in rathena forum, try to search one.

    I remember years back, GM with higher level can whisper npc:KoE to start it, such as this one.

  5.  

    10 hours ago, Kater said:

     

    Friend,

    I've already used it, but I didn't see any option to generate a weapon as a visual.

    If this exists there, tell me where.
    I saw the custom weapon option, it's different from what I'm looking for.

    Now if there is the option, don't you put here what command is to insert in itemdb.

    Oh so its 'costume', not equipment weapon.

    https://github.com/rathena/rathena/blob/master/doc/item_db.txt

    This might help you a lot.

    Locations: Equipment's placement.

    Head_Top               - Upper Headgear
    Head_Mid               - Middle Headgear
    Head_Low               - Lower Headgear
    Armor                  - Armor
    Right_Hand             - Weapon
    Left_Hand              - Shield
    Garment                - Garment/Robe
    Shoes                  - Shoes
    Right_Accessory        - Accessory Right
    Left_Accessory         - Accessory Left
    Costume_Head_Top       - Costume Top Headgear
    Costume_Head_Mid       - Costume Mid Headgear
    Costume_Head_Low       - Costume Low Headgear
    Costume_Garment        - Costume Garment/Robe
    Ammo                   - Ammo
    Shadow_Armor           - Shadow Armor
    Shadow_Weapon          - Shadow Weapon
    Shadow_Shield          - Shadow Shield
    Shadow_Shoes           - Shadow Shoes
    Shadow_Right_Accessory - Shadow Accessory Right (Earring)
    Shadow_Left_Accessory  - Shadow Accessory Left (Pendant)

    Both_Hand              - Right_Hand + Left_Hand
    Both_Accessory         - Right_Accessory + Left_Accessory

  6. 18 minutes ago, luizinhomt said:

    Good evening, could anyone help me by telling me which file I modify to read the illustration of the cards? I add it to a custom letter in itemdb_etc after also configuring it in my system iteminfo I can create the normal letter but when I put it to view the illustration I get a gravity error. Could anyone help by telling me where I can modify it to read the card illustration correctly or could you be kind enough to provide a tutorial to add a custom card correctly, thank you in advance.

    isnt it from cardbmp folder ? you can check the original cardbmp there.

  7. 17 minutes ago, Kater said:

    I've looked and haven't found any visual weapons to take as an example.
    That's why I opened this topic asking for help to adjust itemdb.

    if u use the generator i told before, the itemdb is automatically generated.

    make sure to use the weapon generator.

  8. 10 minutes ago, Kater said:

    The question would be, is there any specific command to put in itemdb to equip the weapon in the hand and not in the top, middle or bottom.

    image.png.5a31ab035e8df47f67c3bf240d00b4ee.png

     

    ive told you before from earlier. your itemdb is wrong.

    12 hours ago, Kater said:

    How to add the custom weapon as a visual?

    Exemple?

      - Id: 24500
        AegisName: arma_1
        Name: Arma 1
        Type: Armor
        Locations:
          Costume_Head_Top: true
        ArmorLevel: 1
        EquipLevelMin: 1
        View: 24500

     

    why the location is costume head top. since u said it as that it will be weapon. and why is it armor. its weapon.

    pay attention to locations, type, etc.

    get example from other weapon that almost the same.

  9. 31 minutes ago, Kater said:

    Friend,

    I want to know what command I put in itemdb.yml, so the weapon can be equipped as a visual.

    image.png.4af688de77d42ece61c955956ba77335.png

    I still dont understand your statement. weapon as visual means its shown sprite, right ? so it should be correct at all the lua files and iteminfo.

  10. 5 hours ago, Kater said:

    I want to know what custom to add for a custom weapon to become a visual weapon. I didn't see this option on your generator

    didnt understand. the geneerator auto generate the lua files. which auto create the required lines.

    if u asking about the sprite and texture, there are some examples you can download in downloaads section sprite.

  11. 5 hours ago, Kater said:

    I changed the ID on the client to accept larger numbers. It still didn't work, it doesn't accept anything above 30000. Is there any configuration in luafiles or in the system?

    btw 30k is quite a big number, officially didnt even reached 5k. didnt try lower ?

    What does it shows ?

  12. 5 hours ago, Kater said:

    I added some visual items to the server for testing, there was no error but when equipping it does not show on the character as shown in the attached image.

    Would anyone know how to resolve it?

     

    image.png.c7b2f87bee10718bda50e3e70bd1cc1c.png

    most probably because of accessoryid, accname are not exist.

    Try my generator here : 

    about ID that u said, what ID ? if headgear ID, you can increase when creating the client using nemo/warp.

     

  13. 31 minutes ago, Kater said:

    How to add the custom weapon as a visual?

    Exemple?

      - Id: 24500
        AegisName: arma_1
        Name: Arma 1
        Type: Armor
        Locations:
          Costume_Head_Top: true
        ArmorLevel: 1
        EquipLevelMin: 1
        View: 24500

     

    what do you mean by custom weapon as visual ? the location is costume head top. seems difference with what you want to achieve.

    I have custom weapon generator release here

     

  14. 26 minutes ago, Kater said:

    If I create a common store with the same errors, the items appear normally.
    The problem is when it turns into a cashshop

    maybe because you nemo/warp using preview cash shop ? then you might need to enable that part in src, or disable that nemo/warp for preview cash shop.

    https://github.com/rathena/rathena/blob/91b501bbb2c1d047ef2ce128fb073a0da60b27ae/src/config/core.hpp#L98

    if edit src, then need to recompile.

    or else, disable that patch in nemo/warp

    • Love 1
  15. 1 hour ago, Kater said:

    Hello friend!
    Creating a basic cashshop the items are not appearing.
    There is no error in the emulator, keep this apple

     

    prontera,150,150,4	cashshop	Kafra Shop Employee	116,12900:1000,12901:200,12902:1000,12909:100,12910:100,12911:1500,12922:150,7619:100,7620:100,12916:150,12917:150,12915:100,12918:100,12913:125,12914:125,13553:50,12903:100,12904:100,12905:100,12906:100,12907:100,12908:100,7776:50

    image.png.b810e80da716bf60f14bdb2a1666784e.png

    Check your itemID that is unknown item for example 12901 and others.

    Try @item ingame. Maybe because of its shown as unknown item, thats why.

    The reason ? Most probably your iteminfo part doesnt have that item details.

×
×
  • Create New...