![]() |
[Sharing] Working Wild Hog Cannon with skill
Ok first things first...You need to modify the Chronicle 2 client which means you will need to add this new edition to any client patches for your server... The file you need to edit is in the system folder...It's called mobskillanimgrp ... First decrypt it, then search for s_siege_hammer and right below it add the following line:
[php:1:d6c6e0484c]skill_begin skill_name = [s_wild_cannon] skill_id = 4230 npc_name = [range_golem] npc_id = 12375 npc_class = [range_golem] seq_name = [spatk01] skill_end[/php:1:d6c6e0484c] Re-encrypt the file using the 411 header and replace the old file with this new one... Ok, next we need to do some server file editing...Open up your skilldata file and add the following line: [php:1:d6c6e0484c]skill_begin skill_name = [s_wild_cannon1] /* [???? ????] */ skill_id = 4230 level = 1 operate_type = A1 magic_level = 49 effect = {{i_p_attack_over_hit;266024}} operate_cond = {{op_siege_hammer}} is_magic = 0 mp_consume2 = 0 cast_range = 600 effective_range = 1000 skill_hit_time = 4.8 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 5 attribute = attr_none effect_point = -100 target_type = enemy affect_scope = single next_action = none skill_end[/php:1:d6c6e0484c] Now open your skill_pch file and add this: [php:1:d6c6e0484c][s_wild_cannon1] = 1082881[/php:1:d6c6e0484c] After that open up skill_pch2 and add this line: [php:1:d6c6e0484c]1082881 600 0 0 3 -100 29 -1 0 5 0 0 -12345[/php:1:d6c6e0484c] Ok, so far so good...Now for the big part...If you don't already have a range_golem AI, then you will need to add this part...If you already have one set up, you just need to change the push_const values to match the number in the skill_pch2 file for the s_wild_cannon... [php:1:d6c6e0484c]class summon_range_golem : default_npc 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 shift_sp 1 push_const 100020 push_const 1000 func_call 28 // func[AddTimerEx] shift_sp -2 shift_sp -1 shift_sp 1 push_const 100021 push_const 1000 push_const 60 mul func_call 28 // func[AddTimerEx] shift_sp -2 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 "talker" "ask" "reply" "i0" "c0" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // i0 push_const 192 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // master push_const 2404 add fetch_i // target_id push_const 388 add fetch_i assign shift_sp -1 shift_sp 1 push_const 1082881 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 L50000 shift_sp 1 push_const 1082881 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 L50000 shift_sp 1 push_const 1082881 func_call 160 // func[Skill_InReuseDelay] shift_sp -1 push_const 0 equal and L50000 branch_false L50002 L50001 shift_sp 1 push_event // i0 push_const 192 add fetch_i push_const 1082881 push_const 0 push_event // reply push_const 104 add fetch_i push_event // ask push_const 100 add fetch_i push_const 1000000 func_call 11 // func[AddUseSkillDesireEx] shift_sp -6 shift_sp -1 L50002 handler_end handler 12 // TIMER_FIRED_EX variable_begin "timer_id" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // timer_id push_const 176 add fetch_i push_const 100020 equal branch_false L50004 L50003 push_event // myself push_const 28 add fetch_i // master push_const 2404 add fetch_i // alive push_const 112 add fetch_i push_const 0 equal branch_false L50006 L50005 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 L50006 shift_sp 1 push_const 100020 push_const 1000 func_call 28 // func[AddTimerEx] shift_sp -2 shift_sp -1 L50004 push_event // timer_id push_const 176 add fetch_i push_const 100021 equal branch_false L50008 L50007 shift_sp 1 push_event // myself push_const 28 add fetch_i // master push_const 2404 add fetch_i push_const 2132 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 140 less push_reg_sp fetch_i branch_false L50009 shift_sp 1 push_event // myself push_const 28 add fetch_i // master push_const 2404 add fetch_i push_const 2132 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 70 greater_equal and L50009 branch_false L50011 L50010 shift_sp 1 shift_sp 1 push_const 1000169 S10900. "" push_string S10900 S10901. "" push_string S10901 S10902. "" push_string S10902 S10903. "" push_string S10903 S10904. "" push_string S10904 func_call 89 // func[MakeFString] shift_sp -6 func_call 37 // func[Say] shift_sp -1 shift_sp -1 L50011 shift_sp 1 push_event // myself push_const 28 add fetch_i // master push_const 2404 add fetch_i push_const 2132 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 70 greater_equal branch_false L50013 L50012 shift_sp 1 push_event // myself push_const 28 add fetch_i // master push_const 2404 add fetch_i push_const 2132 push_const 70 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 jump L50014 L50013 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 L50014 shift_sp 1 push_const 100021 push_const 1000 push_const 60 mul func_call 28 // func[AddTimerEx] shift_sp -2 shift_sp -1 L50008 handler_end class_end[/php:1:d6c6e0484c] After that you are all set to go... NOTE: This code is only a skeleton to make the wild hog cannon use it's skill and consume b gemstones instead of c gemstones...You will need to do some editing to get it just right...Things to edit: range of the skill(with this file it will still try to get real close to the wall or gate to fire the cannon) Also, you need to adjust the amount of b gemstones consumed by the Wild Hog Cannon...Change them to 30 instead of 70...Ok, that's about it for now!!! If there are any problems with the code, let me know and I'll help ya out!!! FINAL THOUGHT: Unlike some people on this forum I will not flame you for asking questions...I will not flame you because you have a low post count...I believe in total disclosure of information...If you have a new solution to a common problem in the community, help out!!! Don't restrict your work to a select few friends or individuals...Where would Linux be today if only a private group of developers had all the code and never shared it lol? When you get EVERYONE working for a common goal, development happens much more rapidly...I encourage everyone to disclose new things they discover rather then hide them from the public... Peace :wink: omg omg omg Can I like join the C3 Dev LA Team??!?!?! Not......... |
:) good job
|
I see it works for you with the code I posted good deal, hope everyones WHC works now.
|
Quote:
|
Yeah tnx.. I'm going to test this one later night... :D
|
Good job there HongK!
Looks realy nice ! |
Quote:
|
Quote:
|
Yeah I wasn't downing ya or anything I don't do that, it doesn't matter to me if you used mine or your own, I put it in that post for just that to be shared so anyway congratz again.
|
i need fix from range golem from npcdata pleaseee
|
Quote:
Code:
npc_begin summon 12375 [range_golem] level=70 exp=485484454 acquire_exp_rate=1.8 undying=0 can_be_attacked=1 acquire_sp=2500 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={} 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=pole 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.5 org_mp_regen=1.8 ground_low={50;0;10} ground_high={186;-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;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=500000 org_mp=2154 base_defend=837 base_magic_attack=1098 base_magic_defend=1358 base_physical_attack=1256 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=93 collision_height=90 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[range_golem]} corpse_time=7 no_sleep_mode=0 npc_end |
add categorydata.txt
@range_golem; Thanks man nice =) |
goes against ^^
|
and dmagic ??
range golem not have skills? ? |
Ya no ddmagic :(
|
Re: [Sharing] Working Wild Hog Cannon with skill
Quote:
|
Anybody knows how to decode mobskillanimgrp.dat?
|
| All times are GMT. The time now is 23:03. |