![]() |
sa-leveling
Hi ppl!
I'm makeing ai-script for sa-crystal leveling, and I have some problems with it. I use handler 1 // ATTACKED and handler 2 // SPELLED in my ai-script. But when I'm cast s_soul_crystal on NPC this handlers don't work. If normal attack or spell - all ok and handler invoked. If with soul_crystal - nothing happened. What can it be? My itemdata: Code:
item_begin etcitem 4651 [blue_soul_crystal_0] item_type=weapon slot_bit_type={none} armor_type=none etcitem_type=none blessed=0 weight=0 default_action=action_skill_maintain consume_type=consume_type_stackable initial_count=1 maximum_count=20 soulshot_count=0 spiritshot_count=0 immediate_effect=1 price=0 default_price=0 item_skill=[s_soul_crystal] 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:
skill_begin skill_name=[s_soul_crystal] /* [???] */ skill_id=2096 level=1 operate_type=A1 magic_level=50 effect={} is_magic=1 mp_consume2=26 cast_range=300 effective_range=400 skill_hit_time=4 skill_cool_time=0 skill_hit_cancel_time=0.5 reuse_delay=10 attribute=attr_none effect_point=10 target_type=enemy affect_scope=single next_action=none skill_end |
[rus]
когда используеться item, l2server шлет пакет l2npc о том что заюзался итем но не шлет что был использован скилл, что бы данный эфект заработал нужно есесно хексить l2server, здесь идет вызов скилла 0x4473BC после использования итема [/rus] |
2melco: no need to hex, just to change some parameters in itemdata.txt
2all: Thanks for "help/tips/suggestions", problem solved. 2moderator: You can delete this topic... |
Quote:
... 0x4473BC: CSkillInfo::ActivateSkill() ... } <end of CCreature::UseItem method> I think that this function belong to creature class - not to user, IMHO |
zcold share plz itemdata - one crystal plz... i have this error too :)
|
Domzelan just change "item_skill=[s_soul_crystal] critical_attack_skill=[none]" on "item_skill=[s_soul_crystal] critical_attack_skill=[s_soul_crystal]" in my posted itemdata part ;)
Don't know will it work with shared here SA-leveling ai code - I'm code my own ai - all work ok. |
Quote:
...TUser = class(TCCreature).... understand ? |
Quote:
Ok, I'll test. |
Quote:
You a Delphi programmer? |
Quote:
|
zcold what handler you using? SEE_SPELL or SPELLED?
У меня ни так ни так, ни хоть как не пашет(( |
Quote:
Assign skill to ietm in itemdata.txt and insert in SPELLED handler extra code |
Так это понятно, но дело в том что при касте спелла через итем, неполучается, при касте от чара все проходит, ну и конечноже не жрет ману каст, когда кастуешь через итем.....
Dont work... and mp not consume when cast skill through item... |
| All times are GMT. The time now is 15:26. |