![]() |
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 ...
|
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?
|
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 |
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
|
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 |
I managed to summon cat the kat with correct skin again. Mp recharge does nothing at all though :(
|
Quote:
for the AI: Code:
class summon_heal : default_npc(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 |
you are GREAT. Ill donate all of my cash to you :) Tomorrow Ill go to the server and test the code thanks :***
|
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. |
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
|
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 :/ |
I wonder if i put just npc_ai={[cat_the_cat] would it work? let's see
|
Here's the AI of cat the cat
|
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
|
whoops. Wrong skill levels in npcdata. I'll test it a little more, and if you want I'll post the complete code here.
|
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?
|
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.... |
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 Code:
class cat_the_cat : summon_healCode:
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_endCode:
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_endCode:
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 |
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 |
| All times are GMT. The time now is 16:19. |