Jump to content
  • 0

Hi. How to use the @command jobchange for this script?


Question

Posted (edited)

I have this script taken from rikimaru where its original concept is to give 3rd job headgear rewards.. So yeah I've edited it to make it a time use only for novice to change them to 3rd class..


What I don't know is this.. how to change the novice to become 3rd class. what is the proper prompt to use so that his/her class will change.. is it?

"@job change - 4060"

 

secondly is that how to add skill points on the player? is it

set skillpoint, +118?

Lastly, How to increase max base level and job level through script?

 

Thank you!

 

 

 

 
prontera,143,181,5    script    3rd Jobs Reward    100,{
// ================= Configuration ==============================
set .@n$,"^0000FFCain^000000";
// ============== Configuration end =============================
if(3rdjobreward==1) {
mes .@n$;
mes "I've already transformed one of your characters!";
mes "I can only do it once! Sorry!";
close;
}
mes .@n$;
mes "Hello "+strcharinfo(0)+", I was";
mes "ordered by the GM's to give Players";
mes "a chance to become more powerful...";
next;
mes .@n$;
mes "Powerful in the sense that..";
mes "You'll become 3rd job in just in an instant.";
mes "But before that you have to satisfy these..";
next;
mes .@n$;
mes "Here's the qualifications..";
mes "1. Only ^0000FFNovice^000000 job at any base level can join this event";
mes "2. ^0000FFNovice^000000 must be ^0000FFjob level 10^000000";
mes "3. You must use all skill points.";
next;
mes .@n$;
mes "The event is simple isn't it?";
mes "Next step is to choose what class you want to become.";
next;
mes .@n$;
mes "Basically, the list below are the following class available for you";
mes "Rune Knight - 3rd job of Lord Knight";
mes "Arch Bishop - 3rd job of High Priest";
mes "Ranger - 3rd job of Sniper";
mes "Mechanic - 3rd job of Whitesmith";
mes "Shadow Chaser - 3rd job of Stalker";
mes "Maestro - 3rd job of Minstrel";
mes "Genetic - 3rd job of Creator";
mes "Warlock - 3rd job of High Wizard";
mes "Sura - 3rd job of Champion";
mes "Guilottine Cross - 3rd job of Sin-X";
mes "Sorcerer - 3rd job of Professor";
mes "Royal Guard - 3rd job of Paladin";
mes "Wanderer - 3rd job of Dancer";
next;
mes .@n$;
mes "Also, as you changed your class,";
mes "You'll be rewarded with its respective";
mes "headgear reward!";
next;
mes .@n$;
mes "The following headgear for each class are listed below.";
mes "Rune Knight - Rune Circlet";
mes "Arch Bishop - Mitra";
mes "Ranger - Sniper Googles";
mes "Mechanic - Driver Band";
mes "Shadow Chaser - Shadow Crown";
mes "Maestro - Minstre Sond Hat";
mes "Genetic - Midas Whispers";
mes "Warlock - Magic Stone Hat";
mes "Sura - Burning Spirit";
mes "Guilottine Cross - Silent Enforcer";
mes "Sorcerer - Wispers of Wind";
mes "Royal Guard - Reissue Schmitz Helm";
mes "Wanderer - Resting Swan";
next;
mes .@n$;
mes "So, better think carefully!";
mes "I can only do this once";
mes "If you're ready then we shall proceed";
next;
mes .@n$;
mes "Are you ready and have decided on what class you'll be?";
next;
    switch(select("Yes, I'm ready:No, not yet")) {
        case 1:
            if (.SkillPointCheck && SkillPoint) {
                mes "Please use all your skill points before proceeding.";
                close;
            } else {
                    mes .@n$;
                    mes "Kindly choose what class you want";
                    switch(select("Rune Knight:Arch Bishop:Ranger:Mechanic:Shadow Chaser:Maestro:Genetic:Warlock:Sura:Guillotine Cross:Sorcerer:Royal Guard:Wanderer")) {
                    case 1:
                        mes .@n$;
                        mes "Behold, from now on "+strcharinfo(0)+"";
                        mes "You're a Rune Knight";
                        mes "Congratulations! Go and conquer the midgard!";
                        "@job change - 4060"
                        set .@blvl, 175;
                        set .@jlvl, 60;
                        set skillpoint,+118;
                        getitem 5746,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Rune Knight!";
                        close;
                    case 2:
                        mes .@n$;
                        mes "Behold, from now on "+strcharinfo(0)+"";
                        mes "You're a Rune Knight";
                        mes "Congratulations! Go and conquer the midgard!";
                        getitem 5747,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not an Arch Bishop!";
                        close;
                    case 3:
                        if( Class == 4056 || Class == 4062 ) {
                        mes .@n$;
                        mes "You're a Ranger!";
                        getitem 5748,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Ranger!";
                        close;
                    case 4:
                        if( Class == 4058 || Class == 4064 ) {
                        mes .@n$;
                        mes "You're a Mechanic!";
                        getitem 5749,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Mechanic!";
                        close;
                    case 5:
                        if( Class == 4072 || Class == 4079 ) {
                        mes .@n$;
                        mes "You're a Shadow Chaser!";
                        getitem 5750,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Shadow Chaser!";
                        close;
                    case 6:
                        if( Class == 4068 || Class == 4075 ) {
                        mes .@n$;
                        mes "You're a Minstrel!";
                        getitem 5751,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Minstrel!";
                        close;
                    case 7:
                        if( Class == 4071 || Class == 4078 ) {
                        mes .@n$;
                        mes "You're a Genetic!";
                        getitem 5752,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Genetic!";
                        close;
                    case 8:
                        if( Class == 4055 || Class == 4061 ) {
                        mes .@n$;
                        mes "You're a Warlock!";
                        getitem 5753,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Warlock!";
                        close;
                    case 9:
                        if( Class == 4070 || Class == 4077 ) {
                        mes .@n$;
                        mes "You're a Sura!";
                        getitem 5754,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Sura!";
                        close;
                    case 10:
                        if( Class == 4059 || Class == 4065 ) {
                        mes .@n$;
                        mes "You're a Guillotine Cross!";
                        getitem 5755,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Guillotine Cross!";
                        close;
                    case 11:
                        if( Class == 4067 || Class == 4074 ) {
                        mes .@n$;
                        mes "You're a Sorcerer!";
                        getitem 5756,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Sorcerer!";
                        close;
                    case 12:
                        if( Class == 4066 || Class == 4073 ) {
                        mes .@n$;
                        mes "You're a Royal Guard!";
                        getitem 5757,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Royal Guard!";
                        close;
                    case 13:
                        if( Class == 4069 || Class == 4076 ) {
                        mes .@n$;
                        mes "You're a Wanderer!";
                        getitem 5758,1;
                        set 3rdjobreward,1;
                        close;
                        }
                        mes .@n$;
                        mes "You're not a Wanderer!";
                        close;
                        }
                    }
        }
OnInit:
    set .SkillPointCheck,1;        // Force player to use up all skill points? (1: yes / 0: no)
    end;
}
Edited by Gnome

2 answers to this question

Recommended Posts

Posted (edited)

1) Use jobchange command. Syntax is

 

jobchange <job number>;
 

 

2) To add skillpoints u should use this command:

 

set SkillPoint, SkillPoint + x;
 

 

Where x - how many points to add.

3) for base level use:

set BaseLevel, BaseLevel + x;

to add +x levels or

 

set BaseLevel, x;
 

 

to set Base level to X.

for job level use:

 

set JobLevel, JobLevel + x;

to add +x levels or

set JobLevel, x;

to set Job Level to X

Edited by Oxxy

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...