Jump to content
  • 0

Job level changer


EriN_KillerSoul

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  313
  • Reputation:   23
  • Joined:  12/27/11
  • Last Seen:  

Hello,

Can someone tell me whats wrong with my script?its not working.

- script Job level Changer -1,{
OnPCLoginEvent:
if(getgmlevel() <= 90){ //GM Excemption
 readparam(JobLevel);
if ((class >= 4054 && class <= 4079) || (class >= 4023 && class <= 4045) || (class >= 4096 && class <= 4108)){ //3rd Job Class
 if (readparam(JobLevel) > 50){
 mes "[^FF0000MomoeRO Renewal Job Level Changer^000000]";
 mes "Welcome "+strcharinfo(0)+"";
 mes "We already changed our job level from 120 to 50";
 mes "Any problems please report our GM Team";
 atcommand "@joblvl "+strcharinfo(0)+" -70";
 specialeffect2 338;
 end;
}}
}}

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Well

readparam(JobLevel)

joblevel is already defined as parameter, no need readparam

if ((class >= 4054 && class <= 4079) || (class >= 4023 && class <= 4045) || (class >= 4096 && class <= 4108)){ //3rd Job Class

You can use Eaclass

atcommand "@joblvl "+strcharinfo(0)+" -70";

That must be your error : no need strcharinfo here (example with your GM, to change your joblevel you write @joblvl -70)

end;

Must be close; otherwise player would be freeze

-    script    Job level Changer    -1,{
OnPCLoginEvent:
   if( getgmlevel() <= 90 ) { //GM Excemption
       if ( eaclass() & EAJL_THIRD && JobLevel > 50 ) { //3rd Job Class
           mes "[^FF0000MomoeRO Renewal Job Level Changer^000000]";
           mes "Welcome "+strcharinfo(0)+"";
           mes "We already changed our job level from 120 to 50";
           mes "Any problems please report our GM Team";
           set .@decrease, JobLevel - 50;
           atcommand "@joblvl -"+ .@decrease;
           specialeffect2 338;
           close;
       }
   }
   end;
}

  • Upvote 1
Link to comment
Share on other sites


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  313
  • Reputation:   23
  • Joined:  12/27/11
  • Last Seen:  

Wew...SOLVED! Thanks Capuche and Emistry. /lv

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

You're welcome

@Emistry

eaclass()&EAJ_THIRDMASK

EAJ_THIRDMASK:

This mask strips 3rd class attributes. It will give the "normal" class of a third job, regardless of rebirth/adopted status. When used on non-third class characters, it will return the second job, or, if that also doesn't exist, the first.

So it would be true if second class too *or other

Also you forgot to close the mes

Edit:

Also JobLevel = 50; doesn't change skills points and skill placed (lol)

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


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  313
  • Reputation:   23
  • Joined:  12/27/11
  • Last Seen:  

I got problem about skill points. How to make the skill points 0?I change the job level from 50 to 1 because some jobs cannot up their 3rd job skills.

Edited by EriN_KillerSoul
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...