Jump to content
  • 0
Lord Ganja

OnPCUseSkillEvent question

Question

I've added this OnPCUseSkillEvent. Now do I need to change it's skill id 3001 and 3002 since kagerou and oboro already used that skill id?

Or Can I just leave it as it is?

 

 

From Eathena:

3000,15,6,1,0,0,0,9,1,no,0,0x0,0,none,0,		CUSTOM_damage,CUSTOM_damage3001,15,6,16,0,0x1,0,9,1,no,0,0x0,0,none,0,		CUSTOM_nodamage,CUSTOM_nodamage3002,15,0,2,0,0,0,9,0,no,0,0x0,0,none,0,		CUSTOM_setpos,CUSTOM_setpos

 

 

From Hercules:

// Kagerou & Oboro3001,0,6,4,0,0,0,1,1,no,0,0,0,none,0,		KO_YAMIKUMO,Yamikumo3002,0,0,0,0,0,0,5,0,no,0,0,0,weapon,0,		KO_RIGHT,Right Hand Mastery 

 

 

 

 

 

Thanks!  :no1:

 

 

 

 

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

 

Yes you need to change,

also for source , wherever you see this

 

if ( skillid >= 3000 && skillid < 4000 ) break; 

Change to

 

if ( skillid >= start_id && skillid <= end_id ) break; 

where start_id = the first skill_id(of CUSTOM_setpos) you set, and end_id is last skill_id(of CUSTOM_setpos) you set

Alright. Thanks @@Dastgir.. Anyway can you tell me why the src doesn't return mobs/monsters ids?

 

@useskilltarget doesn't work well on mobs/monsters. It returns numbers but not the ID of mobs/monsters you casted the skill.

attachicon.gifUntitled.png

its like that only

 

pc_setreg( sd, add_str( "@useskilltarget" ), bl->id ); 

^ That means , give the monster internal id assigned by server, not the mob class.

you can add below it

 

if (bl->type == BL_MOB)    pc->setreg( sd, script->add_str( "@useskilltargetid" ), ((TBL_MOB*)bl)->class_ );

And in Script change this

 

dispbottom "id: "+ @useskillid +" | lv: "+ @useskilllv +" | target "+ @useskilltarget; 

To

 

dispbottom "id: "+ @useskillid +" | lv: "+ @useskilllv +" | target "+ @useskilltarget +" | TargetID: "+ @useskilltargetid; 

@useskilltargetid will only be set if its a monster...

Share this post


Link to post
Share on other sites
  • 0

Yes you need to change,

also for source , wherever you see this

 

if ( skillid >= 3000 && skillid < 4000 ) break; 

Change to

 

if ( skillid >= start_id && skillid <= end_id ) break; 

where start_id = the first skill_id(of CUSTOM_setpos) you set, and end_id is last skill_id(of CUSTOM_setpos) you set

Share this post


Link to post
Share on other sites
  • 0

Yes you need to change,

also for source , wherever you see this

 

if ( skillid >= 3000 && skillid < 4000 ) break; 

Change to

 

if ( skillid >= start_id && skillid <= end_id ) break; 

where start_id = the first skill_id(of CUSTOM_setpos) you set, and end_id is last skill_id(of CUSTOM_setpos) you set

Alright. Thanks @@Dastgir.. Anyway can you tell me why the src doesn't return mobs/monsters ids?

 

@useskilltarget doesn't work well on mobs/monsters. It returns numbers but not the ID of mobs/monsters you casted the skill.

post-1008-0-41325100-1440418361_thumb.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.