Solutions
-
luanluciano93's post in Bug no forum? was marked as the answerSão suas prévias? Foram pra lixeira! Quando postar para download atualize lá ao inves de ficar criando um tópico por dia para prévias.
E só para esclarecer, Noticias de Otserv são notícias voltadas a todos, e não de um ou outro, não é um anuncie particular.
-
luanluciano93's post in (Resolvido)Protecção do meu site, como fazer? was marked as the answerEntre em system/load.compat.php ... procure essa parte:
if(Website::fileExists("pages/" . $_REQUEST['subtopic'] . ".php")) { $subtopic = $_REQUEST['subtopic']; } else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); } Mude isso:
else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); Para isso:
else { header('Location: ?subtopic=error'); } E pronto, basta criar em pages/ um arquivo com o nome error.php e coloca o que tu quiser dentro, lembrando que é um arquivo php.
-
luanluciano93's post in (Resolvido)[GESIOR] Site inicia com abas laterais abertas. was marked as the answerverifica no index
-
luanluciano93's post in (Resolvido)PEDIDO tibia 8.54 was marked as the answer<talkaction words="!comando" event="script" value="teste.lua"/> function onSay(cid, words, param) if(getPlayerItemCount(cid, 2223) > 0) then doPlayerRemoveItem(cid, 2223, 1) doPlayerAddItem(cid, 3445, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Troca feita com sucesso.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce nao tem o item necessario.") end return true end
-
luanluciano93's post in (Resolvido)[Ajuda] Como editar o Featured Article was marked as the answerÉ no arquivo latestnews.php ... caso tenha dúvidas poste aqui.
-
luanluciano93's post in (Resolvido)Erro Ao Criar Conta Gesior was marked as the answerExiste esses arquivos no seu site?
• ajax/check_account.php
• ajax/check_email.php
???
-
luanluciano93's post in (Resolvido)Mudar vocações do site was marked as the answerÉ só mudar no config/config.php.
-
luanluciano93's post in (Resolvido)[duvida] VIP by mock com GESIOR! was marked as the answerveja se o gesior esta configurado com a offer_type=vip, se tiver é só add uma oferta ao shop com essa offer_type, e quando comprar o site irá add os dias na coluna vip_time na database.
-
luanluciano93's post in (Resolvido)Ajuda, erro na hora de executar servidor no linux 12.0 was marked as the answerVocê precisa de um servidor mysql ligado na máquina, o erro é referente a não estar ligado o mysql.
-
luanluciano93's post in (Resolvido)[Dúvida] Como Arrumar was marked as the answerNa tag você esta setando onThink e no script não tem nenhum ..
-
luanluciano93's post in (Resolvido)[Erro] Script de item was marked as the answerTenta assim:
function onUse(cid, item, fromPosition, item2, toPosition) if isPlayer(cid) then doSummonCreature("Salamence", getCreaturePosition(cid)) doSummonCreature("Tropius", getCreaturePosition(cid)) doSummonCreature("Metagross", getCreaturePosition(cid)) doSummonCreature("Aggron", getCreaturePosition(cid)) doSummonCreature("Lucario", getCreaturePosition(cid)) doSendMagicEffect(getCreaturePosition(cid), 29) doRemoveItem(item.uid, 1) doCreatureSay(cid,"Cuidado! Pokemons Muito Perigosos apareceram do Nada OMG.", TALKTYPE_ORANGE_1) end return true end -
luanluciano93's post in (Resolvido)[Error] Install.php was marked as the answerResolvido.
-
luanluciano93's post in (Resolvido)[Pedido] Entrada de Promoções, para ModernAcc was marked as the answernão tem o código ai, e também não é ai e sim no layout que tem que add.
-
luanluciano93's post in (Resolvido)[Dúvida] Como Editar Essa Page No Modern AAC was marked as the answerResolvido.
-
luanluciano93's post in (Resolvido)Noticia do forum (ipboard) no seu site. AJUDEMMM! PLZZ! was marked as the answer<link rel="stylesheet" type="text/css" href="./content.css"> <?php echo '<div class="boxBody"> <div id="homeNews"> <span class="ntype t-new"></span> <img src="icon.fw.png" alt=""> <span class="title"> <td> <a href="'.$url.'index.php?/topic/'.$tid.'-'.$titleseo.'" target="_self" class="link-news">'.$title.'</a></td></span> <span class="date"> <td><span>'.substr( $data , 0 , 5 ).'</span></td> </span> </div> <a href="http://" class="iconLink" style="opacity: 0.8;">Ver noticias anteriores</a> </div> '; ?>
-
luanluciano93's post in (Resolvido)[Ajuda] Gesior Error was marked as the answerExecute esse comando na sua database:
ALTER TABLE `bans` ADD `reason` INT UNSIGNED NOT NULL DEFAULT '0'; -
luanluciano93's post in (Resolvido)[AJUDA] Desativar o envio de itens para outro player was marked as the answerDessas 5 linhas:
</form><br /><form action="index.php?subtopic=shopguild&action=confirm_transaction" method=POST><input type="hidden" name="buy_id" value="'.$buy_id.'"> <table border="0" cellpadding="1" cellspacing="1" width="650"> <tr bgcolor="#505050"><td colspan="2"><font color="white" size="4"><b>Give item to other player</b></font></td></tr> <tr bgcolor="#D4C0A1"><td width="110"><b>To player:</b></td><td width="550"><input type="text" name="buy_name"> - name of the player who should get item</td></tr> <tr bgcolor="#F1E0C6"><td width="110"><b>From:</b></td><td width="550"><input type="text" name="buy_from"> <input type="submit" value="Give"> - your nick, \'empty\' = Anonymous</td></tr> </table><br /></form>'; Deixe assim:
</form>'; Dúvidas poste aqui, abraços.
-
luanluciano93's post in (Resolvido)Retirando Vip Status do gesior was marked as the answerResolvido!
-
luanluciano93's post in (Resolvido)[PEDIDO] Ganhar trofeu por quantidade de frags was marked as the answerScript Atualizado:
local reward = { BRONZE = 10127, PRATA = 10128, OURO = 10129, } function onKill(cid, target, lastHit) if isPlayer(target) then if getPlayerFrags(cid) == 50 then doPlayerAddItem(cid, reward.BRONZE, 1) elseif getPlayerFrags(cid) == 100 then doPlayerAddItem(cid, reward.PRATA, 1) elseif getPlayerFrags(cid) == 200 then doPlayerAddItem(cid, reward.OURO, 1) end end return true end -
luanluciano93's post in (Resolvido)Proibir de Usar was marked as the answer@xWhiteWolf, no script de advance tem essa função doRegainSpeed(cid), acho que é isso, é só ele retirar esa linha:
doRegainSpeed(cid) -
luanluciano93's post in (Resolvido)BUG Bike speed was marked as the answerlocal config = { velocidadeDaSuaBike = 1000, -- A volocidade da bike (1-9) outfitMale = 1787, -- Outfit male outfitFemale = 1618, -- Outfit female storageValue = 5602, -- Storage Para a bike } function onUse(cid, item, itemEx, fromPosition, toPosition) if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end if getPlayerStorageValue(cid, config.storageValue) <= 0 then local a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} local b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."") doSendMagicEffect(getThingPos(cid), 18) doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, config.velocidadeDaSuaBike) setPlayerStorageValue(cid, config.storageValue, 1) if getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, b, -1) else doSetCreatureOutfit(cid, a, -1) end else setPlayerStorageValue(cid, config.storageValue, 0) doSendMagicEffect(getThingPos(cid), 18) doRemoveCondition(cid, CONDITION_OUTFIT) doRegainSpeed(cid) end return true end
-
luanluciano93's post in (Resolvido)[Pedido][Evento] Loteria um pouco diferente. was marked as the answer-- ARBALEST - 10% -- CRYSTAL COIN - 30% -- BOW - 60% function onUse(cid, item, frompos, item2, topos) local ID_BOW = 4444 local ID_CRYSTALCOIN = 2160 local ID_ARBALEST = 4444 local RAND = math.random(1,10) if RAND >= 1 and RAND <= 6 then doPlayerSendTextMessage(cid, 25, "Voce recebeu um bow.") doPlayerAddItem(cid, ID_BOW, 1) elseif RAND >= 7 and RAND <= 9 then local CC = math.random(1,5) doPlayerSendTextMessage(cid, 25, "Voce recebeu "..CC.." crystal coin(s).") doPlayerAddItem(cid, ID_CRYSTALCOIN, CC) elseif RAND == 10 then doBroadcastMessage("O player "..getCreatureName(cid)..".. ganhou um arbalest.", 22) doPlayerAddItem(cid, ID_ARBALEST, 1) end doSendMagicEffect(frompos, 12) doPlayerRemoveItem(cid, item.itemid, 1) return true end
-
luanluciano93's post in (Resolvido)Clone System was marked as the answerPrimeiramente você precisa add essa função em sua source: setCreatureName
function onCastSpell(cid, var) local cloth = getCreatureOutfit(cid) local health = getCreatureHealth(cid) local maxhealth = getCreatureMaxHealth(cid) local MaximoSummon = 2 local summons = getCreatureSummons(cid) if(table.maxn(summons) < MaximoSummon) then local pos = getPlayerPosition(cid) local bpos = {x=pos.x+2, y = pos.y, z = pos.z} local farAwayPos = {x = 2061, y = 2056, z = 7} local Teste = doCreateMonster("Teste", farAwayPos) doConvinceCreature(cid, Teste) setCreatureMaxHealth(Teste, maxhealth) doCreatureAddHealth(Teste, health) doSetCreatureOutfit(Teste, cloth, -1) setCreatureName(Teste, "".. getCreatureName(cid) .."", "a ".. getCreatureName(cid) .."") addEvent(doSendMagicEffect, 300, pos, 2) addEvent(doTeleportThing, 300, Teste, pos) return true end end Arruma o nome do monster que servirá de base: doCreateMonster("Teste", farAwayPos)
-
luanluciano93's post in (Resolvido)Nome do sumon igual do jogador (setCreatureName) was marked as the answerhttp://www.tibiaking.com/forum/topic/38559-fun%C3%A7%C3%A3o-setcreaturenamecid-name-description/
-
luanluciano93's post in (Resolvido)[Erro] Gesior com vários error. was marked as the answerTente essa:
https://github.com/Falacchi/Gesior-TibiaKing/blob/master/pages/createaccount.php