Jump to content
  • 0

Automatic event by job level


ViewtifulNinja

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  06/30/17
  • Last Seen:  

How do I make a script that automatically triggers an event when the character reaches a certain job level, without having to talk to any npc?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Use OnPCBaseLvUpEvent

\doc\script_commands.txt lines 934

 

You need to implement this on any scripts. (Example: \npc\test\OnInterInit.txt)

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

On 10/28/2021 at 1:19 PM, ViewtifulNinja said:

automatically triggers an event when the character reaches a certain job level

-	script	sample	-1,{
	OnPCJobLvUpEvent:
		if (JobLevel >= 40) {
			// your codes.
		}
		end;
}

 

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