![]() |
[SHARE] C4 Pets
This if for you my friends - who use c4 client. BUT this pets dont work - when i dclick on flute - i summon nothing. Any help?
SORRY torune - you already share it :( but i share itemdata Npcdata.txt Code:
npc_begin pet 12780 [baby_buffalo] level=35 exp=85609xx.xx acquire_exp_rate=0.1 undying=0 can_be_attacked=0 acquire_sp=1 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.5 org_mp_regen=1.8 ground_low={80;0;10} ground_high={140;-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.xx9008624428 org_mp=339 base_defend=xx.xx23705788166 base_magic_attack=xx.xx87280708638 base_magic_defend=xx.xx31752994285 base_physical_attack=xx.xx22390732649 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=12 collision_height=15 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[baby_buffalo]} corpse_time=180 no_sleep_mode=0 npc_endCode:
[baby_buffalo] = 1012780Code:
item_begin etcitem 6648 [baby_buffalo] item_type=weapon slot_bit_type={none} armor_type=none etcitem_type=pet_collar blessed=0 weight=20 default_action=action_skill_maintain consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=0 spiritshot_count=0 immediate_effect=0 price=0 default_price=1000 item_skill=[s_wolf_collar] critical_attack_skill=[none] material_type=steel crystal_type=none crystal_count=0 is_trade=1 is_drop=1 is_destruct=1 physical_damage=0 random_damage=0 weapon_type=none can_penetrate=0 critical=0 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=0 effective_range=0 damage_range={} attack_speed=0 reuse_delay=0 mp_consume=0 magical_damage=0 durability=0 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 item_endCode:
[baby_buffalo] = 6648Code:
class baby_buffalo : pet_physicalattack This is c4 pets only small - a have big one and ill share it late. |
Just make a NPC that give you the flute. Here is what I've made, the whole thing, cause I don't have the time to check your id.
Begin with the pet: npcdata Code:
npc_begin pet 12780 [baby_buffalo] level=35 exp=4370195 acquire_exp_rate=0.1 undying=0 can_be_attacked=0 acquire_sp=1 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.5 org_mp_regen=1.8 ground_low={80;0;10} ground_high={140;-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.xx9008624428 org_mp=339 base_defend=xx.xx23705788166 base_magic_attack=xx.xx87280708638 base_magic_defend=xx.xx31752994285 base_physical_attack=xx.xx22390732649 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=12 collision_height=15 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[baby_buffalo]} corpse_time=180 no_sleep_mode=0 npc_endCode:
class baby_buffalo : pet_physicalattackCode:
[baby_buffalo] = 1012780 |
Damn error -_-
Now the npc : AI Code:
class pet_dude : citizenCode:
npc_begin warehouse_keeper 7086 [taurin] level=70 exp=4296345xx.xx5 acquire_exp_rate=0.3 undying=1 can_be_attacked=0 acquire_sp=30 race=dwarf sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 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=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 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;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=1345.8 base_defend=2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend=2xx.xx8467292763 base_physical_attack=6xx.xx3725587608 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=17 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[pet_dude];{[fnHi] = [petdude.htm]}} corpse_time=7 no_sleep_mode=0 npc_enditemdata Code:
item_begin etcitem 6648 [ostrich_flute_a] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=pet_collar blessed=0 weight=20 default_action=action_skill_maintain consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=0 spiritshot_count=0 immediate_effect=0 price=0 default_price=1000 item_skill=[s_wolf_collar] critical_attack_skill=[none] material_type=steel crystal_type=none crystal_count=0 is_trade=1 is_drop=1 is_destruct=1 physical_damage=0 random_damage=0 weapon_type=none can_penetrate=0 critical=0 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=0 effective_range=0 damage_range={} attack_speed=0 reuse_delay=0 mp_consume=0 magical_damage=0 durability=0 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 item_endCode:
[ostrich_flute_a] = 6648Code:
<html> |
He thx - now i understand all i need ;)
|
Thanks
|
we need to add create_pet 9,10,11 ... by hexing now, right ?
|
Yes - you need hex
|
and the food ??
|
Quote:
|
7582 baby spice :D
|
Eanae > but from where i can get the numbers for food? Or it's just ammount?
|
nice share thk (+^_^+)
|
ty man!
testing testing :) 2Amanda: nice avatar... |
Tnx for the share !!! :wink:
OFFTOPIC : Zeran i like your avatar more :lol: |
Thanks for the share! good work :P
|
like good ol times
[php:1:b9633eb095] class default_npc {} class baby_pet : default_npc { parameter: int MeatReuse = 1000; int MeatAmount = 1; int Meat = @food_for_baby; int SkillReuse = 100000; int HealMagic = @s_pet_playful_heal1; handler: EventHandler CREATED() { AddPetDefaultDesire_Follow(200.0); AddTimerEx(100070, MeatReuse); //Auto food AddTimerEx(100079, SkillReuse); //AUto -random- skill } EventHandler NO_DESIRE() { AddPetDefaultDesire_Follow(200.0); AddTimerEx(100070, MeatReuse); AddTimerEx(100079, SkillReuse); } EventHandler TIMER_FIRED_EX(myself, timer_id) { if (timer_id == 100070) { if (myself.master.alive == 0) { Despawn(); }//CHANGE MAX HP TO myself.sm.m_MaxMeal and replace constant 1000 to push_const 1724 if ((myself.sm.m_Meal <= ((myself.sm.max_hp*55)/100)) && (OwnItemCount(myself.sm.master, Meat) > 0)) { myself.sm.m_Meal = (myself.sm.m_Meal+100); DeleteItem1(myself.sm.master, Meat, 1); AddEffectActionDesire(myself.master, 3, 3000, 10000); } AddTimerEx(100070, MeatReuse); } if (timer_id == 100079) { if (myself.master.alive == 0) { Despawn(); } if(Skill_GetConsumeMP(HealMagic) < myself.sm.mp && Skill_GetConsumeHP(HealMagic) < myself.sm.hp && Rand(100) < 40) { AddUseSkillDesire(myself.master, HealMagic, 1, 1, 1000000); AddEffectActionDesire(myself.master, 4, 3000, 10000); AddTimerEx(100079, SkillReuse); } } } EventHandler MASTER_ATTACK(target) { if (target != myself.sm) AddAttackDesire(target, @AMT_MOVE_TO_TARGET, 100); } EventHandler TALKED(talker) { AddEffectActionDesire(talker, 1, 3000, 10000); } EventHandler SEE_CREATURE(creature, i0) { i0 = Rand(100); if (DistFromMe(creature) < 300 && i0 > 80) AddEffectActionDesire(creature, 2, 3000, 10000); } EventHandler MY_DYING(myself) { ShowSystemMessage(myself.master, 1520); } EventHandler MENU_SELECTED(talker, ask ,reply, i0, c0) { if(ask == 1) { i0 = myself.master.target_index; if (i0 <= 0) return; c0 = GetCreatureFromIndex(i0); if (c0) { if(Skill_GetConsumeMP(HealMagic) < myself.sm.mp && Skill_GetConsumeHP(HealMagic) < myself.sm.hp) AddUseSkillDesire(myself.master, HealMagic, 1, 1, 1000000); AddEffectActionDesire(myself.master, 4, 3000, 10000); } } if(ask == 1 && reply == 1) //CTRL+MOVETO = Move to master target { i0 = myself.master.target_index; if (i0 <= 0) return; c0 = GetCreatureFromIndex(i0); AddMoveToDesire(FloatToInt(c0.x), FloatToInt(c0.y), FloatToInt(c0.z), 1000); } if(ask == 0 && reply == 0) //ALT+DESPAWN = Despawn { ShowSystemMessage(myself.master, 1520); Despawn(); } } } class baby_bufalo : baby_pet { } class baby_ostrich : baby_pet { } class baby_cougar : baby_pet { } [/php:1:b9633eb095] |
Hello!
We are going for part:D Guiding for this post began to work to implant Pets of C4; The part of NPC was everything certain, see the pictures: http://img506.imageshack.us/img506/3...ot000050fp.jpg As for the petdude.html had a problem, I put the AI.OBJ and HTML in NPC to I lower more when I try to catch C4Pet looks the mistake: http://img66.imageshack.us/img66/8113/shot000074eo.jpg NPC that is: Code:
npc_begin warehouse_keeper 7318 [__tess_grayrock] level=70 exp=4296345xx.xx5 acquire_exp_rate=2.1 undying=1 can_be_attacked=0 acquire_sp=840 race=dwarf sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_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=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 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;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx043718861 org_mp=1345.8 base_defend=2xx.xx5970408024 base_magic_attack=4xx.xx4095517361 base_magic_defend=2xx.xx8467292763 base_physical_attack=6xx.xx5273519793 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=17 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[pet_dude];{[fnHi] = [petdude.htm]}} corpse_time=7 no_sleep_mode=0 npc_endhttp://img66.imageshack.us/img66/4170/shot000093zt.jpg Obs: Use the AI.OBJ of Sdw I am thinking that this AI.OBJ is not correct, because I made everything step the step and did I still revise vary times, did anybody really get to implant C4Pet or all post alone Flame were? In case somebody has an idea, I am attentive:D |
petdata for baby pets
|
| All times are GMT. The time now is 23:20. |