• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TIBIACOM acc. maker by Gesior for TFS!

Status
Not open for further replies.
Nottinghster you should have patience since he is the one making it in HIS time you should be happy he shares -.-
 
...
I'm using TFS 0.2.9 <tfs 0.2.9 dont show online status, it's not an acc. maker bug>
---------- EDIT ----------
When this systems is gonna be ready?
Creatures
Spells
Houses
Guilds
Lost Account
Screen Shot
---------- EDIT 2 ----------
I was thinking here and came in the following idea:
You could do a "Tutor System" and who hit all the answers, it would be a Tutor
"I can't create character"
All configured right? In config ("../accmaker/config/config.ini") are lines:
Code:
char_type = "main"
char_rook_name ="charrook"
char_vocations = "Sorcerer,charsorc:Druid,chardruid:Paladin,Account Manager:Knight,Knight"
char_type = "main" - you can set "rook"(only one vocation) or "main" (player can select vocation from list)
char_rook_name ="charrook" - if you set "rook" in "char_type" you will have to set here name of character to copy (you must have ready character (on ANY account, maybe on GM account?) with all rook settings like: EQ, skills, VOCATION, spawn position, town_id, outfit colors) script will copy this character as a new character with new name, sex, outfit (male/female), accout number
If you set "main" in "char_type" you will have to set
char_vocations = "NAME OF VOCATION in acc maker,name of character to copy (must be in database):second vocation name,name of character to copy as a second vocation:another vocation- unlimited number of vocation (1-xxx),another name of character to copy"
Script will copy character with name of selected vocation like in "rook". Remember to create 4 chars with diffrent vocations!
If it still don't work tell me exacly what you do and what you see. Do you use SQLite or MySQL. If u had my old version of acc maker delete all files and copy new files from 0.1.3 version. Remember about "install.php"..

----------------------------
I'll not create Tutor system, it's a bit stupid on OTS. "add tutor" will be added in "admin panel" (for admin and "trusted players"). There will be 2 options on site for all tutors (tutor in game is not tutor on page):
-vefiry name (list of not verified names, when gm/tutor press "illegal name" character will be kicked from server in 5 second and after login teleport to "jail" on ots [you will need special "jail.lua" script - I'll post it with acc. maker] after name change he will be teleported back to city tample
-add "ticker" - tutors can add new tickers and 'delete' old - it's in actual version of my acc. maker (0.1.3) (admins will see 'deleted' tickers in admin panel, if tutor add at night ticker like "download xxx - great bot from www.haxx.com" and delete it at the morning admin will know about it)
 
Last edited:
In step two i have this error:

Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in C:\xampp\htdocs\pot\OTS_DB_SQLite.php:54 Stack trace: #0 C:\xampp\htdocs\pot\OTS_DB_SQLite.php(54): PDO->__construct('sqlite:C:/Docum...') #1 C:\xampp\htdocs\pot\OTS.php(453): OTS_DB_SQLite->__construct(Array) #2 C:\xampp\htdocs\install.php(18): POT->connect(2, Array) #3 {main} thrown in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 54

How i can fix that?

@Gesior.pl
Thanks, now it works ; )
 
Last edited:
I had same problem. "Wrzasq" told me how to fix it.
PHP has "PDO-SQLite" set "off" default (MySQL is ON :> ). You must find file "php.ini" in your PC. If you use XAMPP (PHP start with Apache [web server] automaticly) it will be in folder "../xampp/apache/bin" else it will be in "../php".
In this file find line:
Code:
;extension=php_pdo_sqlite.dll
and change to:
Code:
extension=php_pdo_sqlite.dll
Restart server and all should work fine.
 
How can I Add like RL Homepage

Creatures
Spells
-----------------------------------------


I Got a error look at the Highscores

Code:
Warning: Invalid argument supplied for foreach() in C:\www\htdocs\highscores.php on line 60
-----------------------------------

And in the lost account.lua is not working its only white
index.php?subtopic=lostaccount
 
Bug

All Players can delete the news and make a own new again


Edit so only GM and CMs can make news or only the hoster
 
Last edited:
How can I Add like RL Homepage
Creatures
Spells
-----------------------------------------
I Got a error look at the Highscores
Code:
Warning: Invalid argument supplied for foreach() in C:\www\htdocs\highscores.php on line 60
-----------------------------------
And in the lost account.lua is not working its only white
index.php?subtopic=lostaccount
Lost Account will be in next update. It's only version 0.1.3, not 1.0 :p
Highscores doesn't work. Thank you for report. I'll repair it in few minutes and post new version.
Creatures & Spells will be added in next updates.
All Players can delete the news and make a own new again

Edit so only GM and CMs can make news or only the hoster
config.ini
access_tickers = "1"
access_news = "1"
Update to 0.1.3A...
Now only accounts with access (table 'accounts' in database, column 'group_id') in settings can edit it:
Code:
access_news = "2"
Only accounts with "group_id >= 2" will have access to add new options.
------------------------------------------------------------------
Check how look newest version of acc. maker:
http://warots-pl.hopto.org/
It work only when my PC in on. 12-16 hours/day :p

//fixed highscores - now work fine
 
Last edited:
when im loggen at the gm and delete this post news ticker
Code:
Hello! Gesior account manager installed. Report bugs to [email protected]

then the news ticker is gone form the homepage and cant add wich the gm
 
BEFORE
-bild3.JPG


AFTER
-bild2.JPG



so cant add news ticker what is the problem?
 
Last edited:
@up
I know. It'll be possible in admin panel... actually you can only open "install.php" page again - it add 1 ticker "Hello!.."
//added "Spells" - load spells from spells.xml to database, you can choose vocation (it will show only spells for this vocation) and sort by name, sentence, mana, level, magic level, soul point, type (conjure/instant)
//added first option in admin panel: "reload spells" - it reload spells from "spells.xml".
You can check how look spells:
http://warots-pl.hopto.org/?subtopic=spells
 
Last edited:
Why it says `conjure(x)`, `instant(x)` etc?

-Where x->number.
 
Well, when u click on ticker news, the img is dissapearing ( I mean the green plus that should be transformed into red minus), also the same img isnt displayed at left side menus.
 
@Gesior.pl

The Spells System was strange way because of Vocations.

In case you could do this way:

Choose a vocation that if Knight is, thus, appear all spells for Knights and Elite Knights

--------- EDIT ----------

For a long time ago, I and my friends did this "MONSTER CHECK" to version 7.92, I think it can help you rather

Download Monster Check

Check my Layout:
websitexl0.jpg
 
Last edited:
Some servers use more/less vocations. Maybe someone has server with vocation ID 9 and spells for pacc and facc players (with id 9). My server will have ~20 vocations...
Now I'm writing "Creatures". I don't copy code from any other accout maker.
I use POT in my scripts. My script first copy spells.xml and info about monsters to database and load it when generate page.
PHP:
//install spells
if($action == "install_spells") {
$pdo->query("DELETE FROM z_spells WHERE 1 = 1");
$main_content .= '<h2>All records deleted from table \'z_spells\' in database.</h2>';
foreach($config_vocations as $voc_id => $voc_name) {
	$vocations_ids[$voc_name] = $voc_id;
}
$allspells = new OTS_SpellsList($config_ini['server_path']."data/spells/spells.xml");
//add conjure spells
$conjurelist = $allspells->getConjuresList();
$main_content .= "<h3>Conjure:</h3>";
foreach($conjurelist as $spellname) {
$spell = $allspells->getConjure($spellname);
$lvl = $spell->getLevel();
$mlvl = $spell->getMagicLevel();
$mana = $spell->getMana();
$name = $spell->getName();
$soul = $spell->getSoul();
$spell_txt = $spell->getWords();
$vocations = $spell->getVocations();
$nr_of_vocations = count($vocations);
$vocations_to_db = "";
$voc_nr = 0;
foreach($vocations as $vocation_to_add_name) {
$vocations_to_db .= $vocations_ids[$vocation_to_add_name];
$voc_nr++;
if($voc_nr != $nr_of_vocations) {
$vocations_to_db .= ',';
}
}
$enabled = $spell->isEnabled();
if($enabled) {
$hide_spell = 0;
}
else
{
$hide_spell = 1;
}
$pacc = $spell->isPremium();
if($pacc) {
$pacc = 'yes';
}
else
{
$pacc = 'no';
}
$type = 'conjure';
$count = $spell->getConjureCount();
$pdo->query('INSERT INTO z_spells (name, spell, spell_type, mana, lvl, mlvl, soul, pacc, vocations, conj_count, hide_spell) VALUES (\''.$name.'\', \''.$spell_txt.'\', \''.$type.'\', \''.$mana.'\', \''.$lvl.'\', \''.$mlvl.'\', \''.$soul.'\', \''.$pacc.'\', \''.$vocations_to_db.'\', \''.$count.'\', \''.$hide_spell.'\')');
$main_content .= "Added: ".$name."<br>";
}
//add instant spells
$instantlist = $allspells->getInstantsList();
$main_content .= "<h3>Instant:</h3>";
foreach($instantlist as $spellname) {
$spell = $allspells->getInstant($spellname);
$lvl = $spell->getLevel();
$mlvl = $spell->getMagicLevel();
$mana = $spell->getMana();
$name = $spell->getName();
$soul = $spell->getSoul();
$spell_txt = $spell->getWords();
$vocations = $spell->getVocations();
$nr_of_vocations = count($vocations);
$vocations_to_db = "";
$voc_nr = 0;
foreach($vocations as $vocation_to_add_name) {
$vocations_to_db .= $vocations_ids[$vocation_to_add_name];
$voc_nr++;
if($voc_nr != $nr_of_vocations) {
$vocations_to_db .= ',';
}
}
$enabled = $spell->isEnabled();
if($enabled) {
$hide_spell = 0;
}
else
{
$hide_spell = 1;
}
$pacc = $spell->isPremium();
if($pacc) {
$pacc = 'yes';
}
else
{
$pacc = 'no';
}
$type = 'instant';
$count = 0;
$pdo->query('INSERT INTO z_spells (name, spell, spell_type, mana, lvl, mlvl, soul, pacc, vocations, conj_count, hide_spell) VALUES (\''.$name.'\', \''.$spell_txt.'\', \''.$type.'\', \''.$mana.'\', \''.$lvl.'\', \''.$mlvl.'\', \''.$soul.'\', \''.$pacc.'\', \''.$vocations_to_db.'\', \''.$count.'\', \''.$hide_spell.'\')');
$main_content .= "Added: ".$name."<br/>";
}
$main_content .= '<center><form action="index.php?subtopic=adminpanel" METHOD=post><div class="BigButton" style="background-image:url(images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="images/buttons/_sbutton_back.gif" ></div></div></form></center>';
}
 
You should fix do it able to use HTML codes in the submit news system..
Then you can Add news like tibia.com
 
@Gesior.pl

When you will finish all? --> Creatures; Lost Account; Guild System; House System

--------- EDIT ----------

Look this picture, the "index.php" is vulnerable for XSS Attack (Cross Site Scripting)

The Scanned Website is my
crosssitescriptingvo3.jpg
 
Status
Not open for further replies.
Back
Top