Lord Ganja 5 Posted August 24, 2015 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! Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted August 24, 2015 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 Quote Share this post Link to post Share on other sites
0 Lord Ganja 5 Posted August 24, 2015 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. Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted August 24, 2015 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. Untitled.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... 1 Lord Ganja reacted to this Quote Share this post Link to post Share on other sites
0 Lord Ganja 5 Posted August 24, 2015 Thank you @Dastigr. It works!! Quote Share this post Link to post Share on other sites
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:
From Hercules:
Thanks!
Share this post
Link to post
Share on other sites