What's new

::Temple Position Wrong::

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Siemka
Posiadam Silnik WoDBO i mam taki problem ?e:
Posta? Gdy Padnie to si? nie respi!
Prosz? o szybko pomoc!
PS: nie pisa? mi ?e musz? gdzie? ustawi? Temple! bo to ja wiem ustawi?em sobie w config.inc.php to:

##################################################
# Town Config #
##################################################
/*
NOTICE
Town IDs must be correct and match those in your map
*/
# Town names
$cfg['temple'][1]['name'] = 'Dblb city';
# Now set which town(s) you want to use in character making
$cfg['temple'][1]['x'] = 3193;
$cfg['temple'][1]['y'] = 3262;
$cfg['temple'][1]['z'] = 7;
$cfg['temple'][1]['enabled'] = true;

Ale posta? po padni?ciu nadal si? nie respi,czyli gdzie? indziej trzeba te? ustawi? :)
Prosz? o szybko pomoc!
 

Ludvio

Active User
Joined
Jan 23, 2009
Messages
78
Reaction score
3
Odp: ::Temple Position Wrong::

konfig to nie wszystko na t.net.pl jest masa takich poradnik?w
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

aha to mo?e by? je poda?? bo ja znale?? nie moge jako? :p:p
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

Sry ale ten Poradnik jest pisany dla u?ytkownik?w acc maker by Gensior i ja mam wog?le ci innego :/
 

Ovner

Senior User
Joined
Jun 21, 2009
Messages
528
Reaction score
54
Age
31
Odp: ::Temple Position Wrong::

No to mo?e by? napisa? co ty masz ... na bank nikt nie b?dzie zgadywa? czy tak zr?b czy srak...

#edit.

1) Sprawdz w map edytorze zgodnosc miast i ich ID Map -> edit town (chyba)
2) W Cfg.lua sprawdz wszystko co jest zwiazane z TEMPLE...i pozycja ; d
3) Uzywasz acc makera czy account managera?
Ad. 3a) Jesli uzywasz acc maker to lezy to w acc makerze w plikach (i tutaj masz ustawione w plikach, ktore postacie kopiuje, gdy tworzy konta znajdz te postacie tak jak nizej \/.
Ad. 3b) Jesli uzywasz account managera to tylko i wylaczenie (chyba) Database -> Players -> Account Manager i tam zmien hm.. town_id i posx posy posz
 
Last edited:

Scootyy

Senior User
Joined
Jul 26, 2009
Messages
564
Reaction score
12
Age
34
Odp: ::Temple Position Wrong::

Napisa?, ?e ma silnik Wodbo....

hmmm, nie wiem jak jest na wodbo...

Mo?e w config.lua ustaw co? takiego w accmanagerze.. w sumie to b?dzie dotyczy? tylko managera

Down:

Nie widzia?em jak to wygl?da na wodbo, ale na silniku TFS 0.3.6(SQL) jest podane do acc managera

PHP:
	accountManager = false
	namelockManager = true
	newPlayerChooseVoc = false
	newPlayerSpawnPosX = 1000
	newPlayerSpawnPosY = 1000
	newPlayerSpawnPosZ = 7
	newPlayerTownId = 1
	newPlayerLevel = 1
	newPlayerMagicLevel = 0
	generateAccountNumber = false

;) ahhh no tak, zapomnia?em. sorry, wodbo nie ma accmanagera :D
 
Last edited:

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

Ehhh Przecie? Silnik WoDBO Nie Ma Danych Tomple w Config.lua bo to jest ots na SQL :p
Proz? niech kto? w ko?cu mi pomo?e ;(
 

Ludvio

Active User
Joined
Jan 23, 2009
Messages
78
Reaction score
3
Odp: ::Temple Position Wrong::

Sorry ale czy ty jeste? jaki? ujemny?1 Pozycje w szukajce zaje?o to 20 sekund.
Rozwi?zanie


Je?eli pomog?em daj chocia? reputa jak to ci jakim? cudem nie dzia?a to napisz albo UWAGA wyszukaj
 

Ovner

Senior User
Joined
Jun 21, 2009
Messages
528
Reaction score
54
Age
31
Odp: ::Temple Position Wrong::

#Ludvio
A mo?liwe, ?e ty jeste? ujemny... ju? mu to wcze?niej napisa?em.
#shadow
1) Sprawdz w map edytorze zgodnosc miast i ich ID Map -> edit town (chyba)
2) W Cfg.lua sprawdz wszystko co jest zwiazane z TEMPLE...i pozycja ; d
3) Uzywasz acc makera czy account managera?
Ad. 3a) Jesli uzywasz acc maker to lezy to w acc makerze w plikach (i tutaj masz ustawione w plikach, ktore postacie kopiuje, gdy tworzy konta znajdz te postacie tak jak nizej \/.
Ad. 3b) Jesli uzywasz account managera to tylko i wylaczenie (chyba) Database -> Players -> Account Manager i tam zmien hm.. town_id i posx posy posz
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

1) Sprawdzi?em napewno dobre!
2)Sprawdzi?em nie mam nic o temple w Config.lua bo to jest silnik WoDBO na SQL.
3) Acc Maker By Sparkingw
:/:/
 

Ovner

Senior User
Joined
Jun 21, 2009
Messages
528
Reaction score
54
Age
31
Odp: ::Temple Position Wrong::

shadow wi?c je?li jest to SQL i masz acc maker to musi by? w ACC MAKERZE co? na ten temat.
Je?li on tworzy konta kopiuj?c jakiego? chara to w tym charze wszystko zmie?.
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

ej znalaz?em tak? linikj? w Acc Makerze a dok?adnie w D:\xampp\htdocs\characters.php

$gender = Array('Female','Male');
echo '<b>Gender:</b> '.$gender[$player->getAttr('sex')].'<br/>'."\n";
if (!empty($cfg['temple'][$player->getAttr('city')]['name']))
echo "<b>Residence</b>: ".ucfirst($cfg['temple'][$player->getAttr('city')]['name'])."<br/>";


Czy Powinienem co? tu Zmienia?? czy to nie ma znaczenia
 

FerN

Senior User
Joined
Apr 10, 2009
Messages
597
Reaction score
27
Odp: ::Temple Position Wrong::

W?tpi? ?eby problem tkwi? w accmakerze. W bazie danych musisz mie? co? zjebane, lub z?e pozycje w map edytorze - chocia? nie pami?tam czy to ma jaki? wp?yw.
 

Ovner

Senior User
Joined
Jun 21, 2009
Messages
528
Reaction score
54
Age
31
Odp: ::Temple Position Wrong::

Nie, nie ma znaczenia.

PHP:
$gender = Array('Female','Male');
echo '<b>Gender:</b> '.$gender[$player->getAttr('sex')].'<br/>'."\n";
if (!empty($cfg['temple'][$player->getAttr('city')]['name']))
echo "<b>Residence</b>: ".ucfirst($cfg['temple'][$player->getAttr('city')]['name'])."<br/>";
Gdy robisz posta? co? takiego jest /\
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

Aha Znalaz?em jeszcze jedno Tego jest od Groma i nie wiem czy Zmienia? !

Moja ?cie?ka Do Pliku: D:\xampp\htdocs\class\player.php


<?php
/*
Copyright (C) 2007 - 2008 Nicaw

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
class Player extends SQL
{
private $attrs, $skills, $storage;

public function __construct()
{
parent::__construct();
}

public function find($name)
{
$player = $this->myRetrieve('players', array('name' => $name));
if ($player === false) return false;
$this->load($player['id']);
return true;
}

public function load($id)
{
//I don't load complete data like items etc, just the stuff I need
$player = $this->myRetrieve('players', array('id' => $id));
if ($player === false) return false;
$group = $this->myRetrieve('groups', array('id' => (int) $player['group_id']));
if ($group === false)
$this->attrs['access'] = 0;
else{
$this->attrs['group'] = (int) $player['group_id'];
$this->attrs['access'] = (int) $group['access'];
$this->attrs['position'] = (string) $group['name'];
}
$this->attrs['id'] = (int) $player['id'];
$this->attrs['name'] = (string) $player['name'];
$this->attrs['account'] = (int) $player['account_id'];
$this->attrs['level'] = (int) $player['level'];
$this->attrs['vocation'] = (int) $player['vocation'];
$this->attrs['experience'] = (int) $player['experience'];
$this->attrs['promoted'] = 0;
$this->attrs['maglevel'] = (int) $player['maglevel'];
$this->attrs['city'] = (int) $player['town_id'];
$this->attrs['sex'] = (int) $player['sex'];
$this->attrs['lastlogin'] = (int) $player['lastlogin'];
$this->attrs['redskulltime'] = (int) $player['redskulltime'];
$this->attrs['spawn']['x'] = (int) $player['posx'];
$this->attrs['spawn']['y'] = (int) $player['posy'];
$this->attrs['spawn']['z'] = (int) $player['posx'];
//get skills
$this->myQuery('SELECT * FROM `player_skills` WHERE `player_id` = '.$this->attrs['id']);
if ($this->failed()) throw new Exception('Cannot retrieve player skills<br/>'.$this->getError());
while($a = $this->fetch_array()){
$this->skills[$a['skillid']]['skill'] = (int)$a['value'];
$this->skills[$a['skillid']]['tries'] = (int)$a['count'];
}
//get storage
$this->myQuery('SELECT * FROM `player_storage` WHERE `player_id` = '.$this->attrs['id']);
if ($this->failed()) throw new Exception('Cannot retrieve player storage<br/>'.$this->gerError());
while($a = $this->fetch_array())
$this->storage[$a['key']] = (int)$a['value'];
//get guild stuff
$this->myQuery("SELECT players.guildnick, guild_ranks.level, guild_ranks.name, guilds.id, guilds.name FROM guild_ranks, players, guilds WHERE guilds.id = guild_ranks.guild_id AND players.rank_id = guild_ranks.id AND players.id = ".$this->attrs['id']);
if (!$this->failed() && $this->num_rows() == 1){
$a = $this->fetch_array();
$this->attrs['guild_nick'] = $a[0];
$this->attrs['guild_level'] = $a[1];
$this->attrs['guild_rank'] = $a[2];
$this->attrs['guild_id'] = $a[3];
$this->attrs['guild_name'] = $a[4];
}
return true;
}

public function save()
{
$d['group_id'] = $this->attrs['group'];
$d['name'] = $this->attrs['name'];
$d['account_id'] = $this->attrs['account'];
$d['level'] = $this->attrs['level'];
$d['vocation'] = $this->attrs['vocation'];
$d['experience'] = $this->attrs['experience'];
$d['maglevel'] = $this->attrs['maglevel'];
$d['town_id'] = $this->attrs['city'];
$d['sex'] = $this->attrs['sex'];
$d['redskulltime'] = (int) $player['redskulltime'];

return $this->myUpdate('players', $d, array('id' => $this->attrs['id']));
}

public function exists()
{
$this->myQuery('SELECT * FROM `players` WHERE `name` = '.$this->quote($this->attrs['name']));
if ($this->failed()) throw new Exception('Player::exists() cannot determine whether player exists');
if ($this->num_rows() > 0) return true;
return false;
}

public function getAttr($attr)
{
return $this->attrs[$attr];
}

public function isAttr($attr)
{
return isset($this->attrs[$attr]);
}

public function setAttr($attr,$value)
{
$this->attrs[$attr] = $value;
}

public function getStorage($id)
{
return $this->storage[$id];
}

public function getDeaths()
{
$query = "SELECT * FROM `player_deaths` WHERE (`player_id` = '".$this->escape_string($this->attrs['id'])."') ORDER BY time DESC LIMIT 10";
$this->myQuery($query);
if ($this->failed()) throw new Exception('Cannot retrieve deaths! This is only compatible with TFS.'.$this->getError());;
$i = 0;
while($a = $this->fetch_array()){
$list[$i]['killer'] = $a['killed_by'];
$list[$i]['level'] = $a['level'];
$list[$i]['date'] = $a['time'];
$i++;
}
return $list;
}

public function getSkill($n)
{
return $this->skills[$n]['skill'];
}

public function delete()
{
return $this->myDelete('players',array('id' => $this->attrs['id']),0)
&& $this->myDelete('player_items',array('player_id' => $this->attrs['id']),0)
&& $this->myDelete('player_depotitems',array('player_id' => $this->attrs['id']),0)
&& $this->myDelete('player_skills',array('player_id' => $this->attrs['id']),0)
&& $this->myDelete('player_storage',array('player_id' => $this->attrs['id']),0)
&& $this->myDelete('player_viplist',array('player_id' => $this->attrs['id']),0);
}

public function create()
{global $cfg;

if ($this->exists())
throw new Exception('Player already exists');

//make player
$d['id'] = NULL;
$d['name'] = $this->attrs['name'];
$d['account_id'] = $this->attrs['account'];
$d['vocation'] = $this->attrs['vocation'];
$d['sex'] = $this->attrs['sex'];
$d['level'] = getVocLvl($this->attrs['vocation']);
$d['experience'] = getVocExp($this->attrs['vocation']);
$d['health'] = $cfg['vocations'][$this->attrs['vocation']]['health'];
$d['healthmax'] = $cfg['vocations'][$this->attrs['vocation']]['health'];
$d['looktype'] = $cfg['vocations'][$this->attrs['vocation']]['look'][(int)$this->attrs['sex']];
$d['maglevel'] = $cfg['vocations'][$this->attrs['vocation']]['maglevel'];
$d['mana'] = $cfg['vocations'][$this->attrs['vocation']]['mana'];
$d['manamax'] = $cfg['vocations'][$this->attrs['vocation']]['mana'];
$d['cap'] = $cfg['vocations'][$this->attrs['vocation']]['cap'];
$d['town_id'] = $this->attrs['city'];
$d['posx'] = $cfg['temple'][$this->attrs['city']]['x'];
$d['posy'] = $cfg['temple'][$this->attrs['city']]['y'];
$d['posz'] = $cfg['temple'][$this->attrs['city']]['z'];

if (!$this->myInsert('players',$d)) throw new Exception('Player::make() Cannot insert attributes:<br/>'.$this->getError());
$this->attrs['id'] = $this->insert_id();

unset($d);

//make items
$sid = 100;
while ($item = current($cfg['vocations'][$this->attrs['vocation']]['equipment'])){
$sid++;
$d['player_id'] = $this->attrs['id'];
$d['pid'] = key($cfg['vocations'][$this->attrs['vocation']]['equipment']);
$d['sid'] = $sid;
$d['itemtype'] = $item;

if (!$this->myInsert('player_items',$d)) throw new Exception('Player::make() Cannot insert items:<br/>'.$this->getError());
unset($d);
next($cfg['vocations'][$this->attrs['vocation']]['equipment']);
}

//make skills only if not created by trigger
$this->myQuery('SELECT COUNT(player_skills.skillid) as count FROM player_skills WHERE player_id = '.$this->quote($this->attrs['id']));
$a = $this->fetch_array();
$i = 0;
while ($skill = current($cfg['vocations'][(int)$this->attrs['vocation']]['skills'])){
$skill_id = key($cfg['vocations'][(int)$this->attrs['vocation']]['skills']);

if ($a['count'] == 0){
if (!$this->myInsert('player_skills',array('player_id' => $this->attrs['id'], 'skillid' => $skill_id, 'value' => $skill, 'count' => 0)))
throw new Exception('Player::make() Cannot insert skills:<br/>'.$this->getError());
}else{
if (!$this->myUpdate('player_skills',array('value' => $skill),array('player_id' => $this->attrs['id'], 'skillid' => $skill_id)))
throw new Exception('Player::make() Cannot update skills:<br/>'.$this->getError());
}

next($cfg['vocations'][$this->attrs['vocation']]['skills']);
}
return $this->load($this->attrs['id']);
}

public function repair()
{global $cfg;
$lvl = $this->attrs['level'];
$exp = AAC::getExperienceByLevel($lvl);
if (!$this->myUpdate('players',array(
'posx' => $cfg['temple'][$this->attrs['city']]['x'],
'posy' => $cfg['temple'][$this->attrs['city']]['y'],
'posz' => $cfg['temple'][$this->attrs['city']]['z']
/*, 'experience' => $exp*/), array('id' => $this->attrs['id']))) throw new Exception($this->getError());
return $this->load($this->attrs['id']);
}
}
?>
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

plix niech kto? pomo?e bo to wa?ne!
 

mateusz2010

Active User
Joined
Mar 26, 2010
Messages
124
Reaction score
10
Odp: ::Temple Position Wrong::

Po mojemu zrob tak:
Ustaw w xampp/htdocs/confing.inc
##################################################
# Town Config #
##################################################
/*
NOTICE
Town IDs must be correct and match those in your map
*/
# Town names
$cfg['temple'][1]['name'] = 'Twoja nazwa miasta taka jak w map editorze';
# Pozycja, gdzie postac ma sie respic ( to tylko przyklad, ustaw swoje)
$cfg['temple'][1]['x'] = 999;
$cfg['temple'][1]['y'] = 999;
$cfg['temple'][1]['z'] = 7;
$cfg['temple'][1]['enabled'] = true;
Potem uruchom map editor, wczytaj mapke. U gory masz Tools-> Edit towns
Nastepnie ustaw taka sama pozycja i nazwa miasta jak w acc Save. Jak to nie pomoze to juz nie mam pojecia co moze z tym byc.
helpup.jpg
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

Kolega UP!

Jestem ci Dowzgonnie Wdzi?czny! Wko?cu posta? mi si? respi! ;D
Takie proste a jednak nie wiedzia?em :)
Repucik Dla Ciebie!
 

shadow21

Advanced User
Joined
Jun 13, 2010
Messages
182
Reaction score
4
Odp: ::Temple Position Wrong::

Mam jeszcze Jedno Pytanie Gdzie Zmienia Si? Wygl?d Transform?
Chodzi mi oto ?eby zmieni? wygl?d transform np.Bardocka od 200 lvl :) Gdzie go zmieni??
 
Top