Skip to content

UseSkill function error

Featured Replies

as I read gf docs

 

UseSkill(CreatureData,int) 

 

taking 2 parameters but i get error when im using this function 

 

ssssss.jpg

 

im using this function like this: UseSkill(talker,20108) where 20108 is skill id.

 

but in error looks like its taking 20108 as skill level...

 

I tried UseSkill(talker,1,20108) but getting error when compiling ai, about parameters, it requres 2 parameters only.

 

whats is happening?

 

skill is mystic set of buffs and i want to player get buffet from server buffer.

 

skill_begin	skill_name=[s_server_buffer_mystic]	skill_id=20108	level=1	operate_type=A2	magic_level=1	effect={{i_call_skill;[s_improve_movement1]};{i_call_skill;[s_improve_combat1]};{i_call_skill;[s_improve_condition1]};{i_call_skill;[s_improve_magic1]};{i_call_skill;[s_improve_shield_defence1]};{i_call_skill;[s_wild_magic2]};{i_call_skill;[s_mental_shield4]};{i_call_skill;[s_arcane_acumen3]};{i_call_skill;[s_clarity3]};{i_call_skill;[s_greater_shield3]};{i_call_skill;[s_chant_of_magnus1]}}	is_magic=3	mp_consume2=0	cast_range=900	effective_range=1800	skill_hit_time=0	skill_cool_time=0	skill_hit_cancel_time=0	reuse_delay=0	attribute={attr_none;0}	trait={trait_none}	effect_point=523	target_type=target	affect_scope=single	affect_limit={0;0}	next_action=none	debuff=0	ride_state={@ride_none}	multi_class=0	olympiad_use=0	skill_end

 

Edited by girogius

Solved by pada

  • Author
1 hour ago, pada said:

You need to use the pch id, not the skill ID

 

edit: thanks. working well.

Edited by girogius

locked.

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.