- Joined
- Nov 29, 2006
- Messages
- 123
- Reaction score
- 0
Does anyone have a Job Changer script i can use for my site.some job quests dont work.
thanks
thanks

/* Jobs */
$Job = array('0' => 'Visitor',
'111'=> 'Soldier',
'121'=> 'Knight',
'122'=> 'Champion',
'211'=> 'Muse',
'221'=> 'Mage',
'222'=> 'Cleric',
'311'=> 'Hawker',
'321'=> 'Raider',
'322'=> 'Scout',
'411'=> 'Dealer',
'421'=> 'Bourgeois',
'422'=> 'Artisan'
);
<li><a href="?op=job_changer">Job changer</a></li>
Thats right.You put these files in your website htdocs usually C:\Program Files\xampp\htdocs if you installed xampp to the default folder
An addon for the CMS sytem located Here
I needed a job changer script to so, I made it
In the main dir you see the dir: '_inc'
Open de dir, and you see the file: config.php
open it with your favorite php application, or use notepad.
Scroll to the end of the script and add:
Found in The Mega Guild
Unzip/rar in the modules dirPHP:/* Jobs */ $Job = array('0' => 'Visitor', '111'=> 'Soldier', '121'=> 'Knight', '122'=> 'Champion', '211'=> 'Muse', '221'=> 'Mage', '222'=> 'Cleric', '311'=> 'Hawker', '321'=> 'Raider', '322'=> 'Scout', '411'=> 'Dealer', '421'=> 'Bourgeois', '422'=> 'Artisan' );
To view the content, you need to sign in or register
Now go to your index file in the main dir. Open de file index.php
And add a new link
And run it. It works for meCode:<li><a href="?op=job_changer">Job changer</a></li>
If this in any violation remove this post!
why cant we just change the class directly? without changing any skills/stat points?.
// Were you see:
if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['update']))
{
$sql = "UPDATE
characters
SET
classid='".$_POST['Job']."',
quickbar='0',
class_skills='0',
class_skills_level='0'
WHERE
id='".$_POST['character']."'
";
mysql_query($sql) or die ('Sorry we couldn\'t change your proffession, please try it again.');
}
if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['update']))
{
$sql = "UPDATE
characters
SET
classid='".$_POST['Job']."'
WHERE
id='".$_POST['character']."'
";
mysql_query($sql) or die ('Sorry we couldn\'t change your proffession, please try it again.');
}
just add log out ...
can u?
Oh? You had released a job changer script already?
Because I tought a job changer script is ment for a new job? Not an advanced one.
Anyway just to change the script every one can do it (I hope)
View 2nd post for an update
Change it into:PHP:// Were you see: if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['update'])) { $sql = "UPDATE characters SET classid='".$_POST['Job']."', quickbar='0', class_skills='0', class_skills_level='0' WHERE id='".$_POST['character']."' "; mysql_query($sql) or die ('Sorry we couldn\'t change your proffession, please try it again.'); }
And Done...PHP:if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['update'])) { $sql = "UPDATE characters SET classid='".$_POST['Job']."' WHERE id='".$_POST['character']."' "; mysql_query($sql) or die ('Sorry we couldn\'t change your proffession, please try it again.'); }
If you close your browser you are logged out. It's session based.