
Solutions
-
9k22's post in (Resolvido)Cast System was marked as the answerOlá @bellatrikz, tudo bem?
Você deverá ter uma conta com accountName = 10
-
9k22's post in (Resolvido)Furniture Npc was marked as the answerMe desculpe, erro meu.
local constructionKits = {[3901] = 1652, [3902] = 1658, [3903] = 1666, [3904] = 1670, [3905] = 3813, [3906] = 3817, [3907] = 3821, [3908] = 2602, [3909] = 1614, [3910] = 1615, [3911] = 1616, [3912] = 1619, [3913] = 3805, [3914] = 3807, [3915] = 1740, [3917] = 2084, [3918] = 2095, [3919] = 3809, [3920] = 3811, [3921] = 1716, [3923] = 1774, [3926] = 2080, [3927] = 2098, [3928] = 2104, [3929] = 2101, [3931] = 2105, [3932] = 1724, [3933] = 1728, [3934] = 1732, [3935] = 1775, [3936] = 3832, [3937] = 2064, [3938] = 1750 } function onUse(cid, item, fromPosition, itemEx, toPosition) if getTileHouseInfo(fromPosition) == false then doPlayerSendCancel(cid,"You may only construct this inside a house.") elseif fromPosition.x == CONTAINER_POSITION then doPlayerSendCancel(cid, "Put the construction kit on the floor first.") elseif constructionKits[item.itemid] ~= nil then if getItemInfo(constructionKits[item.itemid]).type ~= ITEM_TYPE_CONTAINER then doTransformItem(item.uid, constructionKits[item.itemid]) doSendMagicEffect(fromPosition, CONST_ME_POFF) else local kitPos = getThingPos(item.uid) doRemoveItem(item.uid) doCreateItem(constructionKits[item.itemid], 1, kitPos) doSendMagicEffect(fromPosition, CONST_ME_POFF) end else return false end return true end
-
9k22's post in (Resolvido)Defend the Tower event was marked as the answerExatamente!
O TownID está circulado em vermelho, na imagem abaixo:
Basta abrir seu RME e:
CTRL + T
-
9k22's post in (Resolvido)[Dúvida] Como da acesso no Phpmyadmin Nginx was marked as the answerComo o amigo acima disse é verdade, mas caso não tenha marcado ou não se lembre, primeiro faça da maneira abaixo, para deixar o phpmyadmin livre para todos os IP's. Geralmente a configuração normal do nginx permite acesso apenas para o HOST(127.0.0.1/localhost)
Utilize os seguintes comandos: (não copie a $)
$ mv /etc/nginx/sites-available/default /etc/nginx/sites-available/default.old
$ nano /etc/nginx/sites-available/default
Agora adicione:
server { listen 80; server_name 127.0.0.1; root /usr/share/nginx/html; index index.php index.html index.htm index.nginx-debian.html; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { try_files $uri =404; fastcgi_pass 127.0.0.1:9000; # fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; } }
Em server_name coloque o IP da maquina.
Para salvar o arquivo utilize:
CTRL + X e depois Y de yes
Agora você precisa checar o arquivo para saber se não fez nada de errado:
$ nginx -t
Se tiver tudo certo, basta reiniciar o nginx:
Ubuntu 14.04:
$ sudo service nginx restart
-
9k22's post in (Resolvido)Qual melhor OS para ubuntu was marked as the answerOlá @Ryaan, tudo bem?
Então, isso meio que vai de cada um, mas o ubuntu 14.04(eu recomendo) é o mais ideal para servidores de tibia.
Sobre o PhP5, a partir do debian 7 e ubuntu 16.04, o php5 foi substituído pelo php7. Ainda é possível instalar o php5 alterando o repositório do SO.
Eu utilizo debian 9 pois a distro que utilizo é modificada e após vários testes com todas as versões do linux, no debian 9 obtive muito menos processamento que os demais.
Porém, não se preocupe muito com isso como seu Vai de cada um pois todos são bons e fazem basicamente o mesmo trabalho
-
9k22's post in (Resolvido)Gesior - Problema ao adicionar novo player em guild was marked as the answerOlá @Mattzys, tudo bem?
Sugiro que você tente baixar um novo site para modificar sua página guilds.php.
Caso queira um link, aqui no TibiaKing possui um site que você poderá pegar esta página já modificada, clicando aqui.
Boa sorte!
-
9k22's post in (Resolvido)Mensagem ao clicar x vezes em uma estatua was marked as the answerlocal storage = 20450 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, storage) <= 19 then doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "MENSAGEM que aparece ao clicar 1~19x") setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) elseif getPlayerStorageValue(cid, storage) == 20 then doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "MENSAGEM que aparece ao clicar 20x") setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) else return true end return true end
Desculpe, corrigido! Erro meu
Como bônus. Caso queira a mensagem apareça na própria estátua...
local storage = 20450 -- configure aqui a storage local estatua = {x=32314, y=31928, z=8} -- configure aqui o local da estatua function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, storage) <= 19 then doSendAnimatedText(estatua, "MENSAGEM que aparece ao clicar 1~19x", COLOR_ORANGE) setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) elseif getPlayerStorageValue(cid, storage) == 20 then doSendAnimatedText(estatua, "MENSAGEM que aparece ao clicar 20x", COLOR_ORANGE) setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) else return true end return true end
-
9k22's post in (Resolvido)[AJUDA][talkactions] Como se adiciona para cobrar na viajem !fly was marked as the answerQ viado vc é HUIEWHUIEHWUI
Vou fazer para ele, meu mestre HUEHEUHEUHEUHEUHE
Carlin = {x= 150, y= 150, z= 7}
Thais = {x= 141, y= 150, z= 7}
Venore = {x= 158, y= 150, z= 7}
valor_carlin = 100
valor_thais = 100
valor_venore = 100
function onSay(cid, words, param, channel)
local days = getPlayerPremiumDays(cid)
if days == 0 or days <= 1
then
doPlayerSendCancel(cid, 'Necessário premium account pra poder usar o Fly.')
end
if getTilePzInfo(getPlayerPosition(cid)) then
if (param == 'Thais') then
if getPlayerMoney(cid) >= 1 then -- checa money
doPlayerRemoveMoney(cid, valor_thais) -- remove money
doTeleportThing(cid, Thais)
doSendMagicEffect(getPlayerPosition(cid), 10)
end
elseif (param == 'Carlin') then
if getPlayerMoney(cid) >= 1 then -- checa money
doPlayerRemoveMoney(cid, valor_carlin) -- remove money
doTeleportThing(cid, Carlin)
doSendMagicEffect(getPlayerPosition(cid), 10)
end
elseif (param == 'Venore') then
if getPlayerMoney(cid) >= 1 then -- checa money
doPlayerRemoveMoney(cid, valor_venore) -- remove money
doTeleportThing(cid, Venore)
doSendMagicEffect(getPlayerPosition(cid), 10)
end
else
local str = "(Carlin , Thais , Venore) "
doShowTextDialog(cid, 2160, str)
end
else
doPlayerSendCancel(cid, "Voce so pode em area pz.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
end
-
9k22's post in (Resolvido)[PEDIDO] Ring Com AutoHeal! was marked as the answerEm Item.xml adicione logo abaixo do ring que você quer:
<attribute key="slotType" value="ring" /> <attribute key="healthGain" value="5" /> <attribute key="healthTicks" value="30000" /> <attribute key="manaGain" value="5" /> <attribute key="manaTicks" value="30000" /> <attribute key="showattributes" value="1" />
healthGain = Segundos (5)
manaGain = Segundos (5)
showattributes = Mostrar os atributo do item