Tudo que Danihcv postou
-
(Resolvido)[Pedido] Surprise Bag - Alguem Lembra? rs
Aqui tem o script da surprise bag: local PRESENT_BLUE = {2687, 6394, 6280, 6574, 6578, 6575, 6577, 6569, 6576, 6572, 2114} local PRESENT_RED = {2152, 2152, 2152, 2153, 5944, 2112, 6568, 6566, 2492, 2520, 2195, 2114, 2114, 2114, 6394, 6394, 6576, 6576, 6578, 6578, 6574, 6574} function onUse(cid, item, fromPosition, itemEx, toPosition) local count = 1 if(item.itemid == 6570) then local randomChance = math.random(1, #PRESENT_BLUE) if(randomChance == 1) then count = 10 elseif(randomChance == 2) then count = 3 end doPlayerAddItem(cid, PRESENT_BLUE[randomChance], count) elseif(item.itemid == 6571) then local randomChance = math.random(1, #PRESENT_RED) if randomChance > 0 and randomChance < 4 then count = 10 end doPlayerAddItem(cid, PRESENT_RED[randomChance], count) end doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS) doRemoveItem(item.uid, 1) return true end Lembrando que nesse script estão 2 bags. A blue e a red. Uma tem o id = 6570 e a outra 6571 Se quiser o script pra apenas 1 bag, só avisar.
-
[TUTORIAL] Formatando textos em PHP
Bom galera dessa vez trago pra vcs um tutorial simples de como editar (formatar) textos em suas páginas PHP. 1°) Negrito Para deixar um texto em negrito basta definir esse texto com <b> (no inicio) e </b> (no final). Então o seguinte código: <b>Essa frase esta em negrito!</b> Teria esse efeito: Essa frase esta em negrito! 1.1°) Modo alternativo Outro modo de escrever em negrito é usando <strong> e </strong> Apesar do strong não ser destinado à isso tem o mesmo efeito de negrito. 2°) Sublinhado Para deixar um texto sublinhado basta definir esse texto com <u> (no inicio) e </u> (no final). Então o seguinte código: <u>Essa frase esta sublinhada!</u> Teria esse efeito: Essa frase esta sublinhada! 3°) Itálico Para deixar um texto em itálico basta definir esse texto com <i> (no inicio) e </i> (no final). Então o seguinte código: <i>Essa frase esta em italico!</i> Teria esse efeito: Essa frase esta em italico! 3.1°) Modo alternativo Outro modo de escrever em itálico é usando <em> e </em> 4°) Riscado Para deixar um texto riscado basta definir esse texto com <s> (no inicio) e </s> (no final). Então o seguinte código: <s>Essa frase esta riscada!</s> Teria esse efeito: Essa frase esta riscada! 5°) Mudando a fonte do texto Para mudar a fonte basta colocar <font face='FONTE QUE VC DESEJA'> (preste atenção aqui, pois o nome da fonte deve estar entre aspas simples!) no inicio e </font> no final da frase. Então o seguinte código: <font face='Times New Roman'> Fonte massa! </font> Teria esse efeito: Fonte massa! 6°) Mudando a cor do texto Para mudar a cor basta colocar <font color='COR (EM INGLES) QUE VC DESEJA ou código html'> (preste atenção aqui, pois a cor deve estar escrita em inglês e entre aspas simples! O mesmo serve para o código html, deve estar entre aspas simples!) no inicio e </font> no final da frase. Então o seguinte código: <font color='red'>Ta vermelho!</font> <font='blue'>Ta azul!</font> Teria esse efeito: Ta vermelho! Ta azul! 6.1°) Tabela de cores em html Aqui tem um link onde vc pode pegar o código html das cores de sua preferência para usar no código acima: http://www.flextool.com.br/tabela_cores.html 7°) Mudando o tamanho do texto Bom aqui tem uma diferença da formatação de texto normal. Existem 7 tamanhos de fonte em php: O tamanho 2 é o tamanho padrão dos textos. Para mudar o tamanho da fonte basta usar o código <font size='TAMANHO QUE VC DESEJA (de 1 a 7)'> (preste atenção aqui, pois o tamanho deve estar escrito entre aspas simples!) no inicio e </font> no final da frase. Então o seguinte código: <font size='5'>Tamanho 5!</font> Teria esse efeito: Tamanho 5 8°) Textos especiais (subscrito e sobrescrito) Para deixar um texto subscrito basta usar <sub> (no inicio) e </sub> (no final). Então o seguinte código: X<sub>5</sub> Teria o seguinte efeito: X5 (OBS: não ficaria em negrito! Eu apenas coloquei negrito para chamar atenção!) Para deixar um texto sobrescrito basta usar <sup> (no inicio) e </sup> (no final). Então o seguinte código: X<sup>3</sup> Teria o seguinte efeito: X3 (OBS: não ficaria em negrito! Eu apenas coloquei negrito para chamar atenção!) 9°) Iniciando uma nova linha Para iniciar uma nova linha basta usar <br> no inicio da frase que inicia a nova linha. Então o seguinte código: <br>Se liga, linha 1 <br> <br> <br>Agora linha 4 Teria o seguinte efeito: Obs.: Não necessita fechar esse comando usando </br> pois ao declarar um <br> ele já inicia outra linha mesmo que a anterior "não tenha sido fechada". 10°) Juntando os efeitos Você pode usar os comandos de size, color e face (fonte) em um só comando <font> da seguinte maneira: Ou seja, o seguinte código: <br><font face='times new roman' color='#0000FF' size='5'> Olha que loko! </font> Teria o seguinte efeito: Olha que loko! Vc pode concatenar todos os efeitos acima da forma que vc quiser, basta ter atenção! Por exemplo, o seguinte código: Aqui ta sem nada! <b>A partir daqui ta tudo em negrito... <font face='times new roman' color='##D2691E' size='6'>A partir daqui ta em negrito, azul, outra fonte, outro tamanho e em outra cor... </font> <i>A partir daqui ta em italico </i>Agora ta sem italico... </b>Agora ta sem negrito... </font>Agora ta da forma padrão! Teria o seguinte efeito: Aqui ta sem nada! A partir daqui ta tudo em negrito... A partir daqui ta em negrito, azul, outra fonte, outro tamanho e em outra cor... A partir daqui ta em italico Agora ta sem italico... Agora ta sem negrito... Agora ta da forma padrão! _____________________________________________________________________________________ --------------------------------------------------------------------------------------------------------------------------- AGORA É A SUA VEZ!!! Poste aqui um texto de sua autoria e editado da forma ensinada do jeito que vc quiser! Eu darei REP+ a todo post que estiver editado de forma correta! E isso é tudo pessoal!
-
Matheus QQ vc fez ?
sauhsahuashuahu Augusto mito.
-
avatar taboos
Eu posso tentar fazer um rabisco hoje caso eu seja abençoado com tempo. sahusauhsahu SÓ AVISANDO QUE SOU MUITO INICIANTE EM LAYOUT/DESIGN!!! Na vdd eu nunca fiz quase nada sobre isso. Só uns layouts pra uns canais do youtube... sahusahuashu
-
avatar taboos
N teria mais detalhes sobre o avatar para que qm for fazer ter mais noção de qual eh o objetivo do avatar ou como vc qr?
-
(Resolvido)Muitas Duvidas Gesior
O first item n tem mt q ver com o site n. O player recebe o first devido ao primeiro login no server (pois eh um script que faz essa checagem e dá os itens) e n no site. As demais dúvidas eu n posso responder com ctz pois ainda n usei vps. Mas creio que seja igual abrir em nossos pc's normalmente. Vc n precisa pagar nada alem do vps. O site fica on devido ao xampp e o apache (de forma gratuita).
-
Happy Holi
Aqui tb teve. Soh galera de 12 anos... ai se fosse pra pegar alguma mina ia ser eh pedofilia... shuasguashua
-
Ajuda ot não abre
Como assim não abre? Dê mais informações do seu problema para que eu possa identificar mais precisamente a fonte do erro.
-
(Resolvido)[URGENTE] Player Não Salva Erro MYSQL [SOccorro ajuda]
Aqui ensina como executar comandos na data base: http://www.tibiaking.com/forum/topic/33611-tutorial-resolvendo-qualquer-erro-na-data-base/ @Edit: Acabei de lembrar que não tem ensinando no phpmyadmin. Basta fazer assim: Abra o phpmyadmin, selcione sua data base. Agora nas abas superiores onde tem Estrutura | SQL | Pesquisar | etc... Clique em SQL e lá vc coloca o comando e aperta em executar.
-
(Resolvido)Adicionando um Amuleto com atributos. [Por Favor HELP!]
@cliverson, tranquilo cara. Com o tempo vc pega o jeito facil facil. Estou à disposição.
-
Bug Nova Classe
Então o player perde a promotion, é isso?
-
(Resolvido)[URGENTE] Player Não Salva Erro MYSQL [SOccorro ajuda]
Tranquilo, cara. Estou à disposição. @Blackmotion, só queria te informar o que fazer diante desses erros. Primeiro você deve procurar nos detalhes do erro o que está acontecendo. Por exemplo, no erro acima, é possível ver "update `players`" ou seja, "updatear" a table players, então ja dá pra ver que o erro é nessa table. Ao final dos valores que o erro informa, é possível ler: unknow column cast in field list. Ou seja, não tem a coluna cast dentro da table. Espero ter esclarecido.
-
Abrir portas pra Router Pn-wr542g
Na verdade vc terá que abrir as portas usando o seu ipv4. Para consegui-lo bastas abrir o cmd e digitar ipconfig e apertar enter. Agora veja qual seu ipv4.
-
(Resolvido)Adicionando um Amuleto com atributos. [Por Favor HELP!]
Vc adicionou as devidas tags no arquivo movements.xml? Se não o fez, adicione essa tag: <movevent type="Equip" itemid="2138" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2138" slot="necklace" event="function" value="onDeEquipItem"/>
-
Bug Nova Classe
Como assim "classe"? Seria o "grupo" do tibia normal?
-
Socorro - SQLITE ERROR :/:
Executa esses 2 comandos na sua data base: DROP TABLE IF EXISTS killers; CREATE TABLE killers ( id INTEGER PRIMARY KEY, death_id INTEGER NOT NULL, final_hit BOOLEAN NOT NULL DEFAULT 'FALSE', unjustified BOOLEAN NOT NULL DEFAULT 'FALSE', war BIGINT NOT NULL DEFAULT '0', FOREIGN KEY ( death_id ) REFERENCES player_deaths ( id ) ); DROP TABLE IF EXISTS player_killers; CREATE TABLE player_killers ( kill_id INTEGER NOT NULL, player_id INTEGER NOT NULL, FOREIGN KEY ( kill_id ) REFERENCES killers ( id ), FOREIGN KEY ( player_id ) REFERENCES players ( id ) );
-
(Resolvido)[URGENTE] Player Não Salva Erro MYSQL [SOccorro ajuda]
Executa esse comando na sua data base: DROP TABLE IF EXISTS `players`; CREATE TABLE `players` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `world_id` tinyint(4) unsigned NOT NULL DEFAULT '0', `group_id` int(11) NOT NULL DEFAULT '1', `account_id` int(11) NOT NULL DEFAULT '0', `level` int(11) NOT NULL DEFAULT '10', `vocation` int(11) NOT NULL DEFAULT '0', `health` int(11) NOT NULL DEFAULT '150', `healthmax` int(11) NOT NULL DEFAULT '150', `experience` bigint(20) unsigned NOT NULL DEFAULT '0', `lookbody` int(11) NOT NULL DEFAULT '0', `lookfeet` int(11) NOT NULL DEFAULT '0', `lookhead` int(11) NOT NULL DEFAULT '0', `looklegs` int(11) NOT NULL DEFAULT '0', `looktype` int(11) NOT NULL DEFAULT '136', `lookaddons` int(11) NOT NULL DEFAULT '0', `lookmount` int(11) NOT NULL DEFAULT '0', `maglevel` int(11) NOT NULL DEFAULT '0', `mana` int(11) NOT NULL DEFAULT '0', `manamax` int(11) NOT NULL DEFAULT '0', `manaspent` bigint(20) unsigned NOT NULL DEFAULT '0', `soul` int(10) unsigned NOT NULL DEFAULT '0', `town_id` int(11) NOT NULL DEFAULT '2', `posx` int(11) NOT NULL DEFAULT '32369', `posy` int(11) NOT NULL DEFAULT '32241', `posz` int(11) NOT NULL DEFAULT '7', `conditions` blob NOT NULL, `cap` int(11) NOT NULL DEFAULT '0', `sex` int(11) NOT NULL DEFAULT '0', `lastlogin` bigint(20) unsigned NOT NULL DEFAULT '0', `lastip` int(10) unsigned NOT NULL DEFAULT '0', `save` tinyint(1) NOT NULL DEFAULT '1', `skull` tinyint(1) unsigned NOT NULL DEFAULT '0', `skulltime` int(11) NOT NULL DEFAULT '0', `rank_id` int(11) NOT NULL DEFAULT '0', `guildnick` varchar(255) NOT NULL DEFAULT '', `lastlogout` bigint(20) unsigned NOT NULL DEFAULT '0', `blessings` tinyint(2) NOT NULL DEFAULT '0', `pvp_blessing` tinyint(1) NOT NULL DEFAULT '0', `balance` bigint(20) unsigned NOT NULL DEFAULT '0', `stamina` bigint(20) unsigned NOT NULL DEFAULT '151200000' COMMENT 'stored in miliseconds', `direction` int(11) NOT NULL DEFAULT '2', `loss_experience` int(11) NOT NULL DEFAULT '100', `loss_mana` int(11) NOT NULL DEFAULT '100', `loss_skills` int(11) NOT NULL DEFAULT '100', `loss_containers` int(11) NOT NULL DEFAULT '100', `loss_items` int(11) NOT NULL DEFAULT '100', `premend` int(11) NOT NULL DEFAULT '0' COMMENT 'NOT IN USE BY THE SERVER', `online` tinyint(1) NOT NULL DEFAULT '0', `marriage` int(10) unsigned NOT NULL DEFAULT '0', `promotion` int(11) NOT NULL DEFAULT '0', `deleted` int(11) NOT NULL DEFAULT '0', `description` varchar(255) NOT NULL DEFAULT '', `comment` text NOT NULL, `create_ip` int(11) NOT NULL DEFAULT '0', `create_date` int(11) NOT NULL DEFAULT '0', `hide_char` int(11) NOT NULL DEFAULT '0', `signature` text NOT NULL, `offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT '43200', `offlinetraining_skill` int(11) NOT NULL DEFAULT '-1', `cast` tinyint(4) NOT NULL DEFAULT '0', `castViewers` int(11) NOT NULL DEFAULT '0', `castDescription` varchar(255) NOT NULL, `created` int(11) NOT NULL DEFAULT '0', `nick_verify` int(11) NOT NULL DEFAULT '0', `old_name` varchar(255) NOT NULL DEFAULT '', `worldtransfer` int(11) NOT NULL DEFAULT '0', `show_outfit` tinyint(4) NOT NULL DEFAULT '1', `show_eq` tinyint(4) NOT NULL DEFAULT '1', `show_bars` tinyint(4) NOT NULL DEFAULT '1', `show_skills` tinyint(4) NOT NULL DEFAULT '1', `show_quests` tinyint(4) NOT NULL DEFAULT '1', `stars` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`,`deleted`), KEY `account_id` (`account_id`), KEY `group_id` (`group_id`), KEY `online` (`online`), KEY `deleted` (`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
-
(Resolvido)[Ajuda] Erro na Distro
local starterpokes = { ["Cyndaquil"] = {x = 167, y = 593, z = 7}, ["Totodille"] = {x = 166, y = 593, z = 7}, ["Chikorita"] = {x = 168, y = 593, z = 7} } local level = 5 local extrastr = 1.5 local btype = "normal" function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) > 10 then return true end local pokemon = "" for a, b in pairs (starterpokes) do if isPosEqualPos(topos, b) then pokemon = a end end if pokemon == "" then return true end local gender = getRandomGenderByName(pokemon) local mypoke = getPokemonStatus(pokemon) if not mypoke then return true end local offense = mypoke.off * level * extrastr local defense = mypoke.def * level * extrastr local speed = mypoke.agi * level * extrastr local vit = mypoke.vit * level * extrastr local spatk = mypoke.spatk * level * extrastr local happy = 180 local leveltable = getPokemonExperienceTable(pokemon) doPlayerAddItem(cid, 2152, 2) doPlayerAddItem(cid, 2394, 10) doPlayerAddItem(cid, 12344, 2) local balls = doPlayerAddItem(cid, 2394, 10) doItemSetAttribute(balls, "unique", cid) local item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", pokemon) doItemSetAttribute(item, "hp", 1) doItemSetAttribute(item, "level", level) doItemSetAttribute(item, "exp", leveltable[level]) doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level]) doItemSetAttribute(item, "offense", offense) doItemSetAttribute(item, "defense", defense) doItemSetAttribute(item, "speed", speed) doItemSetAttribute(item, "vitality", vit) doItemSetAttribute(item, "specialattack", spatk) doItemSetAttribute(item, "happy", happy) doItemSetAttribute(item, "gender", gender) doItemSetAttribute(item, "description", "Contains a "..pokemon..".") doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".") doItemSetAttribute(item, "unique", getCreatureName(cid)) --alterado v2.6 doPlayerAddItemEx(cid, item, true) doTransformItem(item, pokeballs[btype].on) doPlayerSendTextMessage(cid, 27, "Você achou um novo pokemon, boa jornada.") doPlayerSendTextMessage(cid, 27, "Não esqueca de usar a pokedex neste novo pokemon.") doSendMagicEffect(getThingPos(cid), 29) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getThingPos(cid), 27) doSendMagicEffect(getThingPos(cid), 29) return TRUE endpokemon)doItemSetAttribute(item, "hp", 1)doItemSetAttribute(item, "level", level)doItemSetAttribute(item, "exp", leveltable[level])doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level])doItemSetAttribute(item, "offense", offense)doItemSetAttribute(item, "defense", defense)doItemSetAttribute(item, "speed", speed)doItemSetAttribute(item, "vitality", vit)doItemSetAttribute(item, "specialattack", spatk)doItemSetAttribute(item, "happy", happy)doItemSetAttribute(item, "gender", gender)doItemSetAttribute(item, "description", "Contains a "..pokemon..".")doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".")doItemSetAttribute(item, "unique", getCreatureName(cid)) --alterado v2.6doPlayerAddItemEx(cid, item, true)doTransformItem(item, pokeballs[btype].on)doPlayerSendTextMessage(cid, 27, "Você achou um novo pokemon, boa jornada.")doPlayerSendTextMessage(cid, 27, "Não esqueca de usar a pokedex neste novo pokemon.")doSendMagicEffect(getThingPos(cid), 29)doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))doSendMagicEffect(getThingPos(cid), 27)doSendMagicEffect(getThingPos(cid), 29)return TRUEendTente assim Tente assim. @edit, acabei de ver q o viting foi mais rapido que eu. Hsushau
-
erro no spell creator {ajuda}q
Tente trocar os arquivos .dat e .spr que estão na pasta do programa.
-
Spells Trocadas
Eu não entendo de nto, mas posso te dar uma "luz". Vai no seu spells.xml (caso seja esse nome em nto) e veja as words das spells que estão trocadas.
-
Socorro - SQLITE ERROR :/:
Eu passaria o código pra executar na data base, mas to pelo cell ai complica. Ve aqui na minha assinatura um link dizendo Resolvendo qlqr erro na data base. Clica e la pegue o codigo da table player_killers.
-
Erro Step 4
O character account manager ainda está em sua data base?
- Npcs
-
Como criar um servidor de tibia 8.6 tendo gvt como provedor
Então amigo, eu ja consegui abrir servidor com net da gvt. Pra fazer isso vc precisa criar um ip fixo pelo site www.no-ip.com e colocar esse ip fixo no seu config.lua. Agora vc precisa liberar as portas no seu roteador/modem da gvt. Use o seu endereço ipv6 pra abrir as portas. Para pegar seu endereço ipv6 basta ir em executar > cmd > digite: ipconfig e aperte enter. Agora veja qual seu ipv6 (esse ip vc como host irá usar para entrar em seu server e o endereço ip fixo será o que as pessoas irão usar). Agora libere as mesmas portas no seu firewall. As portas pra liberar são: 7171 e 7172.
-
Distro caindo todo dia ajuda pf
Se estiver disposto retire o seu e coloque um novo bem leve pra rodar. E veja os resultados. @Edit, peço desculpas por não poder continuar acompanhando as postagens desse tópico agora, pois estou indo dormir. :/