Ir para conteúdo

L3K0T

Membro
  • Registro em

  • Última visita

Tudo que L3K0T postou

  1. L3K0T postou uma resposta no tópico em Suporte Tibia OTServer
    function onUse(cid, item, toPosition) rock1pos = {x=645, y=581, z=8, stackpos=1}-- Posição da Pedra rock2pos = {x=645, y=581, z=8, stackpos=1}-- Posição da Pedra rock3pos = {x=645, y=581, z=8, stackpos=1}-- Posição da Pedra getrock1 = getThingfromPos(rock1pos) UniID = 7110 -- UniqueID que vai ser adicionado na alavanca rockID = 3463 -- ID da pedra if item.uid == UniID and item.itemid == 1945 and getrock1.itemid == rockID then doRemoveItem(getrock1.uid, 1) doTransformItem(item.uid, item.itemid+1) doSendMagicEffect(rock1pos, 2) elseif item.uid == UniID and item.itemid == 1946 then doCreateItem(rockID, 1, rock1pos) doTransformItem(item.uid,item.itemid-1) doSendMagicEffect(rock1pos, 13) end return TRUE end <action uniqueid="7900" event="script" value="script.lua"/> só editar bye
  2. /openserver caso persista verifique as posições dos players aonde nascem!
  3. L3K0T postou uma resposta no tópico em Ferramentas OpenTibia
    acabei de testar no meu server realmente magnifico! "voltei ao topico, caraaaaaaaaa depois que testei isso meu tfs fecha sozinho agora n abre mais minha vps ta uma bosta ve isso ai pow afs cara"
  4. function onUse(cid, item, position) if item.itemid == 1945 then doTransformItem(item.uid, 1946) else doTransformItem(item.uid, 1945) end local removeItem = xxxx, xxx, xxxx, xxxx -- o item que o player terá que ter xxxx é os id dos itens a ser trocados local AddItem = xxxx -- o item que o player vai ganhar if doPlayerRemoveItem(cid, removeItem, 1, 1, 1, 1)then ------- quantidade cada linha representa a quantia a cima doPlayerAddItem(cid, AddItem, 1) doPlayerPopupFYI(cid, "Parabéns Você ganhou um nome do item!") else doPlayerPopupFYI(cid, "ops você precisa vc precisa de tantos itens para blablabla!") return false end end <action uniqueid="uniqueid da lavanca" event="script" value="seu script.lua"/> tudo isso add em action
  5. mysql caso for site na tabela Shop_offer
  6. vou postar o meu pois eu uso o mesminho CREATE TABLE IF NOT EXISTS `bans` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` tinyint(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion', `value` int(10) unsigned NOT NULL COMMENT 'ip address (integer), player guid or account number', `param` int(10) unsigned NOT NULL DEFAULT '4294967295' COMMENT 'used only for ip banishment mask (integer)', `active` tinyint(1) NOT NULL DEFAULT '1', `expires` int(11) NOT NULL, `added` int(10) unsigned NOT NULL, `admin_id` int(10) unsigned NOT NULL DEFAULT '0', `comment` text NOT NULL, `reason` int(10) unsigned NOT NULL DEFAULT '0', `action` int(10) unsigned NOT NULL DEFAULT '0', `statement` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `type` (`type`,`value`), KEY `active` (`active`) ) ENGINE=InnoDB abraços
  7. 55 o peso msm se ele tiver 55 de peso exatamente n vai pegar msm tem que ter no minimo 60!
  8. tenta CREATE TABLE `bans` ( `type` INT NOT NULL COMMENT 'this field defines if its ip, accountban or namelock', `ip` INT UNSIGNED NOT NULL DEFAULT 0, `mask` INT UNSIGNED NOT NULL DEFAULT 4294967295, `player` INT UNSIGNED NOT NULL DEFAULT 0, `account` INT UNSIGNED NOT NULL DEFAULT 0, `time` INT UNSIGNED NOT NULL DEFAULT 0, `reason_id` INT NOT NULL DEFAULT 0, `action_id` INT NOT NULL DEFAULT 0, `comment` VARCHAR(60) NOT NULL DEFAULT '', `banned_by` INT UNSIGNED NOT NULL DEFAULT 0 ) ENGINE = InnoDB; caso n der executa essa coluna a baixo ALTER TABLE `bans` ADD `action` INT( 11 ) NOT NULL DEFAULT '0';
  9. L3K0T postou uma resposta no tópico em Suporte Tibia OTServer
    cara isso ta em config.php do site adc os mundos lá certinho
  10. L3K0T postou uma resposta no tópico em Suporte Tibia OTServer
    qual mysql vc importo ?
  11. L3K0T postou uma resposta no tópico em Suporte Tibia OTServer
    isso é pq a tabela não exite jájá eu coloco pra vc!
  12. L3K0T postou uma resposta no tópico em Suporte Tibia OTServer
    Alguém me ajuda, estou com um problema é que se alguém gera a RK 1 x ela pode gerar de novo e sem limite pode me ajudar preciso muito resolver esse problema eu sei mexer mais com Gesior sou novo na área de Modern AAC grato estou no aguardo! ? <?php class Account_model extends Model { function __construct() { parent::__construct(); $this->load->database(); } function check_login() { require("config.php"); $this->db->select('id, page_access, nickname'); $sql = $this->db->get_where('accounts', array('name' => $_POST['name'], 'password' => sha1($_POST['pass']))); $row = $sql->row_array(); if(!empty($row)) { $_SESSION['account_id'] = $row['id']; $_SESSION['access'] = $row['page_access']; $_SESSION['nickname'] = $row['nickname']; if($row['page_access'] >= $config['adminAccess']) $_SESSION['admin'] = 1; else $_SESSION['admin'] = 0; } return $sql->num_rows ? true : false; } function getRecoveryKey($name) { $this->db->select('key'); $sql = $this->db->get_where('accounts', array('name' => $name))->row_array(); return $sql['key']; } function generateKey($name) { $key = rand(1000,9999).'-'.rand(1000,9999).'-'.rand(1000,9999).'-'.rand(1000,9999); $save = sha1(str_replace("-", "", $key)); $this->db->update('accounts', array('key' => $save), array('name' => $name)); return $key; } public function getAccountID() { $this->db->select('id'); $sql = $this->db->get_where('accounts', array('name' => $_SESSION['name']))->row_array(); return (int)$sql['id']; } public function getCharacters() { $this->db->select('id, name, level'); return $this->db->get_where('players', array('account_id' => $_SESSION['account_id']), array('deleted' => 0))->result(); } public function checkPassword($pass) { $this->db->select('id'); return ($this->db->get_where('accounts', array('name' => $_SESSION['name'], 'password' => sha1($pass)))->num_rows) ? true : false; } public function changePassword($pass, $name) { $this->db->update('accounts', array('password' => sha1($pass)), array('name' => $name)); } public function isUserPlayer($id) { $this->db->select('id'); return ($this->db->get_where('players', array('account_id' => $_SESSION['account_id'], 'id' => $id))->num_rows) ? true : false; } public function getPlayerComment($id) { $this->db->select('comment, hide_char'); return $this->db->get_where('players', array('id' => $id))->result_array(); } public function changeComment($id, $comment, $hide = false) { $hide = $hide ? 1 : 0; $this->db->update('players', array('comment' => $comment, 'hide_char' => $hide), array('id' => $id)); } public function deletePlayer($id) { $this->db->update('players', array('deleted' => 1), array('id' => $id)); } public function nicknameExists($name) { $this->db->select('id'); return ($this->db->get_where('accounts', array('nickname' => $name))->num_rows) ? true : false; } public function emailExists($email) { $this->db->select('id'); return ($this->db->get_where('accounts', array('email' => $email))->num_rows) ? true : false; } public function setNickname($id, $nick) { $this->db->update('accounts', array('nickname' => $nick), array('id' => $id)); } public function checkKey($key, $email) { return ($this->db->get_where('accounts', array('key' => sha1($key), 'email' => $email))->num_rows) ? true : false; } public function recoveryAccount($key, $email, $password) { $this->db->update('accounts', array('password' => sha1($password)), array('key' => sha1($key), 'email' => $email)); } public function load($id) { $this->db->select('id, rlname, location, about_me, nickname'); return $this->db->get_where('accounts', array('id' => $id))->result_array(); } public function checkMessages() { $this->db->select('id'); return $this->db->get_where('messages', array('to' => $_SESSION['account_id'], 'unread' => 1, 'delete_to' => 0))->num_rows; } } ?>
  13. o meu da reload sim rsrs porem da bug nas vocações vou parar de usar ele pra evitar problemas futuros! vlws
  14. Seguinte, esta ocorrendo algo estranho.. criei um Druid, até ai tudo certo.. do nada, ele muda pra outra vocação! isso aconteceu com varios do ot.. alguem tem ideia doque possa ser? ja troquei o distro, até o OT eu ja troquei e ta dando o mesmo problema! Alguem me ajuda por favor!! quando do /reload vocations ou o server da save global as vocações muda ;(
  15. tentei ajudar! UP
  16. Desculpa de reviver o tópico, mas eu tive que agradecer msm, está de parabéns!
  17. sou novo na área de web site de modern aac e queria adc novas páginas eu preciso muito saber, eu aprendo rápido eu só preciso dos caminhos certos obrigado!
  18. vocação se for só pro server é no vocation.xml e se for pro site tbm ai vc tem que adc no mysql caso não for é só por no vocation.xml e configurar dentro do seu server boa sorte!
  19. ja volto fazia tempo!
  20. amigo entra em contato comigo que resolvo

Informação Importante

Confirmação de Termo