Jump to content
  • 0

[source support] adding a script to a skill


Kurofly

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Hey rA!

 

I'm trying to attach a script to a skill but I have no idea how to do that since I'm a real novice in source stuff.

 

Does anyone know how to call a scripting function from the source via skill.c or battle.c?

 

Thanks in advance  /no1

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

Search in the source code where the code execute or where it should be and add this:

npc_event(sd,"<NPCNAME>::<EVENTLABEL>",0);

Then recompile the server and add in a NPC with the name <NPCNAME> a event label with the name from <EVENTLABEL>.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Nice  /no1

 

It'll help me out a lot, thank you !

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...