Jump to content
  • 0

Skill by item


Kurt Yori

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  02/05/14
  • Last Seen:  

Hello all right with you? I'm wanting an NPC with the following functions when you use a particular skill appears something like that "You use the skill X, Z times and when the count came to 1000 you win an item, Thank you for your attention and excuse me anything.

 

An example of NPC:

 

I used the skill "X" 3 times there appears in chat "X 3/1000" and if I use another skill for the first time appears in chat "Z 1/1000" if I use the skill again "X" appears in chat "X 4/1000" and so on, I want it with all the skill.

 

If someone at least start making an example of NPC thus I can finish alone and put her in the forum.

Edited by Kurt Yori
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

You need a mod for this in order to check and save the skill you used. Check this LINK, it might help you

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  02/05/14
  • Last Seen:  

You need a mod for this in order to check and save the skill you used. Check this LINK, it might help you

I do not have much experience with ragnarok and do not know where to add these files you can tell me where I start to add these files, Thank You.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

You need to apply the OnPCSkillUseEvent.diff

Check this links on how to apply a patch

https://rathena.org/board/topic/102828-how-to-apply-diff-file/

https://rathena.org/board/topic/91246-patch-with-git/

 

But for me, prefer to do it manually. Doing it manually means you need to look for the changes made in the diff file and apply it to your files.

 

Sample.

 

Index: src/map/npc.c --> open src/map/npc.c 
===================================================================
--- src/map/npc.c (revision 100644)
+++ src/map/npc.c (working copy)
@@ -4350,5 +4350,6 @@ void npc_read_event_script(void)
  {"Die Event",script_config.die_event_name},
  {"Kill PC Event",script_config.kill_pc_event_name},
  {"Kill NPC Event",script_config.kill_mob_event_name}, --> Look for this part and add the new data
+ { "PC Use Skill Event", script_config.useskill_event_name }, --> This is the new added data on npc.c
  {"Stat Calc Event",script_config.stat_calc_event_name},
  };

You can tell if the data has been added or removed since
added data has light green bg color with ( + ) sign in the begging of the line
while
removed data has light red bg color with - ) sign in the begging of the line

 

 

Edited by Technoken
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   7
  • Joined:  12/30/11
  • Last Seen:  

Can anyone help me?

script.cpp: In function 'int buildin_getskillname(script_state*)':
script.cpp:24755:29: error: no match for 'operator[]' (operand types are 'SkillDatabase' and 'uint16 {aka short unsigned int}')
memcpy(skill_name, skill_db[skill_get_index(skill_id)]->desc, SKILL_DESC_LENGTH);

Edited by AdrianoGC
Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...