Solutions
-
Danihcv's post in Bug Tibiaking was marked as the answerHoje voltou ao normal.
-
Danihcv's post in (Resolvido)Alguem me ajude em um shop para meu otserv e website. URGENTE was marked as the answerTenta usar esse shop.lua:
-
Danihcv's post in (Resolvido)gente eu queria saber tudo sobre o sites! was marked as the answerBom, primeiramente tenha em mente que vc não vai achar a resposta pra todos os problemas em um unico lugar, então vá com calma, pesquise em varios sites e aí sim.
Agora te respondendo: Pra criar, vc deve baixar um site pra ser instalado, como por exemplo o Gesior.
Pra colocar online vc precisa ter as portas necessarias liberadas (7171, 7172 e 8090) e aí vc instala o site (Gesior por exemplo).
Vc tb precisa do xampp para administrar sua data base e o "site acessível".
Pra deixar ele on 24horas vc vai precisar de um vps ou dedicado (tb diz respeito ao ot, logico). Algumas vps e dedicados oferecem o sistema de proteção baseado no plano que vc comprar.
Pra adicionar coisas vc vai ter que buscar sistemas e implementar na pasta raiz do seu site.
Pra adicionar no shopping, aí é com a conta admin.
E os demais problemas vc pode encontrar as repostas ou pesquisando, ou criando um topico aqui e tenho ctz que seu problema será resolvido.
Se esclareci alguma coisa, REP + pf
-
Danihcv's post in (Resolvido)[Erro] save ao deslogar was marked as the answerExecuta esse comando na sua data base:
CREATE TABLE player_items (
player_id INT NOT NULL,
sid INT NOT NULL,
pid INT NOT NULL
DEFAULT '0',
itemtype INT NOT NULL,
count INT NOT NULL
DEFAULT '0',
attributes BLOB NOT NULL,
UNIQUE ( player_id, sid ),
FOREIGN KEY ( player_id ) REFERENCES players ( id )
);
-
Danihcv's post in (Resolvido)Itens iniciais com Bug was marked as the answerCheca os id's dos itens, que vc qr botar, no seu items.xml e vê se tão de acordo com os do script. Se não estiverem, vc ja sabe o q fazer. hasuhsuahuas
-
Danihcv's post in (Resolvido)Database,Comandos was marked as the answerAqui tem um tutorial: http://www.tibiaking.com/forum/topic/33611-tutorial-resolvendo-qualquer-erro-na-data-base/#entry189040
-
Danihcv's post in (Resolvido)Criar um servidor was marked as the answerPrimeiro vc deve baixar um ot: http://www.tibiaking.com/forum/forum/113-downloads/
Depois vc deve configurar o arquivo config.lua para deixar o ot com as caracteristicas basicas do jeito que vc qr.
Agora vc deve abrir as portas necessarias para o ot rodar (7171 e 7172) em seu roteador e pc.
Agora vc faz o que vc quiser, coloca eventos, website, etc.
Se esclareci alguma coisa, REP + pf
-
Danihcv's post in (Resolvido)aumentar dano da exori con was marked as the answerNão sei se vc tá ligado, mas numa divisão, quanto maior for o quociente, menor será o resultado. Então para aumentar o valor do resultado é necessario colocar numeros baixos no quociente.
Já na soma, quanto maior for o numero somado, maior o resultado.
É basicamente isso que acontece nesse script.
Exemplo:
Digamos que eu queira aumentar um pouco o dano. Então vou somar (por exemplo) mais 10 às "skill" e diminuirei o quociente dos "level" pra 2.
return -(((skill + 35) / 2) + (level / 2)), -((skill + 35) + (level / 2)) Agora digamos que eu queira diminuir o dano, então vou fazer o oposto:
return -(((skill + 15) / 3) + (level / 10)), -((skill + 15) + (level / 10)) Basta comparar estas 2 situações e acho que vc ja vai sacar.
Se ainda ñ tiver entendido basta perguntar e tentarei explicar melhor.
-
Danihcv's post in (Resolvido)Gesior Bug no table bans was marked as the answerFoi apenas um erro de sintaxe.
Tenta esse:
CREATE TABLE bans ( id INTEGER PRIMARY KEY NOT NULL, type INTEGER NOT NULL, value INTEGER NOT NULL, param INTEGER NOT NULL DEFAULT '11', active BOOLEAN NOT NULL DEFAULT '1', expires INTEGER NOT NULL, added INTEGER NOT NULL, admin_id INTEGER NOT NULL DEFAULT '0', comment TEXT NOT NULL, reason INTEGER NOT NULL DEFAULT '0', action INTEGER NOT NULL DEFAULT '0', statement VARCHAR( 255 ) NOT NULL DEFAULT '''' ); Se ainda der erro tenta esse:
-
Danihcv's post in (Resolvido)[AJUDAR]Como mudar effect was marked as the answerNa linha:
doSendMagicEffect(getPlayerPosition(cid), 50) Vc coloca o effect desejado no lugar do 50
Se ajudei, REP+
-
Danihcv's post in (Resolvido)Erro de mysql para sqlite was marked as the answerAmigo, vc não pode usar uma database assim sem nenhuma modificação. Daria um certo trabalho pra vc converter. Um conselho: é melhor se acostumar com mysql msm. :/
-
Danihcv's post in (Resolvido)Fatal Error: Não consigo acessar meu site was marked as the answerAbra sua database e execute este comando:
CREATE TABLE IF NOT EXISTS `announcements` ( `id` int(10) NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, `text` varchar(255) NOT NULL, `date` varchar(20) NOT NULL, `author` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -
Danihcv's post in (Resolvido)[Dúvida] - Resetar database was marked as the answerAbra o phpmyadmin, selecione sua data base, clique em SQL, digite o comando no local indicado, clique em executar.
Todos estes campos estão indicados na imagem:
Se estiver precisando resetar mesmo sua data base, aqui tem um tutorial de como fazer uma nova data base limpinha:
http://www.tibiaking.com/forum/topic/33611-tutorial-resolvendo-qualquer-erro-na-data-base/#entry189040
-
Danihcv's post in (Resolvido)Lugar que so God pode entrar was marked as the answerAmigo, só fazendo uma observação, o script do vitiing, qualquer membro da staff poderá acessar a área (god, gm, cm), se ñ for isso que vc quiser, quiser que só o god possa entrar, usa esse:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if getPlayerGroupId(cid) > 5 then doSendMagicEffect(getPlayerPosition(cid), 28) else doTeleportThing(cid, lastPosition) doPlayerSendCancel(cid, "Desculpe "..getPlayerName(cid).." somente players da staff passam aqui!") end return TRUE end -
Danihcv's post in (Resolvido)[pedido] Save player was marked as the answerVai na pasta data\globalevents\scripts e cria um arquivo chamado saveplayer2.lua e coloca isso dentro:
function onThink(cid, interval) for _, cid in ipairs(getPlayersOnline()) do doPlayerSave(cid, true) return true end end Agora vai no arquivo globalevents.xml e adiciona essa tag:
<globalevent name="savePlayer" interval="1800000" event="script" value="saveplayer2.lua"/> -
Danihcv's post in (Resolvido)Dúvida [Criando Monster] was marked as the answerTenta esse fast monster.xml:
-
Danihcv's post in (Resolvido)Dúvida [Boots Healando] was marked as the answerAdiciona isso no seu movements.xml:
<movevent type="Equip" itemid="ID DO ITEM" slot="feet" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="ID DO ITEM" slot="feet" event="function" value="onDeEquipItem"/> Pronto, aí edita os "itemid" pra o ID da boot e é só alegria.
Abraços.
-
Danihcv's post in (Resolvido){Dúvida} Nomes das paredes was marked as the answerVc coloca o nome dela, pelo próprio editor de item.
Aí depois de adicionar a wall no items.otb pelo editor de itens, aí vc abre seu items.xml e adiciona essa tag:
<item id="ID DO ITEM" article="a" name="NOME DA WALL" /> Pronto, edita td direitinho aí, e é só alegria.
-
Danihcv's post in (Resolvido)ajuda pra remover item ao usar was marked as the answerlocal MIN = 950 local MAX = 1150 local EMPTY_POTION = 7590 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) == FALSE then return FALSE end if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then return FALSE end doAddCondition(cid, exhaust) doSendMagicEffect(getPlayerPosition(cid),12) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, EMPTY_POTION) doPlayerRemoveItem(cid,7590,1) return TRUE end Tenta ae.
-
Danihcv's post in (Resolvido)[Pedido] NPC que só fala was marked as the answerCria um arquivo chamado NOME_DO_NPC.xml (no caso eu criei o Jax, então criei Jax.xml):
<?xml version="1.0" encoding="UTF-8"?> <npc name="Jax" script="Jax.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150" /> <look type="134" head="57" body="59" legs="40" feet="76" corpse="2212" /> <parameters> --<parameter key="message_greet" value="Hello |PLAYERNAME|. Do not want to make an exchange? I have {blue note} and {bar of gold}." /> <parameter key="message_greet" value="Olá |PlayerName| Como vai? Fiquei sabendo que aconteceu um acidente e o Professor Robert e os demais pesquisadores desapareceram, quer saber {mais}?" /> <parameter key="message_farewell" value="Boa Sorte!" /> </parameters> </npc> Agora cria na pasta npc/scripts cria um arquivo chamado NOME_DO_NPC.lua (no caso criei jax.lua) e coloque isso dentro:
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end 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, 'mais') then selfSay('A última vez em que se viu o Professor e os demais pesquisadores, foi na ilha de pesquisa. Eles desapareceram misteriosamente enquanto estavam estudando um antigo fossil no laboratório, você pode investigar pra mim?', cid) if msgcontains(msg, 'yes') then selfSay('Boa Sorte!', cid) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) NÃO ESQUEÇA DE MUDAR OS NOMES DOS ARQUIVOS E DE CONFIGURAR ESSA PARTE DO NOME_DO_NPC.XML PARA QUE FIQUE COM O NOME DO ARQUIVO QUE VC CRIOU:
E seja feliz.
-
Danihcv's post in (Resolvido)Ajuda was marked as the answerAhh... mana também?? Desculpa, aqui está:
function onStepIn(cid) if isPlayer(cid) then doCreatureAddMana(cid, getCreatureMaxMana(cid)) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerSendTextMessage(cid, 27, "Voce healou toda sua vida e sua mana.") end return true end Se eu te ajudei, pf não esqueça o REP+
-
Danihcv's post in (Resolvido)Site no ar mas erro 10060 ao fazer login was marked as the answerAh então tudo bem.
-
Danihcv's post in (Resolvido)Addons Full was marked as the answerTenta ae:
local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["noble"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norse"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={335} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["noble"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norse"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={336} } function onLogin(cid) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[i], 3) else doPlayerAddOutfit(cid, maleOutfits[i], 3) end end -
Danihcv's post in (Resolvido)Onde encontro as quest's do meu servidor? was marked as the answerScript pra pisar no piso só se tiver tal level:
local levelMin = 150 --LEVEL NECESSÁRIO function onStepIn(cid, pos) if(getPlayerLevel(cid)) <= levelMin then doPlayerSendCancel(cid,"Para acessar essa área é necessário ter level "..levelMin..".") end end Sobre os baús, coloca essa tag no actions.xml:
<action actionid="37001" event="script" value="questbaus.lua"/> <action actionid="37002" event="script" value="questbaus.lua"/> <action actionid="37003" event="script" value="questbaus.lua"/> Agora cria um arquivo chamado questbaus.lua dentro da pasta scripts:
--Script by Danihcv to TibiaKing.com local item1 = 2148 --ID DO ITEM QUE GANHA NO BAÚ 1 local item2 = 2164 --ID DO ITEM QUE GANHA NO BAÚ 2 local item3 = 9693 --ID DO ITEM QUE GANHA NO BAÚ 3 function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 37001 then queststatus = getPlayerStorageValue(cid, 37004) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found "..getItemNameById(item1)..".") doPlayerAddItem(cid, item1, 1) doPlayerSetStorageValue(cid, 37004, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 37002 then queststatus = getPlayerStorageValue(cid, 37004) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found "..getItemNameById(item2)..".") doPlayerAddItem(cid, item2, 1) doPlayerSetStorageValue(cid, 37004, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 37003 then queststatus = getPlayerStorageValue(cid, 37004) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found "..getItemNameById(item3)..".") doPlayerAddItem(cid, item3, 1) doPlayerSetStorageValue(cid, 37004, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end end return TRUE end Agora crie três baús pelo editor de mapa, e no baú 1 vc coloca o action ID 37001, no baú 2 vc coloca o action ID 37002, no baú 3 vc coloca o action ID 37003.
-
Danihcv's post in (Resolvido)[Dúvida] removeAmmoWhenUsingDistanceWeap no config.lua was marked as the answerTenta assim:
removeWeaponAmmunition = true