Jump to content
  • 0

Actual JobLevel -1 for usable value


knov1991

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  03/15/19
  • Last Seen:  

Hello, i need a way to get the current joblvl - 1 as a value.

Example: 

base/job 99/70 so 70-1=69, get 69 value for use.

base/job 57/43 so 43-1=42, get 42 value for use.

if(JobLevel == 70)  and  if(JobLevel == 43) aren't an option for my needs.

Edited by knov1991
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

Basic Substraction is the answer.
value = JobLevel - 1;

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  03/15/19
  • Last Seen:  

1 hour ago, crazyarashi said:

Basic Substraction is the answer.
value = JobLevel - 1;

I tried it, but don't found a way to set for use, i tried many ways before ask.

Sorry for my stupid questions, this is my first time making a basic script to learn.

This is an example of what im trying to do.

set .@value = JobLevel - 1;

atcommand "@skpoint .@value";

Edited by knov1991
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

.@value = JobLevel -1;
useatcmd "@skpoint" + .@value;

 You should try reading out the script commands first :)) 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  03/15/19
  • Last Seen:  

1 hour ago, crazyarashi said:

.@value = JobLevel -1;
useatcmd "@skpoint" + .@value;

 You should try reading out the script commands first :)) 

Thx for help, don't worked properly, but i used it to solve the problem :))

Im reading the script commands, but sometimes i don't find what i need, or i don't understand how to do...

 

 

Link to comment
Share on other sites

  • 0

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

avoid atcommand ... it create unnecessary log if you enabled it.

SkillPoints += (JobLevel - 1);

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

On 4/24/2019 at 5:34 AM, Emistry said:

avoid atcommand ... it create unnecessary log if you enabled it.


SkillPoints += (JobLevel - 1);

 

Wouldn't that as example give 69 skill points for job level 70, while he only should get one skill point per decrease?

Note: I'm not using this scripting method yet. Correct me if I'm wrong xX

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