Jump to content
  • 0

Level event


arzzzae

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   8
  • Joined:  12/27/11
  • Last Seen:  

Hello guys, I just wan't to know whats the script command to check the base level and job level of the player?

For example, I wan't to create an event which requires them to reach the max level of 99/70 and an npc script will pop out of the blue?

Thanks in advance!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

if(BaseLevel >= 99 && JobLevel >= 70){
< script >
}

or

if(BaseLevel < 99 || JobLevel < 70){
mes "Sorry your to low of a level";
close;
}

All this can be found in your

ro/Doc/script_commands.txt

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   8
  • Joined:  12/27/11
  • Last Seen:  

Thanks for your fast reply! I'm really interested in learning scripting!

Edit: Also, what kind of function is this? OnPC?

Edited by arzzzae
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

This is just a comparison of the characters BaseLevel and JobLevel (which are constant variables, pre-defined by server),you have to do the rest of the script or post a request of what you want in request section :)

  • Upvote 1
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...