-
Total de itens
45 -
Registro em
-
Última visita
Tudo que vinioliveira postou
-
[GESIOR] VictorWEBMaster 2019v
tópico respondeu ao VictorWEBMaster de vinioliveira em Websites & Layouts
Alguem testou em OtServer 10.31? -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
Estou sem tempo para mexer com ot pois tenho que estudar para algumas coisas, e esses dias estou tento mt provas, ainda mais na olimpiada de robotica, mas logo logo estarei de volta, maais o menos semana que vem, ainda não consegui descobrir o erro =ss, mas irei ficar de olho na source do ot la na otland pois faz alguns dias que eles fizeram alteração nelas. -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
è realmente ah o erro de os player não conseguirem logar no ot, verifiquei as configs do server e de rede, mas não consegui resolver o problema, tb tentei identificar algum erro no distro mas como não sou mt bom em programação em C, tb não consegui achar nada, ainda estou tentando resolver o problema, e tb irei falar com o Talaturen para da um help. -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
irei testar mais uma vez, se funcionar coloco os possiveis errors no distro ou na configuração de rede. -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
Se vc deu ctrl V no script e depois colou no seu ot veja se vc n tirou isso [u] pq pode ter bugado o script, procure isso [u] no script e delete todos que vc achar, pois aqui esta funcionando perfeitamente. -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
npc eva.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Eva" script="data/npc/scripts/Eva.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="136" head="96" body="60" legs="95" feet="0" addons="0"/> <voices> <voice text="Better deposit your money in the bank where it's safe." interval2="100" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="bank;" /> <parameter key="keyword_reply1" value="We can change money for you. You can also access your bank account." /> <parameter key="message_greet" value="Welcome |PLAYERNAME|! What business do you have in the Tibian bank today?"/> <parameter key="message_farewell" value="Good bye, |PLAYERNAME|."/> <parameter key="message_walkaway" value="Good bye, |PLAYERNAME|." /> </parameters> </npc> Script local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)[/u] [u]local thinkMsg = { "It's a wise idea to store your money in a bank account." }[/u] [u]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[/u] [u]npcHandler:addModule(FocusModule:new())local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)[/u] [u]local Topic, count, transferTo_name = {}, {}, {}[/u] [u]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[/u] [u]function thinkCallback(cid) local rand = math.random(100) if thinkMsg[rand] then npcHandler:say(thinkMsg[rand]) end return true end[/u] [u]local function getCount(string) local b, e = string:find('%d+') return b and e and tonumber(string:sub(b, e)) or -1 end[/u] [u]local function playerExists(name) local v, ret = db.getResult("SELECT `name` FROM `players` WHERE `name` = " .. db.escapeString(name) .. ";"), nil if v:getID() ~= -1 then ret = v:getDataString('name') end v:free() return ret end[/u] [u]function greetCallback(cid) Topic[cid], count[cid], transferTo_name[cid] = 0, 0,0 return true end[/u] [u]function creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false elseif msgcontains(msg, 'balance') then npcHandler:say('Your account balance is ' .. getPlayerBalance(cid) .. ' gold.', cid) Topic[cid] = 0 elseif msgcontains(msg, 'deposit') and msgcontains(msg, 'all') then if getPlayerMoney(cid) > 0 then count[cid] = getPlayerMoney(cid) npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid) Topic[cid] = 2 else npcHandler:say('Please tell me how much gold it is you would like to deposit.', cid) Topic[cid] = 1 end elseif msgcontains(msg, 'deposit') then if getCount(msg) == 0 then npcHandler:say('You are joking, aren\'t you??', cid) Topic[cid] = 0 elseif getCount(msg) ~= -1 then if getPlayerMoney(cid) >= getCount(msg) then count[cid] = getCount(msg) npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid) Topic[cid] = 2 else npcHandler:say('You do not have enough gold.', cid) Topic[cid] = 0 end else npcHandler:say('Please tell me how much gold it is you would like to deposit.', cid) Topic[cid] = 1 end elseif Topic[cid] == 1 then if getCount(msg) == -1 then npcHandler:say('Please tell me how much gold it is you would like to deposit.', cid) Topic[cid] = 1 else if getPlayerMoney(cid) >= getCount(msg) then count[cid] = getCount(msg) npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid) Topic[cid] = 2 else npcHandler:say('You do not have enough gold.', cid) Topic[cid] = 0 end end elseif msgcontains(msg, 'yes') and Topic[cid] == 2 then if doPlayerRemoveMoney(cid, count[cid]) then doPlayerSetBalance(cid, getPlayerBalance(cid) + count[cid]) npcHandler:say('Alright, we have added the amount of ' .. count[cid] .. ' gold to your balance. You can withdraw your money anytime you want to.', cid) else npcHandler:say('I am inconsolable, but it seems you have lost your gold. I hope you get it back.', cid) end Topic[cid] = 0 elseif msgcontains(msg, 'no') and Topic[cid] == 2 then npcHandler:say('As you wish. Is there something else I can do for you?', cid) Topic[cid] = 0 elseif msgcontains(msg, 'withdraw') then if getCount(msg) == 0 then npcHandler:say('Sure, you want nothing you get nothing!', cid) Topic[cid] = 0 elseif getCount(msg) ~= -1 then if getPlayerBalance(cid) >= getCount(msg) then count[cid] = getCount(msg) npcHandler:say('Are you sure you wish to withdraw ' .. count[cid] .. ' gold from your bank account?', cid) Topic[cid] = 4 else npcHandler:say('There is not enough gold on your account.', cid) Topic[cid] = 0 end else npcHandler:say('Please tell me how much gold you would like to withdraw.', cid) Topic[cid] = 3 end elseif Topic[cid] == 3 then if getCount(msg) == -1 then npcHandler:say('Please tell me how much gold you would like to withdraw.', cid) Topic[cid] = 3 else if getPlayerBalance(cid) >= getCount(msg) then count[cid] = getCount(msg) npcHandler:say('Are you sure you wish to withdraw ' .. count[cid] .. ' gold from your bank account?', cid) Topic[cid] = 4 else npcHandler:say('There is not enough gold on your account.', cid) Topic[cid] = 0 end end elseif msgcontains(msg, 'yes') and Topic[cid] == 4 then if getPlayerBalance(cid) >= count[cid] then doPlayerAddMoney(cid, count[cid]) doPlayerSetBalance(cid, getPlayerBalance(cid) - count[cid]) npcHandler:say('Here you are, ' .. count[cid] .. ' gold. Please let me know if there is something else I can do for you.', cid) else npcHandler:say('There is not enough gold on your account.', cid) end Topic[cid] = 0 elseif msgcontains(msg, 'no') and Topic[cid] == 4 then npcHandler:say('The customer is king! Come back anytime you want to if you wish to withdraw your money.', cid) Topic[cid] = 0 elseif msgcontains(msg, 'transfer') then if getCount(msg) == 0 then npcHandler:say('Please think about it. Okay?', cid) Topic[cid] = 0 elseif getCount(msg) ~= -1 then count[cid] = getCount(msg) if getPlayerBalance(cid) >= count[cid] then npcHandler:say('Who would you like to transfer ' .. count[cid] .. ' gold to?', cid) Topic[cid] = 6 else npcHandler:say('There is not enough gold on your account.', cid) Topic[cid] = 0 end else npcHandler:say('Please tell me the amount of gold you would like to transfer.', cid) Topic[cid] = 5 end elseif Topic[cid] == 5 then if getCount(msg) == -1 then npcHandler:say('Please tell me the amount of gold you would like to transfer.', cid) Topic[cid] = 5 else count[cid] = getCount(msg) if getPlayerBalance(cid) >= count[cid] then npcHandler:say('Who would you like to transfer ' .. count[cid] .. ' gold to?', cid) Topic[cid] = 6 else npcHandler:say('There is not enough gold on your account.', cid) Topic[cid] = 0 end end elseif Topic[cid] == 6 then local v = getPlayerByName(msg) if getPlayerBalance(cid) >= count[cid] then if v then transferTo_name[cid] = msg npcHandler:say('Would you really like to transfer ' .. count[cid] .. ' gold to ' .. getPlayerName(v) .. '?', cid) Topic[cid] = 7 elseif playerExists(msg):lower() == msg:lower() then transferTo_name[cid] = msg npcHandler:say('Would you really like to transfer ' .. count[cid] .. ' gold to ' .. playerExists(msg) .. '?', cid) Topic[cid] = 7 else npcHandler:say('This player does not exist.', cid) Topic[cid] = 0 end else npcHandler:say('There is not enough gold on your account.', cid) Topic[cid] = 0 end elseif Topic[cid] == 7 and msgcontains(msg, 'yes') then if getPlayerBalance(cid) >= count[cid] then local v = getPlayerByName(transferTo_name[cid]) if v then doPlayerSetBalance(cid, getPlayerBalance(cid) - count[cid]) doPlayerSetBalance(v, getPlayerBalance(v) + count[cid]) npcHandler:say('Very well. You have transferred ' .. count[cid] .. ' gold to ' .. getPlayerName(v) .. '.', cid) elseif playerExists(transferTo_name[cid]):lower() == transferTo_name[cid]:lower() then doPlayerSetBalance(cid, getPlayerBalance(cid) - count[cid]) db.executeQuery('UPDATE `players` SET `balance` = `balance` + ' .. count[cid] .. ' WHERE `name` = ' .. db.escapeString(transferTo_name[cid]) .. ' LIMIT 1;') npcHandler:say('Very well. You have transferred ' .. count[cid] .. ' gold to ' .. playerExists(transferTo_name[cid]) .. '.', cid) else npcHandler:say('This player does not exist.', cid) end else npcHandler:say('There is not enough gold on your account.', cid) end Topic[cid] = 0 elseif Topic[cid] == 7 and msgcontains(msg, 'no') then npcHandler:say('Alright, is there something else I can do for you?', cid) Topic[cid] = 0 elseif msgcontains(msg, 'change gold') then npcHandler:say('How many platinum coins would you like to get?', cid) Topic[cid] = 8 elseif Topic[cid] == 8 then if getCount(msg) < 1 then npcHandler:say('Hmm, can I help you with something else?', cid) Topic[cid] = 0 else count[cid] = getCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] * 100 .. ' of your gold coins into ' .. count[cid] .. ' platinum coins?', cid) Topic[cid] = 9 end elseif Topic[cid] == 9 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, 2148, count[cid] * 100) then npcHandler:say('Here you are.', cid) doPlayerAddItem(cid, 2152, count[cid]) else npcHandler:say('Sorry, you do not have enough gold coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end Topic[cid] = 0 elseif msgcontains(msg, 'change platinum') then npcHandler:say('Would you like to change your platinum coins into gold or crystal?', cid) Topic[cid] = 10 elseif Topic[cid] == 10 then if msgcontains(msg, 'gold') then npcHandler:say('How many platinum coins would you like to change into gold?', cid) Topic[cid] = 11 elseif msgcontains(msg, 'crystal') then npcHandler:say('How many crystal coins would you like to get?', cid) Topic[cid] = 13 else npcHandler:say('Well, can I help you with something else?', cid) Topic[cid] = 0 end elseif Topic[cid] == 11 then if getCount(msg) < 1 then npcHandler:say('Hmm, can I help you with something else?', cid) Topic[cid] = 0 else count[cid] = getCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] .. ' of your platinum coins into ' .. count[cid] * 100 .. ' gold coins for you?', cid) Topic[cid] = 12 end elseif Topic[cid] == 12 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, 2152, count[cid]) then npcHandler:say('Here you are.', cid) doPlayerAddItem(cid, 2148, count[cid] * 100) else npcHandler:say('Sorry, you do not have enough platinum coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end Topic[cid] = 0 elseif Topic[cid] == 13 then if getCount(msg) < 1 then npcHandler:say('Hmm, can I help you with something else?', cid) Topic[cid] = 0 else count[cid] = getCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] * 100 .. ' of your platinum coins into ' .. count[cid] .. ' crystal coins for you?', cid) Topic[cid] = 14 end elseif Topic[cid] == 14 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, 2152, count[cid] * 100) then npcHandler:say('Here you are.', cid) doPlayerAddItem(cid, 2160, count[cid]) else npcHandler:say('Sorry, you do not have enough platinum coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end Topic[cid] = 0 elseif msgcontains(msg, 'change crystal') then npcHandler:say('How many crystal coins would you like to change into platinum?', cid) Topic[cid] = 15 elseif Topic[cid] == 15 then if getCount(msg) == -1 or getCount(msg) == 0 then npcHandler:say('Hmm, can I help you with something else?', cid) Topic[cid] = 0 else count[cid] = getCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] .. ' of your crystal coins into ' .. count[cid] * 100 .. ' platinum coins for you?', cid) Topic[cid] = 16 end elseif Topic[cid] == 16 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, 2160, count[cid]) then npcHandler:say('Here you are.', cid) doPlayerAddItem(cid, 2152, count[cid] * 100) else npcHandler:say('Sorry, you do not have enough crystal coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end Topic[cid] = 0 elseif msgcontains(msg, 'change') then npcHandler:say('There are three different coin types in Tibia: 100 gold coins equal 1 platinum coin, 100 platinum coins equal 1 crystal coin. So if you\'d like to change 100 gold into 1 platinum, simply say \'{change gold}\' and then \'1 platinum\'.', cid) Topic[cid] = 0 elseif msgcontains(msg, 'bank') then npcHandler:say('We can change money for you. You can also access your bank account.', cid) Topic[cid] = 0 end return TRUE end[/u] [u]npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_ONTHINK, thinkCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) o erro n é na db, uma dica veja se vc esta se conectando no ot pelo o ip 127.0.0.1 se for troque o ip pelo host tipo (meuot.servegame.com) aquele q vc colocou no no-ip.org. -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
Aqui os players se conectaram normalmente, não vou upa a database se n fica muito facil né, distro compilado com database, se vc precisa colocar a market em mysql só vc criar uma tabela no mysql e depois importar do sqlite só que há algumas diferenças no comando, mas nada mt complicado. -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
Veja se não é no config.lua procure por gamePort = "7172" e depois tire as aspas, se não funcionar entre nesse site e verifique se as portas 7171 e 7172 do seu pc estão abertas http://vapus.net/canihost se alguma estiver fechada basta desbloquealas no reteador, modem e/ou firewall veja se não esqueceu de depositar dinheiro no banco, pq precisa, aqui esta funcionando. -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
Sim saem todos os bugs ta funcionando perfeitamente até a market. Distro DLLs Scan -
[9.46] The Forgotten Server V0.3.7-Preview (Crying Damson)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
compilei o distro novamente, esta perfeito (REP+), mas ainda sim, a market não funciona, deu o mesmo bug que no Mystic Spirit, não tem como adicionar a oferta na market. Compilando... apareceu algumas msgs, sobre algo relacionado a market, por ter a função playerCreateMarketOffer pode estar relacionado ao bug da market. ../game.cpp: In member function `bool Game::playerCreateMarketOffer(uint32_t, uint8_t, uint16_t, uint16_t, uint32_t, bool)': ../game.cpp:6417: warning: converting to `uint64_t' from `double' Refiz o teste da market em mysql e funcionou perfeitamente. ;D mas em sqlite não ^>^ -
[9.46] The Forgotten Server V0.2.12 (Mystic Spirit)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
depois de baixar a dll vc colocou éla em q pasta, se for na do ot, recorte a dll e cole na pasta .../Windows/system32/ e depois execute o distro novamente. DLL http://www.mediafire...8p6z7kkdijvqmoi Scan https://www.virustot...sis/1333579785/ -
[9.46] The Forgotten Server V0.2.12 (Mystic Spirit)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
vc não esta usando as DLLs corretas, há um pack de dll para cada versão do distro, veja qual vc esta usando. -
[9.46] The Forgotten Server V0.2.12 (Mystic Spirit)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
Items usados no hotkey gastão de 100 em 100. 01:26 Using one of 800 health potions... 01:26 Using one of 700 health potions... e a market, não ha como adicionar ofertar. -
[ Recomendado! ] [9.44] Crystal Server - 2.3Pl1 (Infinity Crystal)
tópico respondeu ao Tryller de vinioliveira em OTServ Comum
uso 32bits e mesmo assim da crash no server quando eu atualizo o site, quando abro o server e entro no site ta normal mas quando passa um tempo e do reload no site, cai o server. ~.~ da um help. -
AokpsokpASOKPokpas vdd parece o silvio santos falando -- AI MEU DEUS QUANTA PARALIZE QUANTA PARALIZE KOAsokaokpSOKPAs
-
[Encerrado] Aaaaa E Urgenteeeeeeeeeee
tópico respondeu ao brunoknoblauch de vinioliveira em Tópicos Sem Resposta
vcs tem que ir na pasta lib no seu ot e colocar isso no arquivo chamado vocations.lua function isSorcerer(cid) return isInArray({1, 5}, getPlayerVocation(cid)) end function isDruid(cid) return isInArray({2, 6}, getPlayerVocation(cid)) end function isPaladin(cid) return isInArray({3, 7}, getPlayerVocation(cid)) end function isKnight(cid) return isInArray({4, 8}, getPlayerVocation(cid)) end function isRookie(cid) return isInArray({0}, getPlayerVocation(cid)) end function isRookie(cid),function isKnight(cid)...--> neste lugar vc vai colocar as vocações do seu ot pelo que eu vi é edited certo então aqui vc tem que colocar as primeiras vocações sendo um exemplo como esta, isSorcerer --> por ser a primeira vocação ou seja sem promotion. eturn isInArray({0}, getPlayerVocation(cid))---> aqui vc tem que coloca o id da vocação o primeiro tem que ser a voc sem promotion depois a voc com promotion. no que vc descreveu do seu script poderia ficar assim function isGoku(cid) return isInArray({5, 10}, getPlayerVocation(cid)) end -
? como assim coloca script eu preciso desse script que eu pedi.
-
mano não fala bosta, é items.otb mesmo é aonde fica configurado com que sprite cada items vai fica, o xml é só para colocar a descrição, atributos,etc. me prove que estou errado. >
-
[Encerrado] Galera Ajuda Aew Pra Edita Meus Itens
tópico respondeu ao helanio de vinioliveira em Tópicos Sem Resposta
é porque vc não colocou no moviments, se vc não colocar ele não ira fazer nada só aparecerá os atributos não não funcionaram.. xxxx-> id do item ou seja o spellbook level="80"-> se quiser lv se n quiser só apagar <vocation id="1"/>---> as voc que iram usar o item. showInDescription="0"/>---->> vai motra na descrição do item que voc usa. <movevent type="DeEquip" itemid="xxxx" slot="shield" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="xxxx" slot="shield" level="80" event="function" value="onEquipItem"> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6" showInDescription="0"/> </movevent> e no outro item isso slot="shield" seria assim slot="head"--> pois queremos que seja um helmet né -
é só vc pegar o items.otb do ot sabe fica na pasta data/items/ la fica o items.otb vc copia ele e cola na pasta do remeres \Remere's Map Editor\data\860 ja q o mapa é 8.60 vc cola o items.otb na pasta 8.60 e abra o mapa dinovo.
-
é porque esse doodads ta bugado se vc quiser pode arrumar ou usar normal tipo ir no id dessas paredes e ir colocando a mão.
-
quando eu to compilando o tfs 0.4 aparece isso aqui openssl/rsa.h: No such file or directory. openssl/bn.h: No such file or directory. openssl/err.h: No such file or directory. da esse erro no otserv.cpp
-
é o que eu preciso exatamente é: é tipo uma runa mas eu vo faze éla pra capturar montaria eu preciso que o item possa ser usado no monstro vivo não o corpo dele morto, que precise de lv pra usa e que tenha uma chance de não conseguir a montaria ou a montaria fugir. Detalhes no script quando vc não conseguir a montaria por que o item quebrou que mande uma msg pro player falando que vc não capiturou porque o item quebrou e tal. quando a montaria fugiu manda a msg pro player dizendo que a montaria fugiu é claro e quando vc pega-la tb mandar uma msg pro player e adicionar a montaria obs.: e só podera usar em monstros especificos em todos os casos o item usado no monstro será removido. Flw des de agora Uso Tfs 2.09 r1 8.71
-
é o problema é q quando eu crio uma guild quem criou não fica de lider mas sim de membro.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.