![]() |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
When you start event, everything looks fine, but when you get christmas tree it doesn't give any present and the special tree shows that it restores the HP / MP and the small icon apears, but actually it doesn't
Where is the problem? Where to look? Here is my Itemdata Code:
item_begin etcitem 5560 [x_mas_tree1] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=potion recipe_id=0 blessed=0 weight=0 default_action=action_skill_reduce consume_type=consume_type_stackable initial_count=1 maximum_count=20 soulshot_count=0 spiritshot_count=0 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=1 item_skill=[s_summon_x_mas_tree_a] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[none] material_type=paper 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 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 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end
item_begin etcitem 5561 [x_mas_tree2] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=potion recipe_id=0 blessed=0 weight=0 default_action=action_skill_reduce consume_type=consume_type_stackable initial_count=1 maximum_count=20 soulshot_count=0 spiritshot_count=0 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=1 item_skill=[s_summon_x_mas_tree_b] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[none] material_type=paper 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 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 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jul 2006
Posts: 118
|
what is instrucion to eventdata.
thank |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
...What?...
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2006
Posts: 241
|
u should check npcdata...
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Here is the AI for big tree:
Code:
class 1 event_tree_use_skill : default_npc handler 13 24 // CREATED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 704 add fetch_i push_const 5001 push_const 1000 push_const 60 mul push_const 20 mul func_call 184680487 // func[AddTimerEx] shift_sp -2 shift_sp -1 push_event // myself push_const 704 add fetch_i push_const 5002 push_const 1000 push_const 10 mul func_call 184680487 // func[AddTimerEx] shift_sp -2 shift_sp -1 handler_end handler 12 111 // TIMER_FIRED_EX variable_begin "timer_id" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // timer_id push_const 236 add fetch_i4 push_const 5001 equal branch_false L20684 L20683 push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 jump L20685 L20684 push_event // timer_id push_const 236 add fetch_i4 push_const 5002 equal branch_false L20687 L20686 push_event // myself push_const 704 add fetch_i push_const 547585 func_call 184615128 // func[Skill_GetConsumeMP] shift_sp -1 push_event // myself push_const 704 add fetch_i // sm push_const 544 add fetch_i // mp push_const 400 add fetch_d less push_reg_sp fetch_i branch_false L20688 push_event // myself push_const 704 add fetch_i push_const 547585 func_call 184615127 // func[Skill_GetConsumeHP] shift_sp -1 push_event // myself push_const 704 add fetch_i // sm push_const 544 add fetch_i // hp push_const 392 add fetch_d less and push_reg_sp fetch_i branch_false L20688 push_event // myself push_const 704 add fetch_i push_const 547585 func_call 184615133 // func[Skill_InReuseDelay] shift_sp -1 push_const 0 equal and L20688 branch_false L20690 L20689 push_event // myself push_const 704 add fetch_i push_event // myself push_const 704 add fetch_i // sm push_const 544 add fetch_i push_const 547585 push_const 1 push_const 1 push_const 1000000 func_call 184877074 // func[AddUseSkillDesire] shift_sp -5 shift_sp -1 L20690 push_event // myself push_const 704 add fetch_i push_const 5002 push_const 10000 func_call 184680487 // func[AddTimerEx] shift_sp -2 shift_sp -1 L20687 L20685 call_super handler_end class_end |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
And here for the small one:
Code:
class 1 event_tree : default_npc handler 13 13 // CREATED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 704 add fetch_i push_const 5001 push_const 1000 push_const 60 mul push_const 20 mul func_call 184680487 // func[AddTimerEx] shift_sp -2 shift_sp -1 handler_end handler 12 16 // TIMER_FIRED_EX variable_begin "timer_id" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // timer_id push_const 236 add fetch_i4 push_const 5001 equal branch_false L20682 L20681 push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 L20682 call_super handler_end class_end Code:
npc_begin holything 12619 [x_mas_tree_a] level=70 acquire_exp_rate=0.1 acquire_sp=10 unsowing=1 clan={} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_divine;@s_full_magic_defence} npc_ai={[x_mas_tree_a]} category={} race=divine sex=male undying=1 can_be_attacked=0 corpse_time=7 no_sleep_mode=0 agro_range=1000 ground_high={120;0;0} ground_low={30;0;0} exp=429634528 org_hp=2444.5 org_hp_regen=7.5 org_mp=1345.8 org_mp_regen=2.7 collision_radius={0;0} collision_height={0;0} str=40 int=21 dex=30 wit=20 con=43 men=10 base_attack_type=sword base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 base_physical_attack=6xx.xx base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=470.4 base_defend=2xx.xx base_magic_defend=2xx.xx physical_avoid_modify=0 soulshot_count=0 spiritshot_count=0 hit_time_factor=0.52 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} hp_increase=0 mp_increase=0 safe_height=100 npc_end
npc_begin xmastree 12620 [x_mas_tree_b] level=70 acquire_exp_rate=0.1 acquire_sp=10 unsowing=1 clan={} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_divine;@s_full_magic_defence} npc_ai={[x_mas_tree_b]} category={} race=divine sex=male undying=1 can_be_attacked=0 corpse_time=7 no_sleep_mode=0 agro_range=1000 ground_high={120;0;0} ground_low={30;0;0} exp=429634528 org_hp=2444.5 org_hp_regen=7.5 org_mp=1345.8 org_mp_regen=2.7 collision_radius={0;0} collision_height={0;0} str=40 int=21 dex=30 wit=20 con=43 men=10 base_attack_type=sword base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 base_physical_attack=6xx.xx base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=470.4 base_defend=2xx.xx base_magic_defend=2xx.xx physical_avoid_modify=0 soulshot_count=0 spiritshot_count=0 hit_time_factor=0.52 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} hp_increase=0 mp_increase=0 safe_height=100 npc_end
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Sep 2006
Posts: 26
|
class 1 x_mas_tree_a : event_tree
class_end class 1 x_mas_tree_b : event_tree_use_skill class_end |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
vopros
And? You could see that I posted their superclass here. |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
My trees work fine...
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Oct 2006
Posts: 32
|
give me pls eventdata for this event... i can not find what to paste there(
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Just do the same than for other events... Just change the event npcpos and the dropitems...
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
mcrabben7
Do you have the same AI I posted here? And do you have "presents" around small trees? Could you post your AI (the christmass part of AI) here? |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
I dont know, but... trees give presents ?i dont think so... and if that is true, i dont see that in AI. Trees are supposed to do nothing, and Special Trees to increase recovery speed of HP/MP in a range of 200 and that works very good... I only see a "hide" function in the santa helper to buff players with Christmas buffs... "Christmas Wind Walk" , etc, i have that working, you only need to add one option more to main html.
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Decompiled code... with SauDecompiler...
Code:
class event_tree : default_npc
{
handler:
EventHandler CREATED()
{
myself->AddTimerEx(5001,( ( 1000 * 60 ) * 20 ));
}
EventHandler TIMER_FIRED_EX(timer_id)
{
if( timer_id == 5001 ) Despawn();
super;
}
}
class event_tree_use_skill : default_npc
{
handler:
EventHandler CREATED()
{
myself->AddTimerEx(5001,( ( 1000 * 60 ) * 20 ));
myself->AddTimerEx(5002,( 1000 * 10 ));
}
EventHandler TIMER_FIRED_EX(timer_id)
{
if (timer_id == 5001) Despawn();
else if (timer_id == 5002)
{
if( myself->Skill_GetConsumeMP(547585) < myself.sm.c_ai3 && myself->Skill_GetConsumeHP(547585) < myself.sm.c_ai2 && myself->Skill_InReuseDelay(547585) == 0 )
{
myself->AddUseSkillDesire(myself.sm,547585,1,1,1000000);
}
myself->AddTimerEx(5002,10000);
}
super;
}
}
Special Tree use each 10 seconds a skill... this skill you can see in skilldata... increase recovery speed of HP/MP and it have a duration of 10 seconds... and range of 200.. so.. if you are near the tree you have recovery bonus all the time. Nothing more. No presents... |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
I see all of these in my AI, but I've heard many times that small tree should give "presents" when you spawn it, but the class is empty!
Could you tell a litle bit more about Santa buff? How does that option look like? |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Oct 2005
Posts: 35
|
can someone write his eventdata.ini cause i didnt manage yet to launch the event
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
Code:
class event_santa : citizen
{
parameter:
handler:
EventHandler MENU_SELECTED(talker,ask,reply)
{
if( reply == 1 ) myself->ShowPage(talker,"event_santa_wannabe1_q0998_01.htm");
else if( reply == 2 )
{
if( myself->OwnItemCount(talker,@adena) >= 1000 )
{
myself->ShowPage(talker,"event_santa_wannabe1_q0998_01a.htm");
myself->GiveItem1(talker,@x_mas_2004,1);
myself->DeleteItem1(talker,@adena,1000);
}
else myself->ShowPage(talker,"event_santa_wannabe1_q0998_01b.htm");
}
else if( reply == 3 ) myself->ShowPage(talker,"event_santa_wannabe1_q0998_02.htm");
else if( reply == 4 )
{
if( myself->OwnItemCount(talker,@deco_star) >= 4 && myself->OwnItemCount(talker,@deco_bead) >= 4 && myself->OwnItemCount(talker,@fir_spring) >= 10 && myself->OwnItemCount(talker,@flowerpot) >= 1 )
{
myself->ShowPage(talker,"event_santa_wannabe1_q0998_03.htm");
myself->DeleteItem1(talker,@deco_star,4);
myself->DeleteItem1(talker,@deco_bead,4);
myself->DeleteItem1(talker,@fir_spring,10);
myself->DeleteItem1(talker,@flowerpot,1);
myself->GiveItem1(talker,@x_mas_tree1,1);
}
else myself->ShowPage(talker,"event_santa_wannabe1_q0998_03a.htm");
}
else if( reply == 5 )
{
if( myself->OwnItemCount(talker,@x_mas_tree1) >= 10 )
{
myself->DeleteItem1(talker,@x_mas_tree1,10);
myself->GiveItem1(talker,@x_mas_tree2,1);
myself->ShowPage(talker,"event_santa_wannabe1_q0998_04.htm");
}
else myself->ShowPage(talker,"event_santa_wannabe1_q0998_04a.htm");
}
else if( reply == 6 ) myself->ShowPage(talker,"event_santa_wannabe1_q0998_05.htm");
else if( reply == 11 )
{
if( myself->Skill_GetConsumeMP(@s_christmas_wind_walk) < myself.sm.mp && myself->Skill_GetConsumeHP(@s_christmas_wind_walk) < myself.sm.hp && myself->Skill_InReuseDelay(@s_christmas_wind_walk) == 0 )
{
myself->AddUseSkillDesire(talker,@s_christmas_wind_walk,1,1,1000000);
}
myself->ShowPage(talker,"event_santa_wannabe1_q0998_06.htm");
}
else if( reply == 12 )
{
if( myself->Skill_GetConsumeMP(@s_christmas_haste) < myself.sm.mp && myself->Skill_GetConsumeHP(@s_christmas_haste) < myself.sm.hp && myself->Skill_InReuseDelay(@s_christmas_haste) == 0 )
{
myself->AddUseSkillDesire(talker,@s_christmas_haste,1,1,1000000);
}
myself->ShowPage(talker,"event_santa_wannabe1_q0998_07.htm");
}
else if( reply == 13 )
{
if( myself->Skill_GetConsumeMP(@s_christmas_empower) < myself.sm.mp && myself->Skill_GetConsumeHP(@s_christmas_empower) < myself.sm.hp && myself->Skill_InReuseDelay(@s_christmas_empower) == 0 )
{
myself->AddUseSkillDesire(talker,@s_christmas_empower,1,1,1000000);
}
myself->ShowPage(talker,"event_santa_wannabe1_q0998_08.htm");
}
else if( reply == 14 )
{
if( myself->Skill_GetConsumeMP(@s_christmas_might) < myself.sm.mp && myself->Skill_GetConsumeHP(@s_christmas_might) < myself.sm.hp && myself->Skill_InReuseDelay(@s_christmas_might) == 0 )
{
myself->AddUseSkillDesire(talker,@s_christmas_might,1,1,1000000);
}
myself->ShowPage(talker,"event_santa_wannabe1_q0998_09.htm");
}
else if( reply == 15 )
{
if( myself->Skill_GetConsumeMP(@s_christmas_shield) < myself.sm.mp && myself->Skill_GetConsumeHP(@s_christmas_shield) < myself.sm.hp && myself->Skill_InReuseDelay(@s_christmas_shield) == 0 )
{
myself->AddUseSkillDesire(talker,@s_christmas_shield,1,1,1000000);
}
myself->ShowPage(talker,"event_santa_wannabe1_q0998_10.htm");
}
else if( reply == 21 ) myself->ShowPage(talker,"event_santa_wannabe1_q0998_11.htm");
else if( reply == 22 )
{
if( myself->OwnItemCount(talker,@x_mas_tree1) >= 10 )
{
myself->DeleteItem1(talker,@x_mas_tree1,10);
myself->GiveItem1(talker,@santas_cap,1);
myself->ShowPage(talker,"event_santa_wannabe1_q0998_12.htm");
}
else myself->ShowPage(talker,"event_santa_wannabe1_q0998_13.htm");
}
}
}
|
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
You are absolutelly right! In this file "event_santa_wannabe1001.htm" I have this link to HTML, but nothing in "event_santa_wannabe2001.htm"
Just one question left. Should the small tree give any present or not (I know there is nothing in the class)? |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
I have read through again all messages. The sense is lost.
First has been asked a question: all works normally but why there is no effect from cristmas-tree skill (regeneration HP/MP). The idea, that a problem in AI has arrived. In AI, I does not have problems. The Santa changes for things two types of cristmas-trees - big and small. Small it is used only for an ornament and entertainment. Also vanishes after a while. Big has constant effect of regeneration around of herself, but on small distance. And too vanishes after a while. I do not see a problem that. If there is a suspicion, that skill does not work - install skill to itself and check up effect on associates. |
|
|
|
|
#20 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
HF
/rus Дело не в скилах. Они пашут. Просто даже на этом форуме пара человек говорила, что маленькие деревья саммонят подарки вокруг себя. А на деле это не так. По крайней мере у меня. Класс пустой у них. Вот в этом проблема. А все остальное работает прекрасно! /rus The problem is not within the skill, but small trees. I've heard even on this forum from few persons that small trees should give some presents after summoning. But AI for the small tree is empty. That is the problem. |
|
|
|
|
#21 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Get true information before asking anything... http://www.lineage2.com/archive/2005...the_halls.html
If anyone has any other info then give it... but with details. If you want the trees to give something then just make them dropitem on create. |
|
|
|
|
#22 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Thanks m4rk!
Will give this link to anyone who tells that small trees must give something! I've heard it from user - {at} on the other forum and from someone else, can't remember all names |
|
|
|
|
#23 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
But the retail version dont do that. |
|
|
|
|
|
#24 | |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Quote:
![]() Lets close this topic on this point.
|
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Jul 2005
Posts: 123
|
ERROR:
Invalid Despawn() called count[2], npc[x_mas_tree_a] code: Code:
L20683 push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 jump L20685 |
|
|
|
|