
Tudo que lucasprimolemos postou
-
[DUVIDA] DATABASE
Opa, cara eu tivesse durante maior tempo esse problema, sempre dava erro na hora de importar o que eu mesmo exportava... acabei de tentar aqui na hora de exportar, tirar o assinalado do auto_increment, o resto deixa como ta. Exportei, importei, funcionou! :D Pena que faz tempo que vc enviou a msg
-
[8.6] Task System 4.0! (Task system + Daily Task System)
Copiei e fiz exatamente o que diz, porém não está funcionando o contato, teste /task counter tb só ativa e desativa, mas em /task nao ta contando não (to na do troll) agora deu hahahahaha uuhuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
-
RME Não salva, fica 99% e trava
O que fiz foi ao carregar o mapa, cliquei Yes para a pergunta de arrumar os Tiles...funcionou. Tópico resolvido.
-
[Wand] Muda de efeito
<talkaction words="!wand" event="script" value="wand.lua"/> agora em data/weapons/scripts crie um arquivo e renomeie para wand1.lua e adicione isso dentro: <wand id="xxx" level="50" mana="13" min="0" max="0" type="earth" event="script" value="wand1.lua"> <!-- wand of effects --> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> em items.xml <item id="xxx" article="the" name="nome da sua wand"> <attribute key="description" value="Você pode mudar o elemento da wand digitando !wand elemento desejado." /> <attribute key="weight" value="2300" /> <attribute key="weaponType" value="wand" /> <attribute key="shootType" value="holy" /> <attribute key="range" value="8" /> em data/creaturescripts/scripts login.lua antes do ultimo return true adicione essa linha: if getPlayerStorageValue(cid, 12036) == -1 then setPlayerStorageValue(cid, 12036, 1) end PS : Testado, e funcionando PS2 : Podem postar em outros fórums se colocarem créditos PS3 : Tem que ser o mesmo id em items.xml talkactions.xml e weapons.xml Conteúdo Oculto em weapons.xml Super legal, porém após seu PS, PS2 e PS3 o ultimo código vc nao colocou onde insere.... não funciona se só jogar isso dentro do weapons.xml. Vc ou alguém pode explocar?
-
Destroy field apagando Wild Growth
Então eu até tinha percebido que não estava ali no ID dos UNREMOVABLES No caso, testei com o id 1499 e não funcionou, continua o destroy field removendo o rush wood (wild growth rune) Pesquisei nas actions tb, testei algumas coisas, não resolveu, ai voltei tudo no padrão. Mantive o código que vc passou do destroy field.
-
(Resolvido)Pally não ataca usando GSP
Acabei conseguindo Resolver! Era só adicionar no Weapons.xml em todas armas que começam com <distance> antes de "event' o código swing="true" Ai as que persistiam parando de atacar usando GSP, eu percebi que não estavam no weapons.xml, e adicionei o ID delas lá também! Obrigado!!! Tópico Resolvido
-
(Resolvido)Pally não ataca usando GSP
Preciso que o paladin/rp/vip rp ataque usando GSP Como faz? Ja procurei tutoriais nenhum resolveu. Verão 8.60
-
Destroy field apagando Wild Growth
Olá a versão do ot é 8.60, Ja testei inumeros códigos no WIld growth e não funcionou. No Destroy field nao ta o id da wild growth. A destroy field rune ta apagando a wild growth. Alguém pode me ajudar? códigos WildGrowth local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1499) function onCastSpell(cid, var) return doCombat(cid, combat, var) end DestroyField UNREMOVABLE_FIELDS = {1505, 1506, 1507, 1508, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 11094, 11095} local function doRemoveField(cid, pos) local field = getTileItemByType(pos, ITEM_TYPE_MAGICFIELD) if(not isInArray(UNREMOVABLE_FIELDS, field.itemid)) then doRemoveItem(field.uid) doSendMagicEffect(pos, CONST_ME_POFF) return true end doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return false end function onCastSpell(cid, var) local pos = variantToPosition(var) if(pos.x == CONTAINER_POSITION) then pos = getThingPos(cid) end if(pos.x ~= 0 and pos.y ~= 0) then return doRemoveField(cid, pos) end doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return false end
-
Erro Distro depois de um tempo no dedicado
Olá estou com um problema, não sei se é devido ao Windows Server 2008 R2. O ot carrega sem erros distro, tudo funciona perfeitamente, mas ai do nada da um erro, ultima vez foi isso Imagem do erro Alguém tem conhecimento do que pode ter acontecido?
-
RME Não salva, fica 99% e trava
Bom, procurei mais de 50 tutoriais diferentes, todos sobre outros erros, exclusao de arquivos, métodos, técnicas, enfim. Nada me ajudou a resolver o meu problema. Meu RME funciona perfeitamente, o problema está na hora de salvar, quando eu salvo ele fica 99% e para "Não respondendo' Imagem do RME No fim ele até salva, porém com menos peso e corrompido, ou seja, não finaliza o save. Já até tentei usar SimOne Map Editor, mas lá não consigo colocar os NPC. Enfim, espero que uma alma boa possa me ajudar, hahaha obrigado desde já!
-
Anti DDoS Kiwi Guard
Clica nele no cantinho pra ele aparece na tela, da File shutdown, pra fechar, e executa como administrador.
-
Vip Days Lua Insert SQL
@Dwarfer não consegui, vou te passar o código será que pode me ajudar? Pode ser de outro jeito por storage, pois não sei muito bem ainda mexer com storage, mas sei que funciona. Objetivo: O cara se cadastra, ao logar, ganha 2 vip days...se ele logar denovo e ja tiver vip days, não ganha mais e se ele já tiver ganho esses vip days, também não ganha mais, mesmo que os vip days acabem. function onLogin(cid) if isVip(cid) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ja tem Vip!") end if isVip(cid) == FALSE then local storage,days = (getPlayerAccountId(cid)+550),2 if getGlobalStorageValue(storage) <= 0 then setGlobalStorageValue(storage, 13500) addVipDays(cid, days) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce recebeu "..days.." dias de VIP, bom jogo!") end end return TRUE end
-
Vip Days Lua Insert SQL
Olá, Tenho um Script que adiciona dias vip quando o personagem loga. Se ele loga denovo e tiver com Vip nao adiciona mais. Porém se acabar a vip, adiciona. Então criei no banco de dados > Accounts > uma coluna XXXX INT (2) para colocar 0 ou 1. Se ele ja ganhou esses dias vip fica 1, e se ele ainda nao ganho é 0. Queria saber se no Script Lua, consigo colocar no isVip False, um comando para adicioanr o valor 1 na minha tabela accounts, na coluna XXXX. function onLogin(cid) if isVip(cid) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ja tem Vip!") end if isVip(cid) == FALSE then local storage,days = (getPlayerAccountId(cid)+550),2 if getGlobalStorageValue(storage) <= 0 then setGlobalStorageValue(storage, 13500) addVipDays(cid, days) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce recebeu "..days.." dias de VIP, bom jogo!") end end return TRUE end Fico no aguardo, esperançoso. Obrigado
-
[AJUDA] MEDIDAS DE SEGURANÇA 2017
Olá a todos, apesar de existirem alguns tutoriais de segurança, são de muitos anos atrás. Então resolvi criar esse tópico para auxiliar aos Admins de OTServer a tomar medidas de segurança para Windows Server. Sugestões para quem for ajudar. • Incluir SQLInjection • Todas medidas de segurança possíveis dentro do xampp • Bloquear acesso externo do PhpMyAdmin e apenas permitir acesso interno (já tentei diversas maneiras, ou bloqueava tudo ou nao bloqueava nada :P) • Adicionais, MUITO OBRIGADO!!!!!!!!!!!!!!!!!!!
-
Ajuda para Criar Cliente Próprio [2017]
Olá a todos, pesquisei durante 3 dias como criar um cliente próprio sem sucesso. Segui o tutorial do Admin e outros tutoriais mas não deu certo. Também pelo OT painel, colocando meu IP não gerou o Tibia Cliente. Gostaria de saber se alguém pode me ajudar a criar meu Client próprio tibia 8.60 para o OT AtrixBR Se for personalizado melhor ainda, senão pode ser padrão. Obrigado desde já!
-
MEU GOD TA COMO PLAYER
É então, eu tava com esse problema, pq no rank tinha aparecido mas não ta mais aparecendo. Ai no lottery system tb os god tava ganhando premio, mas achei um script que separa por group_id < 2 Só falta testar agora rsrs acho q de resto está ok
-
Script Player Ganhar Vip por 2 dias
Também estou com esse problema. Sempre que reinicia o Server, a pessoa ganha +2 dias, não tem no código algo que perceba que ele ja ganhou isso e barre de ganhar mais
-
ERRO APÓS COMPRAR ITEM SHOP SYSTEM
Olha, eu coloquei isso no começo do index antes de qualquer coisa, ai fui testar o Shopitem funcionou... O_O Vai entender?! kkkkkkkkkkkkkkkkk http://atrixbr.servegame.com/index.php?subtopic=shopsystem
-
MEU GOD TA COMO PLAYER
Estou com um problema no meu Baiak 8.60. Meu GOD ta como player, ele aparece no ranking, ganha itens na loteria...ta difícil viu? kkkkkkkkkkkk Alguém pode me ajudar?
-
ERRO APÓS COMPRAR ITEM SHOP SYSTEM
Desculpa minha falta de conhecimento, mas como coloco o Debug no index.php?
-
ERRO APÓS COMPRAR ITEM SHOP SYSTEM
Esse é o insert da table -- -- Estrutura da tabela `z_shop_offer` -- CREATE TABLE `z_shop_offer` ( `id` int(11) NOT NULL auto_increment, `points` int(11) NOT NULL default '0', `itemid1` int(11) NOT NULL default '0', `count1` int(11) NOT NULL default '0', `itemid2` int(11) NOT NULL default '0', `count2` int(11) NOT NULL default '0', `offer_type` varchar(255) default NULL, `offer_description` text NOT NULL, `offer_name` varchar(255) NOT NULL, `pid` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=12698 ; O insert dos items -- -- Extraindo dados da tabela `z_shop_offer` -- INSERT INTO `z_shop_offer` (`id`, `points`, `itemid1`, `count1`, `itemid2`, `count2`, `offer_type`, `offer_description`, `offer_name`, `pid`) VALUES (12656, 10, 8927, 1, 0, 0, 'itemvip', '>> Attack: 90 <<\r\n>> Deffense:30 <<\r\n>> Skill Club +10 <<\r\nPara Knights', 'VIP CLUB', 0), (12657, 10, 8925, 1, 0, 0, 'itemvip', '>> Attack: 90 <<\r\n>> Deffense:30 <<\r\n>> Skill Axe +10 <<\r\nPara Knights', 'VIP AXE', 0), (12658, 10, 7429, 1, 0, 0, 'itemvip', 'Vip STAFF - 400 a 500 em monsters.\r\nPara Sorcerers e Druids', 'VIP STAFF', 0), (12655, 10, 8931, 1, 0, 0, 'itemvip', '>> Attack: 90 <<\r\n>> Deffense:30 <<\r\n>> Skill Sword +10 <<\r\nPara Knights', 'VIP SWORD', 0), (12687, 7, 12646, 1, 0, 0, 'item', 'Regenera Mana e Life 150/150 Por Turno\r\nArmor:10\r\nSpeed +40', 'VIP Knight Boots', 0), (12660, 10, 2357, 1, 0, 0, 'itemvip', 'Heal Mana e Life 100/100\r\nSpeed +40\r\nProtection All +15%', 'Vip Ring', 0), (12661, 5, 8849, 1, 0, 0, 'itemvip', 'Atk+50\r\nChance 100%\r\nRange 10\r\nDistance +10\r\nCombinado com Vip Arrow', 'VIP CROSSBOW', 0), (12662, 5, 2196, 1, 0, 0, 'itemvip', 'Aol Infinito\r\nSpeed +40\r\nProtection All +15%', 'Vip Amulet', 0), (12664, 10, 0, 30, 0, 0, 'pacc', 'VIP 30 Dias Na sua Conta\r\n<a href="?subtopic=beneficiospremium">Vantagens Vips</a>', 'VIP 30 DAYS', 0), (12665, 7, 8904, 1, 0, 0, 'item', 'Deffense:30\r\nMagic level +10\r\nPara Druids e Sorcerers', 'VIP Spellbook', 0), (12686, 7, 12643, 1, 0, 0, 'item', 'Armor:20\r\nTodos Skills Axe,Sword,Club +10\r\nProtect All +5%', 'VIP Knight Legs', 0), (12667, 3, 8702, 1, 0, 0, 'itemvip', 'Recupera Toda Sua Stamina', 'Book Of Stamina', 0), (12669, 10, 0, 0, 0, 0, 'changename', 'Troca Seu Nome', 'Change Name', 0), (12671, 7, 0, 15, 0, 0, 'pacc', 'VIP 15 Dias Na sua Conta\r\n<a href="?subtopic=beneficiospremium">Vantagens Vips</a>', 'VIP 15 DAYS', 0), (12672, 3, 9693, 1, 0, 0, 'item', 'Escolha um addon full\r\nExemplo !addon Citizen', 'Addon Doll', 0), (12673, 5, 2352, 1, 0, 0, 'itemvip', 'Vip arrow Combinada com vip bow, Atk 90 Hitchance: 100%', 'Vip Arrow', 0), (12688, 7, 6433, 1, 0, 0, 'item', 'Defende:70\r\nTodos skills Axe,Club e Sword +10', 'VIP Knight Shield', 0), (12684, 7, 2343, 1, 0, 0, 'item', 'Armor:20\r\nTodos Skills Axe,Sword,Club +10', 'VIP Knight Helmet', 0), (12685, 7, 9776, 1, 0, 0, 'item', 'Armor:20\r\nTodos Skills Axe,Sword,Club +10\r\nProtege contra todos os danos +5%', 'VIP Knight Armor', 0), (12678, 10, 0, 0, 0, 0, 'redskull', 'Remove Red Skull Your Character', 'Remove Skull', 0), (12689, 7, 12645, 1, 0, 0, 'item', 'Armor:20\r\nSkill Distance +10', 'VIP Paladin Helmet', 0), (12690, 7, 12642, 1, 0, 0, 'item', 'Armor:20\r\nProtege contra todos os danos +6%\r\nSkill Distance +10', 'VIP Paladin Armor', 0), (12691, 7, 9777, 1, 0, 0, 'item', 'Armor:20 Protege contra todos os danos +6% Skill Distance +10', 'VIP Paladin Legs', 0), (12692, 7, 9931, 1, 0, 0, 'item', 'Regenera Mana e Life 150/150 Por Turno \r\nArmor:10 Speed +40', 'VIP Paladin Boots', 0), (12693, 7, 12644, 10, 0, 0, 'item', 'Defende:70\r\nSkill Distance +10', 'VIP Paladin Shield', 0), (12694, 7, 9778, 1, 0, 0, 'item', 'Armor:20\r\nProtege contra todos os danos +6%\r\nMagic level +10', 'VIP Mage Helmet', 0), (12695, 7, 8865, 1, 0, 0, 'item', 'Armor:20\r\nProtege contra todos os danos +6%\r\nMagic Level +10', 'VIP Mage Cape', 0), (12696, 7, 11304, 1, 0, 0, 'item', 'Armor:20\r\nProtege contra todos os danos +6%\r\nMagic Level +10', 'VIP Mage Legs', 0), (12697, 7, 2358, 1, 0, 0, 'item', 'Regenera Mana e Life 150/150 Por Turno Armor:10 Speed +40', 'VIP Mage Boots', 0); E como está na liinha do Shopsystem.php indicada pelo erro elseif($buy_offer['type'] == 'item') { $sql = 'INSERT INTO '.$SQL->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', \'login\', \'give_item\', '.$SQL->quote($buy_offer['item_id']).', '.$SQL->quote($buy_offer['item_count']).', \'\', \'\', \'item\', '.$SQL->quote($buy_offer['name']).', \'\', \'1\');'; $SQL->query($sql); $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_item').' (id, to_name, to_account, from_nick, from_account, price, offer_id, trans_state, trans_start, trans_real) VALUES ('.$SQL->lastInsertId().', '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).', '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['name']).', \'wait\', '.$SQL->quote(time()).', \'0\');'; $SQL->query($save_transaction); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<center><h2>Item added!</h2><b>'.$buy_offer['name'].'</b> added to player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br>Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">GO TO MAIN SHOP SITE</a><br>'; } E o erro após selecionar o char que irá receber o item e clicar Confirmar OBSERVAÇÃO IMPORTANTE A cada vez que eu compro um item aumentar o entry... Duplicate entry '9' for key 1' Se eu comprar o item denovo fica Duplicate entry '10' for key 1'
-
ERRO APÓS COMPRAR ITEM SHOP SYSTEM
Olá a todos, quando testei o shop system no localhost antes de colocar no dedicado estava tudo Ok. Na verdade ele está funcionando. O problema é que quando compra o item, cai na página de erro, o item chega pro player mas não desconta Donation Points. para vip days funciona, para items não. ERRO: To meio confuso, alguém pode ajudar?
-
FIRSTITEMS - SEGUNDO CHAR VEM COM ITEMS A MAIS
Consegui resolver, eu deletei e peguei um script pronto. Ai funcionou Script atual
-
FIRSTITEMS - SEGUNDO CHAR VEM COM ITEMS A MAIS
Olá a todos, estou co um baiak 8.60, configurei tudo certinho tanto site como ot data. Ai beleza, quando eu crio uma conta e crio o primeiro char, ele nasce normal com os itens corretos. Ao criar 2 ou mais characters, quando logo, ele aparece como se existisse outro first itens. Itens padrao do meu first items ITEMS PADRAO CORRETOS Itens do 2º ou mais characters ITENS SEGUNDO CHAR COM MAIS ITEMS QUE O PADRAO ITENS DO TERCEIRO CHAR KNIGHT (MEEE) Meu firstitems.xml function onLogin(cid) if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then if isSorcerer(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2190, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isDruid(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2182, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isPaladin(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2389, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isKnight(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doAddContainerItem(bag, 2428, 1) doAddContainerItem(bag, 2394, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2383, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) end end return TRUE end Percebi que nesse "erro" vem uma crocodile boots, pesquisei o ID dela e não achei em praticamente nenhum script na data. Alguém poderia me dar uma força?