Jump to content

Smiley33

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Smiley33

  1. try this

    use     OnPCLoginEvent: or     OnPCStatCalcEvent: 

          if (BaseClass == Job_Swordman){

            bonus bAllstats,10; 

    else if (BaseClass == Job_Archer){

     bonus bDex,5;

    }

    end:

    }

     

     

  2. edit it on db/pre/mob_db.yml find the id's of each monster sample

     Garm    1252,  

    - Id: 1252
        AegisName: GARM
        Name: Hatii
        JapaneseName: Garm
        Level: 73
        Hp: 197000

  3. On 9/19/2018 at 11:55 AM, sader1992 said:

    pc.hpp

    #define MAX_SKILL_TREE 85

     

    also a fast way to do it

    create new group id

    give it all_skill: true permission

    add the group id to OnPCLoginEvent for the job id or at the job changer (or any kind of script)

    you will find all the skills in the etc window

    im having same problem with this im using rathena version 2021 11 03 i can't find this on "#define MAX_SKILL_TREE 85" pc.hpp 

  4. what i want is if when groupid is higher than 0 and the base stats agility is higher than 170 and increase agi is buffed the attackspeed will be capped at 196 

    else attackspeed is capped by 195

    if (sc->data[AL_INCAGI] ) && (pc_get_group_id(sd) >0 ) && (readparam(bAgi) > 170) {
            if (sc->data[AL_INCAGI]->val1 == 10)
                status->amotion = cap_value(amotion, pc_maxaspd(sd) + 20, 2000);

    i was having error on (pc_get_group_id("sd") and (readparam(bAgi) > 170) 

    i got the code from this 

  5. 20 hours ago, Rynbef said:

    Use the OnPCLoginEvent. Get the VIP State for VIP

    if(vip_status(VIP_STATUS_ACTIVE) && AGI >= 99)bAspdRate,196;) else {bonus bAspd,195;}

    It's not rly complicated. I'd like to call upon everyone once again to please read through the Rathena documentation, as it contains all the answers, one just needs to dig a bit. For example, want to find out about the VIP status? Simply use the search function on the site with *vip_status, and you'll get direct hints. I clearly refer to Doc/Script_comments.txt and Doc/item_bonus.txt. it's not much complicated to do research and try cuz' you will learn and it's much better instead of else everyone get the answer directly and just copy paste into his project. This should not to be an offensive or attack against you please don't miss understand this.

     

    Rynbef~

    i already tried this before but my problem is bonus bAspd,195 is additional attack speed.. after you add more agility on wont capped to 195,

        if (vip_status(VIP_STATUS_ACTIVE) && (readparam(bAgi) > 170) { set MAX_APSD,196; } something like this thanks

×
×
  • Create New...