Ir para conteúdo

manojl

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Obrigado
    manojl deu reputação a Marvok em Teleport por Talkaction   
    @manojl
     
    Acredito que você está dificultando muito o trabalho teste isso aqui.
     
     
    function onSay(cid, words, param, channel)
    if(param == '') then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
    return true
    end
    local target = getPlayerByNameWildcard(param)
    if(not target) then
    target = getCreatureByName(param)
    if(not target) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
    return true
    end
    end
    if(isPlayerGhost(target) and getPlayerGhostAccess(target) > getPlayerGhostAccess(cid)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
    return true
    end
    local pos = getClosestFreeTile(target, getCreaturePosition(cid), false, false)
    if(not pos or isInArray({pos.x, pos.y}, 0)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot perform action.")
    return true
    end
    local tmp = getCreaturePosition(target)
    if(doTeleportThing(target, pos, true) and not isPlayerGhost(target)) then
    doSendMagicEffect(tmp, CONST_ME_POFF)
    doSendMagicEffect(pos, CONST_ME_TELEPORT)
    end
    return true
    end
     
    para você usar faça: /comando (nome do jogador).
     
    acredito que isso já esteja até inserido no seu ot maaaas, tá aí.
  2. Curtir
    manojl deu reputação a Hokograma em Shop System otPokémon AMV Modern AAC   
    vá em C:\xampp\htdocs\ShopSystem\config, e substitua o config.php por esse, só nao esquece de por as info da sua database ai
     
    <?php /*Database information*/ $config['database']['host'] = "localhost"; $config['database']['login'] = "root"; $config['database']['password'] = "suasenha"; $config['database']['database'] = "suadatabase"; $config['donations']['methods'] = array('ContenidoPago' => true, 'PayPal' => true); $config['donations']['paypal'] = array('Mail' => '', 'Points' => 6, 'Product' => 'Donation for VipHera', 'Money' => 'EUR', 'Amount' => 1); $config['donations']['contenidopago'] = array('Product' => '1347', 'Points' => 4); ?>  
    vá em C:\xampp\htdocs\ShopSystem\config, substituia o functions.php por 
    <?php class shop { function connect() { $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); return $ots->getDBHandle(); } function isInstalled() { require('config.php'); $con = mysqli_connect($config['database']['host'], $config['database']['login'], $config['database']['password'], $config['database']['database']); if(mysqli_query($con, "SELECT * FROM shop_offer,shop_history")) return true; else return false; } function points($account) { $SQL = $this->connect(); $points = $SQL->query('SELECT premium_points FROM accounts WHERE name = "'.$account.'"')->fetch(); return $points['premium_points']; } function getPlayerAccount($name) { $SQL = $this->connect(); $player = $SQL->query('SELECT account_id FROM players WHERE name = "'.$name.'"')->fetch(); return $SQL->query('SELECT * from accounts WHERE id = '.$player['account_id'].''); } function AddPremium($name,$days) { $SQL = $this->connect(); $account = $this->getPlayerAccount($name)->fetch(); return $SQL->query('UPDATE accounts SET premdays = (premdays + '.$days.') WHERE name = "'.$account['name'].'"'); } function CharacterList($account) { $SQL = $this->connect(); $id = $SQL->query('SELECT id FROM accounts WHERE name = "'.$account.'"')->fetch(); return $SQL->query('SELECT * FROM players WHERE account_id = '.$id['id'].''); } function isOnline($name) { $SQL = $this->connect(); $player = $SQL->query('SELECT online FROM players WHERE name = "'.$name.'"')->fetch(); return $player['online']; } function isBanned($name) { $SQL = $this->connect(); $ID = $this->getPlayerAccount($name)->fetch(); return $SQL->query('SELECT * FROM bans WHERE value = '.$ID['id'].''); } function UnBan($name) { $SQL = $this->connect(); $ID = $this->getPlayerAccount($name)->fetch(); return $SQL->query('DELETE FROM bans WHERE value = '.$ID['id'].''); } function execute_file($file) { if (!file_exists($file)) { $this->last_error = "The file $file does not exist."; return false; } $str = file_get_contents($file); if (!$str) { $this->last_error = "Unable to read the contents of $file."; return false; } // split all the queries into an array $quote = ''; $line = ''; $sql = array(); $ignoreNextChar = ''; for ($i = 0; $i < strlen($str); $i++) { if ( !$ignoreNextChar ) { $char = substr($str, $i, 1); $line .= $char; if ($char == ';' && $quote == '') { $sql[] = $line; $line = ''; } else if ( $char == '\\' ) { // Escape char; ignore the next char in the string $ignoreNextChar = TRUE; } else if ($char == '"' || $char == "'" || $char == '`') { if ( $quote == '' ) // Start of a new quoted string; ends with same quote char $quote = $char; else if ( $char == $quote ) // Current char matches quote char; quoted string ends $quote = ''; } } else $ignoreNextChar = FALSE; } if ($quote != '') return false; foreach ($sql as $query) { if (!empty($query)) { $r = mysql_query($query); if (!$r) { $this->last_error = mysql_error(); return false; } } } return true; } function install() { $SQL = $this->connect(); if ($this->isInstalled()) return false; else return $this->execute_file("Shop System/config/Shop.sql"); } } ?>  
    vá em http://localhost/phpmyadmin/ 
    acesse sua database, vá na coluna de de accounts e procure por page_acess, e coloque o numero 5 na sua conta de admin, quando tu logar com ela no site vai poder editar os itens, abraço!
    @Alexy Brocanello  eu to com problemas na hora de add pontos em qualquer char, pois eles simplesmente não vao (nao apresenta nenhum tipo de erro, eles simplesmente falam "velho eu nao vou,fds) , no caso o shop fica invalidado sem a moeda pra poder comercializar nele, sabe resolver? 
     
    PS: Belo design parabens
     
     
     
     
    Edit:acabei encontrando o erro, só nao entendi muito bem kk..
    creio eu que foi um conflito de botoes ou algo do tipo, depois vou ver bem certo nos arquivos
    mas basicamente se tu clicar em "add points" nada acontece, mas se clicar ali naquele minibotao meio quebrado ali, ele funciona tranquilo.. 
     

  3. Gostei
    manojl deu reputação a Cerberus em RME [ERROR] Failed to Load House - Failed to Load Spawn   
    pode ser 2 coisas ou os arquivos estao bugados ou o mapa ta salvo com outro nome...
     
    vamos ver segunda opção
     
    Vai lem cima em Map > propries > e olha o nome dos arquivos Spawn e House do seu mapa se bate com o que esta na pasta...
     
    e o primeiro tenta Trocar o Arquivo so para testa se abre.....
     
    ou se quiser manda o arquivo spawn e house q tento ver aqui.
  4. Gostei
    manojl deu reputação a MaXwEllDeN em (Resolvido)[Script] Npc Teleport   
    local DESTINO = {x = 160, y = 54, z = 7} -- POSIÇÃO DE DESTINO   local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)   function onCreatureAppear(cid)         npcHandler:onCreatureAppear(cid)         end function onCreatureDisappear(cid)      npcHandler:onCreatureDisappear(cid)         end function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg:lower())   end function onThink()                  npcHandler:onThink()                  end local talkState = {}   function creatureSayCallback(cid, type, msg)    if(not npcHandler:isFocused(cid)) then       return false    end      local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid      if msgcontains(msg, "sim") or msgcontains(msg, "yes") then       selfSay("Aí está!", cid)       doSendMagicEffect(getThingPos(cid), 10)       npcHandler:releaseFocus(cid)       doTeleportThing(cid, DESTINO)       doSendMagicEffect(DESTINO, 10)    end      return true end     npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())  
     

    <?xml version="1.0" encoding="UTF-8"?> <npc name="Bob" script="Bob.lua" walkinterval="2000">   <health now="100" max="100" />   <look type="131" head="58" body="43" legs="38" feet="76" addons="0" />   <parameters>     <parameter key="message_greet" value="Ola |PLAYERNAME|  voce deseja fazer o guia iniciante?" />     <parameter key="message_farewell" value="So I am alone again." />     <parameter key="message_walkaway" value="So I am alone again." />   </parameters> </npc>
  5. Gostei
    manojl deu reputação a MaXwEllDeN em (Resolvido)[Script] Npc Teleport   
    local DESTINO = {x = 160, y = 54, z = 7} -- POSIÇÃO DE DESTINO local SAFFRON = {x = 160, y = 54, z = 7} -- POSIÇÃO DE Saffron   local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)   function onCreatureAppear(cid)         npcHandler:onCreatureAppear(cid)         end function onCreatureDisappear(cid)      npcHandler:onCreatureDisappear(cid)         end function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg:lower())   end function onThink()                  npcHandler:onThink()                  end local talkState = {}   function creatureSayCallback(cid, type, msg)    if(not npcHandler:isFocused(cid)) then       return false    end      local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid      if msgcontains(msg, "sim") or msgcontains(msg, "yes") then       selfSay("Aí está!", cid)       doSendMagicEffect(getThingPos(cid), 10)       npcHandler:releaseFocus(cid)       doTeleportThing(cid, DESTINO)       doSendMagicEffect(DESTINO, 10)    elseif msgcontains(msg, "nao") or msgcontains(msg, "no") then       selfSay("Aí está!", cid)       doSendMagicEffect(getThingPos(cid), 10)       npcHandler:releaseFocus(cid)       doTeleportThing(cid, SAFFRON)       doSendMagicEffect(SAFFRON, 10)    end      return true end     npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Amigo, aprenda a usar vírgulas. Por causa da falta delas não entendi bem o que você queria.

Informação Importante

Confirmação de Termo