Jump to content

ymcc

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by ymcc

  1. 2 hours ago, Seravy said:

    MIN and MAX MATK are calculated values in renewal so changing them without changing the base stats they are calculated from doesn't really work. You have to change the stats they are being calculated from instead : INT, MATK (aka ATK2) and LEVEL. However, that's the theory.

    In practice, I do remember I had to actually fix/update the source to make it work, as MATK wasn't even available as a thing to read/write on mobs. See : https://github.com/rathena/rathena/pull/3968

    Note this is for MATK specifically, I haven't really tested any of the other stats yet. There is a good chance they are also broken.

    This is how my script that scales monster strength currently looks like :

    
    				setunitdata $@mobid[.@i], UMOB_LEVEL, getmonsterinfo( getarg(1), MOB_LV ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_MAXHP, getmonsterinfo( getarg(1), MOB_MAXHP ) * (100+3*getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_ATKMIN, getmonsterinfo( getarg(1), MOB_ATK1 ) * (100+3*getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_ATKMAX, getmonsterinfo( getarg(1), MOB_ATK2 ) * (100+3*getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_MATK, getmonsterinfo( getarg(1), MOB_MATK ) * (100+3*getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_STR, getmonsterinfo( getarg(1), MOB_STR ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_AGI, getmonsterinfo( getarg(1), MOB_AGI ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_VIT, getmonsterinfo( getarg(1), MOB_VIT ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_INT, getmonsterinfo( getarg(1), MOB_INT ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_DEX, getmonsterinfo( getarg(1), MOB_DEX ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_LUK, getmonsterinfo( getarg(1), MOB_LUK ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_DEF, getmonsterinfo( getarg(1), MOB_DEF ) * (100+getarg(3)) / 150;
    				setunitdata $@mobid[.@i], UMOB_MDEF, getmonsterinfo( getarg(1), MOB_MDEF ) * (100+getarg(3)) / 150;
    			

     

    OH, I see.

    Unfortunatelythis problem still need to fix/update the source.

    That mean the script is not universal.

    However, thx for your answer.

  2. Hi, i try to add a ep17.1 mob... but now have a problem:

    jobname.lua:

    [jobtbl.JT_MD_A013_CAPUT] = "caput",

    npcidentity.lua:

    JT_MD_A013_CAPUT = 20348,

    mob_db:

    20348,MD_A013_CAPUT,A013-abc,A013-abc,110,31000,1,260,250,1,945,1305,79,40,115,85,81,92,121,47,10,12,1,7,47,0x3885,200,768,360,432,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

    The mob's kro official id is 20348.

    Data sprite is ready

    But they look like a poring.

    i modify the mob.cpp

    #define MIN_MOB_DB 1000
    #define MAX_MOB_DB 3999
    #define MIN_MOB_DB2 20020
    #define MAX_MOB_DB2 31999

    But, they look like a poring too...

    Can anyone help me please?

×
×
  • Create New...