Thread: ≈ Special Abillity
View Single Post
Old 12.10.2005, 06:36   #5
khul
Архивный участник
 
Join Date: Oct 2005
Posts: 153
Default

ok . lets say i make a Halbard with "critical heal" SA , when hitting a critical hit weapon cast heal on weapons owner , such as there are critical stunt or critical drains....

i modify itemdata.txt :

Code:
item_begin	weapon	5999	[_halbard_crt_SELFHEAL]	item_type=weapon	immediate_effect=1	item_skill=[none]	critical_attack_skill=[s_critical_SELFHEAL]	physical_damage=213    random_damage=10	weapon_type=pole	can_penetrate=0	critical=8		html=[item_default.htm]	item_end
and skilldata.txt :

Code:
skill_begin	skill_name = [s_critical_SELFHEAL]	/* [?? ?] */	skill_id = 9999	level = 1	operate_type = A1	magic_level = 1	effect = {{i_heal;800}}	effective_range = -1	skill_hit_time = 1	skill_cool_time = 0	skill_hit_cancel_time = 0.1	reuse_delay = 5	activate_rate = 10                      attribute = attr_none	effect_point = 10	target_type = self	skill_end
So this would get a 800 pts. healing weapon with a 10% chance of healing. But ....

1=Problem is ...how do i set the activation of skill as activated by hitting a critical hit ? =S Where do i find the codes of already existing SA to copy the code from them ?

2=Besides modifing in this 2 files ...wich other files would have to be modified ?
In client files :weapongrp and itemnamegrp ....any other ?

thanks for you patient =)
khul is offline