Summary
A flexiable job change script that is heavily inspired by the job system of final fantasy 14. This script allows the creation of diffrerent job templet, and allows player to freely change their job .
Player can swap the following data based on the templet:
Job
Status
Base level/Job level
Skill tree (the script will remember which skill is allocated and what lvl it is)
Unspent points
The script menu
There are three main function of the script.
Change Class:
Use this to swap to different class templet.
It will not saved the current job info before swaping, if the player does not save their current job first, they might lost their skill, level, status, .etc.
Store current class
Use this to saved the current job.
Every job can only have one templet (Each job_id can only have one entry in the db). If the current job level/base level is lower than the stored one, the system will give a warning and asks the user if they wish to overwrite.
Change to novice
Change the player into a 1/1 novice with
Give the player the ability to muti class by making them novice, so they can choos other class
The system will also grant a 24h 300% exp buff to the player, to help them level up faster (this can be changed if you don't want it)
Download
https://github.com/Someguy324/JobStone
Importance
The download file only contains the function it self, if you want to use it, you need to implement it youself (Adding it to a npc, or a item).
This is my first script, and it is mainly used by mysel on a local server. I do not guarantee it will be bug free, or have great security.
Additionaly, the way I implement skill tree storage is really junky ( every templets have their skill tree stored as individual entry in the db, EVERY ALLOCATED SKILL IS A ENTRY).
So, PLEASE BE CAUTIOUS if you want to used it on a public server.
You are welcom to modify my code in any way you want, I write some comment beside the code, so it might be easier understand how the code work.
Please report any bug down below, I will take a look when I'm free
jb_changer.txt