Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Kat the Cat's recharge (https://postpacific.loc-online.com/showthread.php?t=2216)

top-gear 14.10.2005 09:47

Kat the Cat's recharge
 
I use the special skill of Kat the Cat, it animates, it says Rejuvenating MP, but it doesn't give anything. Skilldata.txt is ok, something else is missing :/ no error on gameserver or npcserver window displayed ...

top-gear 14.10.2005 11:10

I noticed that in some Summon Kat the Cat skill's level, it recharges the mp normally. e.g. level 1: recharges. level2: not. level 4: recharges. etc. skilldata is ok. any possible problems in ai orr skill_pch?

Osito2Dancer 14.10.2005 17:50

Check on Skilldata the skills from kat the cat (cat_recharge). The "magic_level=number" should be equal or near the lvl of the cat that's casting it. For instances:

"cat_recharge1" has magic_level=10. This means that the skill takes the lvl 10 as a base (full recharge), and begins to decrease as the level gap between recipient's level (the "summoner) and summon's level begins to grow. Set it according the cat's level (you can get this on npcdata). Theres a lot of work, im here to help in case of any doubt. I've done it, and works like a charm.

Atte

Oso

top-gear 14.10.2005 17:54

I tried to get the whole code rewriten from the beggining. All I see is a huge rabbit without name lol :) thanks for the tip osito ill try it

Phantom2005 14.10.2005 19:10

It's clientside problem OR you used the wrong npc....

With good client-side stuff:
http://img99.imageshack.us/img99/770...00013fh.th.jpg

Without good client-side stuff:
http://img97.imageshack.us/img97/216...00020lx.th.jpg

top-gear 14.10.2005 19:23

I managed to summon cat the kat with correct skin again. Mp recharge does nothing at all though :(

Phantom2005 14.10.2005 19:37

Quote:

Originally Posted by top-gear
I managed to summon cat the kat with correct skin again. Mp recharge does nothing at all though :(

Ok first step has been fixed... now for the second one....

for the AI:
Code:

class summon_heal : default_npc
parameter_define_begin
        int HealMagic 1030401
parameter_define_end
handler 13        //  CREATED
        variable_begin
                "myself"
                "_choiceN"
                "_code"
                "_from_choice"
        variable_end

        shift_sp 1
        push_const xx.xx0000
        func_call 14        //  func[AddPetDefaultDesire_Follow]
        shift_sp -1
        shift_sp -1
handler_end

handler 0        //  NO_DESIRE
        variable_begin
                "myself"
                "_choiceN"
                "_code"
                "_from_choice"
        variable_end

        shift_sp 1
        push_const xx.xx0000
        func_call 14        //  func[AddPetDefaultDesire_Follow]
        shift_sp -1
        shift_sp -1
handler_end

handler 32        //  MENU_SELECTED
        variable_begin
                "ask"
                "reply"
                "myself"
                "_choiceN"
                "_code"
                "_from_choice"
        variable_end

        shift_sp 1
        push_parameter HealMagic
        func_call 155        //  func[Skill_GetConsumeMP]
        shift_sp -1
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  mp
        push_const 352
        add
        fetch_d
        less
        push_reg_sp
        fetch_i
        branch_false L2092
        shift_sp 1
        push_parameter HealMagic
        func_call 154        //  func[Skill_GetConsumeHP]
        shift_sp -1
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  hp
        push_const 344
        add
        fetch_d
        less
        and
        push_reg_sp
        fetch_i
        branch_false L2092
        shift_sp 1
        push_parameter HealMagic
        func_call 160        //  func[Skill_InReuseDelay]
        shift_sp -1
        push_const 0
        equal
        and
L2092
        branch_false L2094
L2093
        shift_sp 1
        push_parameter HealMagic
        func_call 155        //  func[Skill_GetConsumeMP]
        shift_sp -1
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  mp
        push_const 352
        add
        fetch_d
        less
        push_reg_sp
        fetch_i
        branch_false L2095
        shift_sp 1
        push_parameter HealMagic
        func_call 154        //  func[Skill_GetConsumeHP]
        shift_sp -1
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  hp
        push_const 344
        add
        fetch_d
        less
        and
        push_reg_sp
        fetch_i
        branch_false L2095
        shift_sp 1
        push_parameter HealMagic
        func_call 160        //  func[Skill_InReuseDelay]
        shift_sp -1
        push_const 0
        equal
        and
L2095
        branch_false L2097
L2096
        shift_sp 1
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  master
        push_const 2404
        add
        fetch_i
        push_parameter HealMagic
        push_const 1
        push_const 1
        push_const 1000000
        func_call 10        //  func[AddUseSkillDesire]
        shift_sp -5
        shift_sp -1
L2097
L2094
handler_end

class_end

IF it still doesn't heal ur MP:
(skilldata.txt)
Code:

skill_begin        skill_name = [s_cat_recharge1]        /* [캣더캣리차지] */        skill_id = 4025        level = 1        operate_type = A1        magic_level = 10        effect = {{i_mp_by_level;23}}        is_magic = 1        mp_consume1 = 5        mp_consume2 = 19        cast_range = 400        effective_range = 600        skill_hit_time = 2.5        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 8        attribute = attr_none        effect_point = 137        target_type = target        affect_scope = single        next_action = none        skill_end       
skill_begin        skill_name = [s_cat_recharge2]        /* [캣더캣리차지] */        skill_id = 4025        level = 2        operate_type = A1        magic_level = 20        effect = {{i_mp_by_level;38}}        is_magic = 1        mp_consume1 = 8        mp_consume2 = 31        cast_range = 400        effective_range = 600        skill_hit_time = 2.5        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 8        attribute = attr_none        effect_point = 203        target_type = target        affect_scope = single        next_action = none        skill_end       
skill_begin        skill_name = [s_cat_recharge3]        /* [캣더캣리차지] */        skill_id = 4025        level = 3        operate_type = A1        magic_level = 30        effect = {{i_mp_by_level;52}}        is_magic = 1        mp_consume1 = 11        mp_consume2 = 42        cast_range = 400        effective_range = 600        skill_hit_time = 2.5        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 8        attribute = attr_none        effect_point = 285        target_type = target        affect_scope = single        next_action = none        skill_end       
skill_begin        skill_name = [s_cat_recharge4]        /* [캣더캣리차지] */        skill_id = 4025        level = 4        operate_type = A1        magic_level = 40        effect = {{i_mp_by_level;70}}        is_magic = 1        mp_consume1 = 14        mp_consume2 = 56        cast_range = 400        effective_range = 600        skill_hit_time = 2.5        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 8        attribute = attr_none        effect_point = 379        target_type = target        affect_scope = single        next_action = none        skill_end       
skill_begin        skill_name = [s_cat_recharge5]        /* [캣더캣리차지] */        skill_id = 4025        level = 5        operate_type = A1        magic_level = 50        effect = {{i_mp_by_level;90}}        is_magic = 1        mp_consume1 = 18        mp_consume2 = 72        cast_range = 400        effective_range = 600        skill_hit_time = 2.5        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 8        attribute = attr_none        effect_point = 476        target_type = target        affect_scope = single        next_action = none        skill_end       
skill_begin        skill_name = [s_cat_recharge6]        /* [캣더캣리차지] */        skill_id = 4025        level = 6        operate_type = A1        magic_level = 60        effect = {{i_mp_by_level;110}}        is_magic = 1        mp_consume1 = 22        mp_consume2 = 88        cast_range = 400        effective_range = 600        skill_hit_time = 2.5        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 8        attribute = attr_none        effect_point = 566        target_type = target        affect_scope = single        next_action = none        skill_end       
skill_begin        skill_name = [s_cat_recharge7]        /* [캣더캣리차지] */        skill_id = 4025        level = 7        operate_type = A1        magic_level = 70        effect = {{i_mp_by_level;129}}        is_magic = 1        mp_consume1 = 26        mp_consume2 = 104        cast_range = 400        effective_range = 600        skill_hit_time = 2.5        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 8        attribute = attr_none        effect_point = 635        target_type = target        affect_scope = single        next_action = none        skill_end

(And if it still doesn't work i can post my npcdata....)

top-gear 14.10.2005 21:38

you are GREAT. Ill donate all of my cash to you :) Tomorrow Ill go to the server and test the code thanks :***

Osito2Dancer 14.10.2005 21:50

Ok, something more direct:

CHECK SUMMONS LEVEL ON NPCDATA.TXT. Example:

npc_begin summon 12344 [cat_the_cat_f] level=27 exp=29252xx.xx acquire_exp_rate=0.2 undying=0 can_be_attacked=0 acquire_sp=2 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_summon_magic_defence} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=7 str=40 int=21 dex=30 wit=20 con=43 men=25 hp_increase=40 mp_increase=7 org_hp_regen=3.5 org_mp_regen=1.5 ground_low={80;0;10} ground_high={120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;10} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=5xx.xx8581237041 org_mp=2xx.xx base_defend=1xx.xx3212013997 base_magic_attack=xx.xx92750090322 base_magic_defend=xx.xx02197974749 base_physical_attack=xx.xx19344057782 physical_hit_modify=3.75 physical_avoid_modify=0 base_attack_speed=257 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-484 collision_radius=9 collision_height=16 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[cat_the_cat_f];{[HealMagic]=@s_cat_recharge2}} corpse_time=7 no_sleep_mode=0 npc_end



As you see there, NPC has lvl 27, and skill "s_cat_recharge2". Taking from Skilldata posted by phantom:



skill_begin skill_name = [s_cat_recharge2] /* [캣더캣리차지] */ skill_id = 4025 level = 2 operate_type = A1 magic_level = 20 effect = {{i_mp_by_level;38}} is_magic = 1 mp_consume1 = 8 mp_consume2 = 31 cast_range = 400 effective_range = 600 skill_hit_time = 2.5 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 8 attribute = attr_none effect_point = 203 target_type = target affect_scope = single next_action = none skill_end

As you see, kat the cat has lvl 27, and magic level = 20. This cat wont heal SHIT!. Now, if you put "s_cat_recharge3" to this cat, voila! cat recharges!!.

So, in resume: Try to keep the breach between summon lvl and the skill's magic_level to a minimum, and youll get a real nice working summon!.

WARNING: Do not edit "magic_lvl". Why? theres 18 "cat_the_cat" summon levels, and only 7 "s_cat_recharge" skills. The idea is to give different summon levels the same skill, based on "magic_level". For instance, a lvl 58, a lvl 60 and a lvl 64 summon can all use the same "s_cat_recharge6" skill, because of the "magic_level=60" clause on that skill.

Any Doubt? Ill read this post and answer it.

Atte

Oso

PD: For your atention: "cat_the_cat_f" is the cat you summon when you have "summon cat the cat" skill lvl 6. Its level isnt correct. Some NPCDatas you can download here on PP have wrong data for summons. For example, if you check "cat_the_cat" lvls:

NPC - LVL of Summon - "Summon Cat the Cat" Skill Level
"cat_the_cat_a" - Lvl = 22 - (Skill lvl 1 )
"cat_the_cat_b" - Lvl = 32 - (Skill lvl 2 )
"cat_the_cat_c" - Lvl = 42 - (Skill lvl 3 )
"cat_the_cat_d" - Lvl = 50 - (Skill lvl 4 )
"cat_the_cat_e" - Lvl = 58 - (Skill lvl 5 )
"cat_the_cat_f" - Lvl = 27 - (Skill lvl 6 )
"cat_the_cat_g" - Lvl = 37 - (Skill lvl 7 )
"cat_the_cat_h" - Lvl = 46 - (Skill lvl 8 )
"cat_the_cat_i" - Lvl = 54 - (Skill lvl 9 )

Hope you understand this, if not, PM me if you're interested.

top-gear 14.10.2005 22:18

VERY helpful osito :* thanks to you too. I'll post tomorrow for the results, im so sleepy now. Tell me if I can do anything for you guys

top-gear 15.10.2005 10:02

NPCDATA ::: npc_ai={[cat_the_cat_f];{[HealMagic]=@s_cat_recharge2}}

My question is... where is defined the AI parametre cat_the_cat_f ?
my ai code for cat the cat is cat_the_cat : summon_heal, without _f or any letters :/

top-gear 15.10.2005 10:17

I wonder if i put just npc_ai={[cat_the_cat] would it work? let's see

Phantom2005 15.10.2005 10:30

Here's the AI of cat the cat

top-gear 15.10.2005 11:54

thanks again phantom! It just worked renaming the npc_ai parametre of the npcdata to cat_the_cat without any letters. The only problem now is that in some levels it doesn't give mp. I think I'll have to test the skilldata a lil bit more. (first level that has a problem, is when you are level 44 and kat the cat is level 6... no mp at all). I will test the way that osito says about the magic level. I hope that will work :P

top-gear 15.10.2005 12:01

whoops. Wrong skill levels in npcdata. I'll test it a little more, and if you want I'll post the complete code here.

top-gear 15.10.2005 12:59

I think I will crate 18 levels of the recharge skill, one for every level of Kat the Cat, cause the 7 levels cannot recharge correctly all the levels. Anyone has a better idea?

Phantom2005 15.10.2005 13:25

Ok i just created this but i didn't test it yet... (stats are same as l2j)
Use it with the ai i posted before....

top-gear 15.10.2005 15:32

Ok I tried to fix it by myself before use the ready code :) I have a problem with the summon levels. Here is the ai and the data for the first level of kat the cat. The problem is that I set the level to 18 and the cat that is summoned is 22. I can't explain why.


AI.obj (Skill)
Code:

class summon_heal : default_npc
parameter_define_begin
  int HealMagic 1030401
parameter_define_end
handler 13  //  CREATED
  variable_begin
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
  variable_end

  shift_sp 1
  push_const xx.xx0000
  func_call 14  //  func[AddPetDefaultDesire_Follow]
  shift_sp -1
  shift_sp -1
handler_end

handler 0  //  NO_DESIRE
  variable_begin
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
  variable_end

  shift_sp 1
  push_const xx.xx0000
  func_call 14  //  func[AddPetDefaultDesire_Follow]
  shift_sp -1
  shift_sp -1
handler_end

handler 32  //  MENU_SELECTED
  variable_begin
      "ask"
      "reply"
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
  variable_end

  shift_sp 1
  push_parameter HealMagic
  func_call 155  //  func[Skill_GetConsumeMP]
  shift_sp -1
  push_event  //  myself
  push_const 28
  add
  fetch_i  //  sm
  push_const 2400
  add
  fetch_i  //  mp
  push_const 352
  add
  fetch_d
  less
  push_reg_sp
  fetch_i
  branch_false L2092
  shift_sp 1
  push_parameter HealMagic
  func_call 154  //  func[Skill_GetConsumeHP]
  shift_sp -1
  push_event  //  myself
  push_const 28
  add
  fetch_i  //  sm
  push_const 2400
  add
  fetch_i  //  hp
  push_const 344
  add
  fetch_d
  less
  and
  push_reg_sp
  fetch_i
  branch_false L2092
  shift_sp 1
  push_parameter HealMagic
  func_call 160  //  func[Skill_InReuseDelay]
  shift_sp -1
  push_const 0
  equal
  and
L2092
  branch_false L2094
L2093
  shift_sp 1
  push_parameter HealMagic
  func_call 155  //  func[Skill_GetConsumeMP]
  shift_sp -1
  push_event  //  myself
  push_const 28
  add
  fetch_i  //  sm
  push_const 2400
  add
  fetch_i  //  mp
  push_const 352
  add
  fetch_d
  less
  push_reg_sp
  fetch_i
  branch_false L2095
  shift_sp 1
  push_parameter HealMagic
  func_call 154  //  func[Skill_GetConsumeHP]
  shift_sp -1
  push_event  //  myself
  push_const 28
  add
  fetch_i  //  sm
  push_const 2400
  add
  fetch_i  //  hp
  push_const 344
  add
  fetch_d
  less
  and
  push_reg_sp
  fetch_i
  branch_false L2095
  shift_sp 1
  push_parameter HealMagic
  func_call 160  //  func[Skill_InReuseDelay]
  shift_sp -1
  push_const 0
  equal
  and
L2095
  branch_false L2097
L2096
  shift_sp 1
  push_event  //  myself
  push_const 28
  add
  fetch_i  //  master
  push_const 2404
  add
  fetch_i
  push_parameter HealMagic
  push_const 1
  push_const 1
  push_const 1000000
  func_call 10  //  func[AddUseSkillDesire]
  shift_sp -5
  shift_sp -1
L2097
L2094
handler_end

class_end

AI.obj (Kat the Cat main)
Code:

class cat_the_cat : summon_heal
handler 10        //  MY_DYING
        variable_begin
                "c0"
                "c1"
                "myself"
                "_choiceN"
                "_code"
                "_from_choice"
        variable_end

        push_event        //  c0
        push_const 272
        add
        push_reg_sp
        fetch_i
        shift_sp 1
        func_call 83        //  func[GetLastAttacker]
        assign
        shift_sp -1
        push_event        //  c0
        push_const 272
        add
        fetch_i        //  npc_class_id
        push_const 1620
        add
        fetch_i
        push_const 1005103
        equal
        branch_false L45754
L45753
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        branch_false L45756
L45755
        push_event        //  c1
        push_const 276
        add
        push_reg_sp
        fetch_i
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        assign
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 230
        func_call 59        //  func[HaveMemo]
        shift_sp -2
        push_reg_sp
        fetch_i
        branch_false L45757
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3371
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        and
L45757
        branch_false L45759
L45758
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3373
        push_const 1
        func_call 77        //  func[GiveItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
S9848.        "ItemSound.quest_itemget"
        push_string S9848
        func_call 173        //  func[SoundEffect]
        shift_sp -2
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3371
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3371
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3370
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3370
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
L45759
L45756
        jump L45760
L45754
        push_event        //  c0
        push_const 272
        add
        fetch_i        //  npc_class_id
        push_const 1620
        add
        fetch_i
        push_const 1005102
        equal
        branch_false L45762
L45761
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        branch_false L45764
L45763
        push_event        //  c1
        push_const 276
        add
        push_reg_sp
        fetch_i
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        assign
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 230
        func_call 59        //  func[HaveMemo]
        shift_sp -2
        push_reg_sp
        fetch_i
        branch_false L45765
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3361
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        and
L45765
        branch_false L45767
L45766
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3363
        push_const 1
        func_call 77        //  func[GiveItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
S9849.        "ItemSound.quest_itemget"
        push_string S9849
        func_call 173        //  func[SoundEffect]
        shift_sp -2
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3361
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3361
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3360
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3360
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
L45767
L45764
        jump L45768
L45762
        push_event        //  c0
        push_const 272
        add
        fetch_i        //  npc_class_id
        push_const 1620
        add
        fetch_i
        push_const 1005105
        equal
        branch_false L45770
L45769
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        branch_false L45772
L45771
        push_event        //  c1
        push_const 276
        add
        push_reg_sp
        fetch_i
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        assign
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 230
        func_call 59        //  func[HaveMemo]
        shift_sp -2
        push_reg_sp
        fetch_i
        branch_false L45773
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3366
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        and
L45773
        branch_false L45775
L45774
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3368
        push_const 1
        func_call 77        //  func[GiveItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
S9850.        "ItemSound.quest_itemget"
        push_string S9850
        func_call 173        //  func[SoundEffect]
        shift_sp -2
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3366
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3366
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3365
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3365
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
L45775
L45772
        jump L45776
L45770
        push_event        //  c0
        push_const 272
        add
        fetch_i        //  npc_class_id
        push_const 1620
        add
        fetch_i
        push_const 1005106
        equal
        branch_false L45778
L45777
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        branch_false L45780
L45779
        push_event        //  c1
        push_const 276
        add
        push_reg_sp
        fetch_i
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        assign
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 230
        func_call 59        //  func[HaveMemo]
        shift_sp -2
        push_reg_sp
        fetch_i
        branch_false L45781
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3376
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        and
L45781
        branch_false L45783
L45782
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3378
        push_const 1
        func_call 77        //  func[GiveItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
S9851.        "ItemSound.quest_itemget"
        push_string S9851
        func_call 173        //  func[SoundEffect]
        shift_sp -2
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3376
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3376
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3375
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3375
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
L45783
L45780
        jump L45784
L45778
        push_event        //  c0
        push_const 272
        add
        fetch_i        //  npc_class_id
        push_const 1620
        add
        fetch_i
        push_const 1005107
        equal
        branch_false L45786
L45785
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        branch_false L45788
L45787
        push_event        //  c1
        push_const 276
        add
        push_reg_sp
        fetch_i
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        assign
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 230
        func_call 59        //  func[HaveMemo]
        shift_sp -2
        push_reg_sp
        fetch_i
        branch_false L45789
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3386
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        and
L45789
        branch_false L45791
L45790
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3388
        push_const 1
        func_call 77        //  func[GiveItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
S9852.        "ItemSound.quest_itemget"
        push_string S9852
        func_call 173        //  func[SoundEffect]
        shift_sp -2
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3386
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3386
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3385
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3385
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
L45791
L45788
        jump L45792
L45786
        push_event        //  c0
        push_const 272
        add
        fetch_i        //  npc_class_id
        push_const 1620
        add
        fetch_i
        push_const 1005104
        equal
        branch_false L45794
L45793
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        branch_false L45796
L45795
        push_event        //  c1
        push_const 276
        add
        push_reg_sp
        fetch_i
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  sm
        push_const 2400
        add
        fetch_i        //  master
        push_const 1684
        add
        fetch_i
        assign
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 230
        func_call 59        //  func[HaveMemo]
        shift_sp -2
        push_reg_sp
        fetch_i
        branch_false L45797
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3381
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        and
L45797
        branch_false L45799
L45798
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3383
        push_const 1
        func_call 77        //  func[GiveItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
S9853.        "ItemSound.quest_itemget"
        push_string S9853
        func_call 173        //  func[SoundEffect]
        shift_sp -2
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3381
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3381
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3380
        shift_sp 1
        push_event        //  c1
        push_const 276
        add
        fetch_i
        push_const 3380
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
L45799
L45796
L45794
L45792
L45784
L45776
L45768
L45760
        call_super
handler_end
class_end

Skilldata.txt (Summon Skill)
Code:

skill_begin skill_name = [s_summon_blackcat1] /* [?? ? ? ?] */ skill_id = 1111 level = 1 operate_type = A1 magic_level = 20 effect = {{i_summon;[cat_the_cat_a];70}} operate_cond = {{can_summon}} is_magic = 1 mp_consume1 = 8 mp_consume2 = 31 item_consume = {[crystal_d];3} cast_range = -1 effective_range = -1 skill_hit_time = 6 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 60 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
Skilldata.txt (Summon's Special Skill)
Code:

skill_begin skill_name = [s_cat_recharge1]  /* [??????] */  skill_id = 4025  level = 1  operate_type = A1  magic_level = 10  effect = {{i_mp_by_level;23}}  is_magic = 1  mp_consume1 = 5  mp_consume2 = 19  cast_range = 400  effective_range = 600  skill_hit_time = 2.5  skill_cool_time = 0  skill_hit_cancel_time = 0.5  reuse_delay = 8  attribute = attr_none  effect_point = 137  target_type = target  affect_scope = single  next_action = none  skill_end
Npcdata.txt (first level of kat the cat servitor)
Code:

npc_begin        summon        12006        [cat_the_cat_a]        level=18        exp=1242547        acquire_exp_rate=0.3        undying=0        can_be_attacked=0        acquire_sp=3        race=humanoid        sex=male        temper=100        safe_height=100        org_jump=15        skill_list={@s_summon_magic_defence}        magic_list={}        max_item=50        item_make_list={}        corpse_make_list={}        additional_make_list={}        additional_make_multi_list={}        slot_chest=[]        slot_rhand=[]        slot_lhand=[]        base_attack_type=fist        base_can_penetrate=0        base_attack_range=40        base_damage_range={0;0;80;120}        base_rand_dam=7        str=40        int=21        dex=30        wit=20        con=43        men=25        hp_increase=40        mp_increase=7        org_hp_regen=4        org_mp_regen=1.5        ground_low={80;0;10}        ground_high={120;-30;30}        underwater_low={50;0;10}        underwater_high={0;0;30}        fly_low={0;0;10}        fly_high={0;-30;30}        float_low={0;0;10}        float_high={0;-30;10}        org_earshot=100        sight={0;0;2500;120;5}        agro_range=1000        org_hp=3xx.xx2109826547        org_mp=219        base_defend=xx.xx79129306508        base_magic_attack=xx.xx04424953224        base_magic_defend=xx.xx23247609444        base_physical_attack=xx.xx33694157268        physical_hit_modify=3.75        physical_avoid_modify=0        base_attack_speed=257        base_reuse_delay=0        base_critical=4        magic_use_speed_modify=0        status={normal}        align=-484        collision_radius=9        collision_height=16        category={}        clan={}        clan_help_range=300        guild={}        pledge={}        pledge_leader=0        alliance={}        alliance_leader=0        ignore_clan_list={}        ruler=0        ruling_domain={}        npc_ai={[cat_the_cat];{[HealMagic]=@s_cat_recharge1}}        corpse_time=7        no_sleep_mode=0        npc_end
I can't explain why the servitor's levels are wrong

top-gear 15.10.2005 16:54

Ok the exp= parametre defines the level and not level=
here is the correct xp list for those who are interested

skill level/summon's level/summon's xp
Code:

1        a 18 540000
2        b 23 1495543
3        c 28 3407897
4        d 32 5981576
5        e 38 12395215
6        f 42 18995665
7        g 46 28049635
8        h 50 40154162
9        i 54 63907911
10        j 56 80700831
11        k 58 102265881
12        l 60 126509653
13        m 62 167244337
14        n 64 212717908
15        o 66 271975263
16        p 68 346827154
17        q 70 429634523
18        r 72 532694979



All times are GMT. The time now is 16:19.