:p Dalem ten sam post dwa razy pomylka przepraszam ;p ;p
Wersja do druku
:p Dalem ten sam post dwa razy pomylka przepraszam ;p ;p
Pomocy!!!!!!Jak ktos wie co Sie dzieje niech pisz tesz na GG:5639486:545: :545: :545: :545: :545:Kod PHP:<center><? function verificacao() { require('config.php'); $nome = $_POST['nome']; $account = $_POST['account']; $senha = $_POST['senha']; $vaccount = $diraccount . '/' . $account . '.xml'; $vnome = $dirplayer . '/' . $nome . '.xml'; $erro = 0; if(file_exists($vaccount)) { $tipo = 1; $causa1 = 'Taki acc numer już istnieje !<p/>'; $erro = 1; } elseif(file_exists($vnome)) { $tipo = 2; $causa2 = 'nick '.$nome.' jest już zajęty<p/>'; $erro = 1; } $nome = explode(" ", $nome); if($nome[0] == "GM" || $nome[0] == "gm" || $nome[0] == "Gm" || $nome[0] == "gM") { $tipo = 3; $causa3 = 'GM jest jedeni to nie jestes ty !'; $erro = 1; } elseif($nome == "" || $senha == "") { $tipo = 4; $causa4 = 'Zle haslo !'; $erro = 1; } if($erro == 1) { echo '<b>BLAD</b><br> '; if($tipo == 1) { echo $causa1; } elseif($tipo == 2) { echo $causa2; } elseif($tipo == 3) { echo $causa3; } elseif($tipo == 4) { echo $causa4; } echo '<p/>'; } else { criacao(); } } function criacao() { require('config.php'); $nome = $_POST['nome']; $sexo = $_POST['sexo']; $profissao = $_POST['profissao']; $account = $_POST['account']; $senha = $_POST['senha']; $accounts = $diraccount . '/' . $account . '.xml'; $players = $dirplayer . '/' . $nome . '.xml'; /* Criando Account */ $fp = fopen($accounts, 'w'); fwrite($fp, '<?xml version="1.0"?> <account pass="' . $senha . '" type="1" premDays="90"> <characters> <character name="' . $nome . '" /> </characters> </account>'); fclose($fp); /* Sorcerer */ if($sexo == 1 && $profissao == 1) { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="1" lookdir="1" exp="' . $exp . '" voc="1" level="' . $lvl . '" access="0" cap="300" maglevel="' . $smlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $shealth . '" max="' . $shealth . '" food="0"/> <mana now="' . $smana . '" max="' . $smana . '" spent="0"/> <look type="130" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $sskill0 . '" tries="0"/> <skill skillid="1" level="' . $sskill1 . '" tries="0"/> <skill skillid="2" level="' . $sskill2 . '" tries="8"/> <skill skillid="3" level="' . $sskill3 . '" tries="0"/> <skill skillid="4" level="' . $sskill4 . '" tries="0"/> <skill skillid="5" level="' . $sskill5 . '" tries="0"/> <skill skillid="6" level="' . $sskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqsor1 . '"/></slot> <slot slotid="2"><item id="' . $eqsor2 . '"/></slot> <slot slotid="3"><item id="' . $eqsor3 . '"/></slot> <slot slotid="4"><item id="' . $eqsor4 . '"/></slot> <slot slotid="5"><item id="' . $eqsor5 . '"/></slot> <slot slotid="6"><item id="' . $eqsor6 . '"/></slot> <slot slotid="7"><item id="' . $eqsor7 . '"/></slot> <slot slotid="8"><item id="' . $eqsor8 . '"/></slot> <slot slotid="9"><item id="' . $eqsor9 . '"/></slot> </inventory> </player>'); fclose($fp); } elseif($sexo == 2 && $profissao == 1) { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="0" lookdir="1" exp="' . $exp . '" voc="1" level="' . $lvl . '" access="0" cap="300" maglevel="' . $smlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $shealth . '" max="' . $shealth . '" food="0"/> <mana now="' . $smana . '" max="' . $smana . '" spent="0"/> <look type="138" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $sskill0 . '" tries="0"/> <skill skillid="1" level="' . $sskill1 . '" tries="0"/> <skill skillid="2" level="' . $sskill2 . '" tries="8"/> <skill skillid="3" level="' . $sskill3 . '" tries="0"/> <skill skillid="4" level="' . $sskill4 . '" tries="0"/> <skill skillid="5" level="' . $sskill5 . '" tries="0"/> <skill skillid="6" level="' . $sskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqsor1 . '"/></slot> <slot slotid="2"><item id="' . $eqsor2 . '"/></slot> <slot slotid="3"><item id="' . $eqsor3 . '"/></slot> <slot slotid="4"><item id="' . $eqsor4 . '"/></slot> <slot slotid="5"><item id="' . $eqsor5 . '"/></slot> <slot slotid="6"><item id="' . $eqsor6 . '"/></slot> <slot slotid="7"><item id="' . $eqsor7 . '"/></slot> <slot slotid="8"><item id="' . $eqsor8 . '"/></slot> <slot slotid="9"><item id="' . $eqsor9 . '"/></slot> </inventory> </player>'); fclose($fp); } /* Druid */ elseif($sexo == 1 && $profissao == 2) { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="1" lookdir="1" exp="' . $exp . '" voc="2" level="' . $lvl . '" access="0" cap="300" maglevel="' . $dmlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $dhealth . '" max="' . $dhealth . '" food="0"/> <mana now="' . $dmana . '" max="' . $dmana . '" spent="0"/> <look type="130" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $dskill0 . '" tries="0"/> <skill skillid="1" level="' . $dskill1 . '" tries="0"/> <skill skillid="2" level="' . $dskill2 . '" tries="8"/> <skill skillid="3" level="' . $dskill3 . '" tries="0"/> <skill skillid="4" level="' . $dskill4 . '" tries="0"/> <skill skillid="5" level="' . $dskill5 . '" tries="0"/> <skill skillid="6" level="' . $dskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqdrut1 . '"/></slot> <slot slotid="2"><item id="' . $eqdrut2 . '"/></slot> <slot slotid="3"><item id="' . $eqdrut3 . '"/></slot> <slot slotid="4"><item id="' . $eqdrut4 . '"/></slot> <slot slotid="5"><item id="' . $eqdrut5 . '"/></slot> <slot slotid="6"><item id="' . $eqdrut6 . '"/></slot> <slot slotid="7"><item id="' . $eqdrut7 . '"/></slot> <slot slotid="8"><item id="' . $eqdrut8 . '"/></slot> <slot slotid="9"><item id="' . $eqdrut9 . '"/></slot> </inventory> </player>'); fclose($fp); } elseif($sexo == 2 && $profissao == 2) { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="0" lookdir="1" exp="' . $exp . '" voc="2" level="' . $lvl . '" access="0" cap="300" maglevel="' . $dmlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $dhealth . '" max="' . $dhealth . '" food="0"/> <mana now="' . $dmana . '" max="' . $dmana . '" spent="0"/> <look type="138" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $dskill0 . '" tries="0"/> <skill skillid="1" level="' . $dskill1 . '" tries="0"/> <skill skillid="2" level="' . $dskill2 . '" tries="8"/> <skill skillid="3" level="' . $dskill3 . '" tries="0"/> <skill skillid="4" level="' . $dskill4 . '" tries="0"/> <skill skillid="5" level="' . $dskill5 . '" tries="0"/> <skill skillid="6" level="' . $dskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqdrut1 . '"/></slot> <slot slotid="2"><item id="' . $eqdrut2 . '"/></slot> <slot slotid="3"><item id="' . $eqdrut3 . '"/></slot> <slot slotid="4"><item id="' . $eqdrut4 . '"/></slot> <slot slotid="5"><item id="' . $eqdrut5 . '"/></slot> <slot slotid="6"><item id="' . $eqdrut6 . '"/></slot> <slot slotid="7"><item id="' . $eqdrut7 . '"/></slot> <slot slotid="8"><item id="' . $eqdrut8 . '"/></slot> <slot slotid="9"><item id="' . $eqdrut9 . '"/></slot> </inventory> </player>'); fclose($fp); } /* Paladin */ elseif($sexo == 1 && $profissao == 3) { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="1" lookdir="1" exp="' . $exp . '" voc="3" level="' . $lvl . '" access="0" cap="300" maglevel="' . $pmlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $phealth . '" max="' . $phealth . '" food="0"/> <mana now="' . $pmana . '" max="' . $pmana . '" spent="0"/> <look type="129" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $pskill0 . '" tries="0"/> <skill skillid="1" level="' . $pskill1 . '" tries="0"/> <skill skillid="2" level="' . $pskill2 . '" tries="8"/> <skill skillid="3" level="' . $pskill3 . '" tries="0"/> <skill skillid="4" level="' . $pskill4 . '" tries="0"/> <skill skillid="5" level="' . $pskill5 . '" tries="0"/> <skill skillid="6" level="' . $pskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqpall1 . '"/></slot> <slot slotid="2"><item id="' . $eqpall2 . '"/></slot> <slot slotid="3"><item id="' . $eqpall3 . '"/></slot> <slot slotid="4"><item id="' . $eqpall4 . '"/></slot> <slot slotid="5"><item id="' . $eqpall5 . '"/></slot> <slot slotid="6"><item id="' . $eqpall6 . '"/></slot> <slot slotid="7"><item id="' . $eqpall7 . '"/></slot> <slot slotid="8"><item id="' . $eqpall8 . '"/></slot> <slot slotid="9"><item id="' . $eqpall9 . '"/></slot> <slot slotid="10"><item id="' . $eqpall10 . '"/></slot> </inventory> </player>'); fclose($fp); } elseif($sexo == 2 && $profissao == 3) { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="0" lookdir="1" exp="' . $exp . '" voc="3" level="' . $lvl . '" access="0" cap="300" maglevel="' . $pmlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $phealth . '" max="' . $phealth . '" food="0"/> <mana now="' . $pmana . '" max="' . $pmana . '" spent="0"/> <look type="137" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $pskill0 . '" tries="0"/> <skill skillid="1" level="' . $pskill1 . '" tries="0"/> <skill skillid="2" level="' . $pskill2 . '" tries="8"/> <skill skillid="3" level="' . $pskill3 . '" tries="0"/> <skill skillid="4" level="' . $pskill4 . '" tries="0"/> <skill skillid="5" level="' . $pskill5 . '" tries="0"/> <skill skillid="6" level="' . $pskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqpall1 . '"/></slot> <slot slotid="2"><item id="' . $eqpall2 . '"/></slot> <slot slotid="3"><item id="' . $eqpall3 . '"/></slot> <slot slotid="4"><item id="' . $eqpall4 . '"/></slot> <slot slotid="5"><item id="' . $eqpall5 . '"/></slot> <slot slotid="6"><item id="' . $eqpall6 . '"/></slot> <slot slotid="7"><item id="' . $eqpall7 . '"/></slot> <slot slotid="8"><item id="' . $eqpall8 . '"/></slot> <slot slotid="9"><item id="' . $eqpall9 . '"/></slot> <slot slotid="10"><item id="' . $eqpall10 . '"/></slot> </inventory> </player>'); fclose($fp); } /* Knight */ elseif($sexo == 1 && $profissao == 4) { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="1" lookdir="1" exp="' . $exp . '" voc="4" level="' . $lvl . '" access="0" cap="300" maglevel="' . $kmlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $khealth . '" max="' . $khealth . '" food="0"/> <mana now="' . $kmana . '" max="' . $kmana . '" spent="0"/> <look type="131" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $kskill0 . '" tries="0"/> <skill skillid="1" level="' . $kskill1 . '" tries="0"/> <skill skillid="2" level="' . $kskill2 . '" tries="8"/> <skill skillid="3" level="' . $kskill3 . '" tries="0"/> <skill skillid="4" level="' . $kskill4 . '" tries="0"/> <skill skillid="5" level="' . $kskill5 . '" tries="0"/> <skill skillid="6" level="' . $kskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqkn1 . '"/></slot> <slot slotid="2"><item id="' . $eqkn2 . '"/></slot> <slot slotid="3"><item id="' . $eqkn3 . '"/></slot> <slot slotid="4"><item id="' . $eqkn4 . '"/></slot> <slot slotid="5"><item id="' . $eqkn5 . '"/></slot> <slot slotid="6"><item id="' . $eqkn6 . '"/></slot> <slot slotid="7"><item id="' . $eqkn7 . '"/></slot> <slot slotid="8"><item id="' . $eqkn8 . '"/></slot> <slot slotid="9"><item id="' . $eqkn9 . '"/></slot> </inventory> </player>'); fclose($fp); } else { $fp = fopen($players, 'w'); fwrite($fp, '<?xml version="1.0"?> <player name="' . $nome . '" account="' . $account . '" sex="0" lookdir="1" exp="' . $exp . '" voc="4" level="' . $lvl . '" access="0" cap="300" maglevel="' . $kmlvl . '"> <spawn x="' . $spawnx . '" y="' . $spawny . '" z="7"/> <temple x="' . $templex . '" y="' . $templey . '" z="7"/> <health now="' . $khealth . '" max="' . $khealth . '" food="0"/> <mana now="' . $kmana . '" max="' . $kmana . '" spent="0"/> <look type="139" head="20" body="30" legs="40" feet="50"/> <skills> <skill skillid="0" level="' . $kskill0 . '" tries="0"/> <skill skillid="1" level="' . $kskill1 . '" tries="0"/> <skill skillid="2" level="' . $kskill2 . '" tries="8"/> <skill skillid="3" level="' . $kskill3 . '" tries="0"/> <skill skillid="4" level="' . $kskill4 . '" tries="0"/> <skill skillid="5" level="' . $kskill5 . '" tries="0"/> <skill skillid="6" level="' . $kskill6 . '" tries="0"/> </skills> <inventory> <slot slotid="1"><item id="' . $eqkn1 . '"/></slot> <slot slotid="2"><item id="' . $eqkn2 . '"/></slot> <slot slotid="3"><item id="' . $eqkn3 . '"/></slot> <slot slotid="4"><item id="' . $eqkn4 . '"/></slot> <slot slotid="5"><item id="' . $eqkn5 . '"/></slot> <slot slotid="6"><item id="' . $eqkn6 . '"/></slot> <slot slotid="7"><item id="' . $eqkn7 . '"/></slot> <slot slotid="8"><item id="' . $eqkn8 . '"/></slot> <slot slotid="9"><item id="' . $eqkn9 . '"/></slot> </inventory> </player>'); fclose($fp); } echo 'Konto ' . $account . ' dodane pomyslnie !<p/>'; } verificacao(); ?> </center>
Czy ktos by mugl podac dzialajacego linka do tego programu plisski
Ej ludzie pomóżcie. Wypełniłem już cały plik config.php i gdzie mam wpisać IP (swoje) żeby działał mi acc maker? I ten acc maker jest też pod YurOTS? Błagam o szybką odpowiedź. Ponieważ chcem rozpowszechnić serwerek:)
Ja mam troszke inny problem pomozcie nobo jak juz skonfigurowalem wszystko ladnie chodzi i chce wpisac www.mojeip..... to wyskakuje ze nia ma takiej strony ale jak klikam na web serwa i daje Główna WWW to jest acc maker ale z adrsem www.localhost/ a nie z takim jaki ja chce :( a nawet jak daje kolegom ten adres localhost to tez im nie dziala pomozcie plx..
Ja config otworzylem za pomoca notatnika i tak zostalo , czy tak moze być?
Nie chodzi mi acc maker
ej mam problem pokazuje tak jak tamtemu :553: "char deleted"
i mam wpisane takie coś ;P
//
$diraccount = 'd://tibia//ot_survival//data//accounts//';
//
$dirplayer = 'd://tibia//ot_survival//data//players//';
czy to dobrze jest wpisane???
plis fast reply
Jak wpisywać itemy
np. numerowo '1736' czy 'platearmor'
pomocy, bo nie wiem co mam robić dalej??!!
Zrobiłem wszystko jak pisze w Twoim poradniku, ale z acc makera i serva moge korzystac tylko ja, a jak moi kumple chce sa połączyć to wyskakuje "conection refused". Jak temu zapobiec?
Super temat dzieki niemu sie nauczylem robic acc makera ... wielkie THX:) :)
to wez mi napisz co mam zrobic gdy wszystko zrobilem ok ale nikt nie moze wejscv na taka strone, oprucz mnieCytuj:
Ketashi napisał
Dlaczego postacie stworzone po przez accound makera nie mogą korzystać z depo??? Kiedy otwieram pisze mi You cannot use this objrct
Jak gram postacią stworzoną po przez notatnik to wszystko działa!!!
czy to dziala pod yourots ?????plzka o odpowiedz,jak zreszta robilem pod 7.1 surv to all ok tylko ze potem please enter a valid..... a pisalo ze konto taki zostalo pomyslnie stworzone -.- pomocy plzka!!!!!
kurde ale nie dziala link do sciagniecia Webserva ;/;/;/;/ i co teraz?? :(
Kurde jakos ten Poradnik jest Lewy ;/ Robie wszystko dobrze pieknie tylko jak juz zrobilem psotacie do testu acc makera to dp nie moglem otworzyc i inni gracze tez czemu tak sie dzieje?? ODpiszczie na PRiv albo na GaduGadu Numer 5477477. Poradnik Maestra byl Cool :/ gdzie on teraz jest?;o ODp KTos]
Moze cos zle Skonfigurowalem?