Ir para conteúdo

Babiloniaoz

Membro
  • Registro em

  • Última visita

Tudo que Babiloniaoz postou

  1. Alguém pode me ajudar a adaptar esse sistemas para tfs 3777 estou esses erros a cima e mais alguns .
  2. Boa galera to com um erro preciso de ajuda. TFS 0.4 Este erro código function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid == caveExclusiva.config.buyItemID then if getPlayerStorageValue(cid, caveExclusiva.storages.cave) > 0 then local caveName = caveExclusiva.caves[getPlayerStorageValue(cid, caveExclusiva.storages.cave)].caveName local timeLeft = getPlayerStorageValue(cid, caveExclusiva.storages.time) - os.time() doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você já é dono da cave de ".. caveName ..", aguarde ".. getTimeString(timeLeft) .." para comprar uma cave novamente.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) elseif getGlobalStorageValue(caveExclusiva.caves[itemEx.aid].gStor) > 1 then local ownerGUID = getGlobalStorageValue(caveExclusiva.caves[itemEx.aid].gStor) local ownerTimeLeft = nil if isPlayerOnline(getPlayerNameByGUID(ownerGUID)) then ownerTimeLeft = getPlayerStorageValue(getPlayerByGUID(ownerGUID), caveExclusiva.storages.time) - os.time() else ownerTimeLeft = getOfflinePlayerStorage(ownerGUID, caveExclusiva.storages.time) - os.time() end doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "Esta cave já pertence ao player ".. getPlayerNameByGUID(ownerGUID) ..", restam ".. getTimeString(ownerTimeLeft) .." para a cave estar livre novamente.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) else caveExclusiva.setCaveTo(cid, itemEx.aid) doSendMagicEffect(getThingPos(cid), CONST_ME_FIREWORK_BLUE) doRemoveItem(item.uid) end end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. Boa pessoal alguém pode me ajudar Resolver esse erro Script function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid == caveExclusiva.config.buyItemID then if getPlayerStorageValue(cid, caveExclusiva.storages.cave) > 0 then local caveName = caveExclusiva.caves[getPlayerStorageValue(cid, caveExclusiva.storages.cave)].caveName local timeLeft = getPlayerStorageValue(cid, caveExclusiva.storages.time) - os.time() doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você já é dono da cave de ".. caveName ..", aguarde ".. getTimeString(timeLeft) .." para comprar uma cave novamente.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) elseif getGlobalStorageValue(caveExclusiva.caves[itemEx.aid].gStor) > 1 then local ownerGUID = getGlobalStorageValue(caveExclusiva.caves[itemEx.aid].gStor) local ownerTimeLeft = nil if isPlayerOnline(getPlayerNameByGUID(ownerGUID)) then ownerTimeLeft = getPlayerStorageValue(getPlayerByGUID(ownerGUID), caveExclusiva.storages.time) - os.time() else ownerTimeLeft = getOfflinePlayerStorage(ownerGUID, caveExclusiva.storages.time) - os.time() end doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "Esta cave já pertence ao player ".. getPlayerNameByGUID(ownerGUID) ..", restam ".. getTimeString(ownerTimeLeft) .." para a cave estar livre novamente.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) else caveExclusiva.setCaveTo(cid, itemEx.aid) doSendMagicEffect(getThingPos(cid), CONST_ME_FIREWORK_BLUE) doRemoveItem(item.uid) end end return true end
  3. Boa Galera alguém pode me ajudar com um erro por favor. erro: Script:
  4. Boa Amigo estou com um erro quando tento comprar a cave pode me ajudar por favor? [4:44:08.914] [Error - Action Interface] [4:44:08.917] data/actions/scripts/other/cave_action.lua:onUse [4:44:08.921] Description: [4:44:08.923] data/actions/scripts/other/cave_action.lua:8: attempt to index fie ld '?' (a nil value) [4:44:08.929] stack traceback: [4:44:08.931] data/actions/scripts/other/cave_action.lua:8: in function <data/ actions/scripts/other/cave_action.lua:1> Boa Galera Alguém poderia me ajudar com esse erro: Script: Agradeço atenção quem puder ajudar. Boa Galera Alguém poderia me ajudar com esse erro: Script: Agradeço atenção quem puder ajudar.
  5. @Belmont Obrigado parceiro, ficou bem melhor mesmo. To fora de forma vou melhorar kkk.
  6. Boa galera, voltei com um projeto TFS 0.4 e percebi que quando a vip do player acabava ele não perdia a promotion. Acabei solucionando e vim compartilhar com a comunidade. OBS: Uso sistema de VIP por Account (Premium Account). Exemplo: O Epic Elite Knight ficava com a promotion mesmo sendo free, com este sistema, quando a VIP acabar, o player vai voltar para Elite Knight. Vá na pasta data/creaturescripts/scripts e abre o arquivo login.lua Em baixo de: Adicione: Explicação do código: Se ajudei deixe seu REP+ Breve mais informações sobre o novo projeto. ? Se precisar de ajuda é só deixar seu coméntario.
  7. Boa amigo eu ja estou usando esses códigos. o erro é na 322 no actions.lua
  8. Boa galera estou com um erro em actions.lua do meu servidor tfs 1.3 preciso de ajuda não consegui resolver esse erro. action.lua Erro: Lua Script Error: [Action Interface] data/actions/scripts/tools/shovel.lua:onUse data/actions/lib/actions.lua:322: attempt to index local 'player' (a nil value) stack traceback: [C]: in function '__index' data/actions/lib/actions.lua:322: in function <data/actions/lib/actions. lua:219> Alguém me da essa força tem meu like vlw.
  9. Boa Amigo obrigado pela atenção mas não resolveu o erro n problema ta somente na pagina guild.php guilds.php
  10. Estou com um erro quando tento abrir a pagina de guilds no gesior. atualizado uso TFS 1.3 Erro A baixo Codigo databaselist.php <?php if(!defined('INITIALIZED')) exit; class DatabaseList extends DatabaseHandler implements Iterator, Countable { public $data; public $iterator = 0; public $class; public $table; public $tables = array(); public $fields = array(); public $extraFields = array(); public $filter; public $orders = array(); public $limit; public $offset = 0; public function __construct($class = null) { if($class !== null) $this->setClass($class); } public function load() { $fieldsArray = array(); if(count($this->fields) > 0) foreach($this->fields as $fieldName) $fieldsArray[$fieldName] = $this->getDatabaseHandler()->tableName($this->table) . '.' . $this->getDatabaseHandler()->fieldName($fieldName); if(count($this->extraFields) > 0) foreach($this->extraFields as $field) if(!$field->hasAlias()) $fieldsArray[] = $this->getDatabaseHandler()->tableName($field->getTable()) . '.' . $this->getDatabaseHandler()->fieldName($field->getName()); else $fieldsArray[] = $this->getDatabaseHandler()->tableName($field->getTable()) . '.' . $this->getDatabaseHandler()->fieldName($field->getName()) . ' AS ' . $this->getDatabaseHandler()->fieldName($field->getAlias()); $tables = array(); foreach($this->tables as $table) $tables[] = $this->getDatabaseHandler()->tableName($table); $filter = ''; if($this->filter !== null) $filter = ' WHERE ' .$this->filter->__toString(); $order = ''; $orders = array(); if(count($this->orders) > 0) { foreach($this->orders as $_tmp_order) $orders[] = $_tmp_order->__toString(); if(count($orders) > 0) $order = ' ORDER BY ' . implode(', ', $orders); } $limit = ''; if($this->limit !== null) $limit = ' LIMIT ' . (int) $this->limit; $offset = ''; if($this->offset > 0) $offset = ' OFFSET ' . (int) $this->offset; $query = 'SELECT ' . implode(', ', $fieldsArray) . ' FROM ' . implode(', ', $tables) . $filter . $order . $limit . $offset; $this->data = $this->getDatabaseHandler()->query($query)->fetchAll(); } public function getResult($id) { if(!isset($this->data)) $this->load(); if(isset($this->data[$id])) { if(!is_object($this->data[$id])) { $reflect = new ReflectionClass($this->class); $_tmp = $reflect->newInstanceArgs(array()); $_tmp->loadData($this->data[$id]); return $_tmp; } else return $this->data[$id]; } else return false; } public function addExtraField($field) { $this->extraFields[] = $field; $this->addTables($field->getTable()); } public function addOrder($order) { $this->orders[] = $order; } public function setClass($class) { $this->class = $class; $instance = new ReflectionClass($this->class); $properties = $instance->getStaticProperties(); $this->fields = $properties['fields']; if(isset($properties['extraFields'])) { $extraFields = $properties['extraFields']; if(isset($extraFields)) foreach($extraFields as $extraField) { if(!isset($extraField[2])) $this->extraFields[] = new SQL_Field($extraField[0], $extraField[1]); else $this->extraFields[] = new SQL_Field($extraField[0], $extraField[1], $extraField[2]); $this->tables[$extraField[1]] = $extraField[1]; } } $this->table = $properties['table']; $this->tables[$this->table] = $this->table; } public function setFilter($filter) { $this->addTables($filter->getTables()); $this->filter = $filter; } public function setLimit($limit) { $this->limit = $limit; } public function setOffset($offset) { $this->offset = $offset; } public function addTables($tables) { if(is_array($tables)) { foreach($tables as $table) if($table != '' && !in_array($table, $this->tables)) $this->tables[$table] = $table; } elseif($tables != '' && !in_array($tables, $this->tables)) $this->tables[$tables] = $tables; } public function current() { return $this->getResult($this->iterator); } public function rewind() { if(!isset($this->data)) $this->load(); $this->iterator = 0; } public function next() { ++$this->iterator; } public function key() { return $this->iterator; } public function valid() { return isset($this->data[$this->iterator]); } public function count() { if(!isset($this->data)) $this->load(); return count($this->data); } } Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  11. BOA galera Resolvido. Foi só reconfigurar a SRC Obrigado pela atenção.
  12. Beleza galera to precisando de ajuda com minha SRC. Ela não esta aceitando uso de cliente Custom fique online no servidor. Quando player usa movimento pela setas ou usa magia varias vezes ele é kikado. E fica seguinte mensagem no Executável do servidor Se alguém puder me ajudar e dizer como posso fazer essa alteração na SRC Agradeço muito. Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  13. Testei aqui em TFS 0.4 e Não conto os monstros não deu nem um erro na distro somente não conta os monstros que os player mata assim não podendo receber a recompensa alguma sugestão ? Onde verifico se a storage ja esta sendo usada ?

Informação Importante

Confirmação de Termo