Tudo que Flavio S. Cabral postou
-
Porfavor me ajudem !
Isso é erro de script não website, está dizendo que não está sendo possível carregar a pasta libs, verifique se seu serve possui.
-
Erro STEP 1 Xampp
Era só deixar C:/Users/Osni/Desktop/Nova pasta/otserv/
- Gente Pfv Ajudar
-
(Resolvido)Pedido Modificação de Npc de Vocation
eu posto o que quero e faço o que quero, desde que eu esteja nas regras desse fórum então, sem xoro...
-
(Resolvido)AJUDA NPC
isso é minha assinatura se não percebeu rsrsrs
-
(Resolvido)Pedido Modificação de Npc de Vocation
...
-
(Resolvido)Pedido Modificação de Npc de Vocation
se não funcionar dps faço um do 0 pra você ... <?xml version="1.0" encoding="UTF-8"?> <npc name="Jordan" floorchange="0" walkinterval="0"> <health now="150" max="150"/> <look type="324"/> <interaction range="3" idletime="30"> <interact keywords="hi" focus="1"> <!--These are the keywords will trigger this interaction--> <keywords>hello</keywords> <keywords>greet</keywords> <response> <action name="script"> if(getPlayerVocation(cid) ~= 0) then selfSay("Desculpe, mas voce ja fez sua escolha!!", cid) _state.isidle = true return end if(getPlayerLevel(cid)) >= 1 then selfSay(getCreatureName(cid) .. ", qual vocation voce vai querer ser? Escolha entre {Guardian}, {Mage}, {Archer} e {Ninja}", cid) _state.b1 = (isPremium(cid) == false) _state.topic = 1 else selfSay("CHILD! COME BACK WHEN YOU HAVE GROWN UP!", cid) _state.isidle = true end </action> </response> </interact> <interact keywords="guardian" topic="2"> selfSay("um Guardian! voce tem certeza? esta decisao e inreversivel!", cid) <!--n2: 1 = guardian, 2 = mage, 3 = ninja, 4 = archer--> <action name="script"> _state.n2 = 1 _state.topic = 3 </action> </response> </interact> <interact keywords="mage" topic="2"> selfSay("um Mage! voce tem certeza? esta decisao e inreversivel!", cid) <!--n2: 1 = guardian, 2 = mage, 3 = ninja, 4 = archer--> <action name="script"> _state.n2 = 2 _state.topic = 3 </action> </response> </interact> <interact keywords="ninja" topic="2"> selfSay("um Ninja! voce tem certeza? esta decisao e inreversivel!", cid) <!--n2: 1 = guardian, 2 = mage, 3 = ninja, 4 = archer--> <action name="script"> _state.n2 = 3 _state.topic = 3 </action> </response> </interact> <interact keywords="archer" topic="2"> selfSay("um Archer! voce tem certeza? esta decisao e inrreversivel!", cid) <!--n2: 1 = guardian, 2 = mage, 3 = ninja, 4 = archer --> <action name="script"> _state.n2 = 4 _state.topic = 3 </action> </response> </interact> <!--If the player does not say any profession, repeat our question--> <interact keywords="|*|" topic="2"> selfSay("Guardian, Mage, ninja, ou archer?", cid) </interact> <interact keywords="yes" topic="3"> <response> <!--n1: 1 = carlin, 2 = edron, 3 = thais, 4 = venore--> <!--n2: 1 = guardian, 2 = mage, 3 = ninja, 4 = archer--> <action name="script"> selfSay("Que assim seja!", cid) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerSetVocation(cid, _state.n2) </action> <action name="idle" value="1"/> </response> </interact> <interact keywords="bye" focus="0"> <keywords>farewell</keywords> selfSay("Adeus. Recomende-nos, se voce estivesse satisfeito com nosso servico.", cid) </interact> <!-- If the event onBusy exists, the npc will make a queue like Tibia, if the event is removed the npc will be able to talk to all customers at the same time without problems. --> <interact event="onBusy"> selfSay("WAIT UNTIL IT IS YOUR TURN!", cid) <action name="addqueue" value="|PLAYER|"/> </response> </interact> <!--This event triggers if the player goes to far away from the npc/logout/idle timeout--> <interact event="onPlayerLeave" focus="0"> selfSay("Volte quando estão preparados para enfrentar seu destino!!", cid) </interact> </interaction> </npc>
-
(Resolvido)AJUDA NPC
--[[ Basta editar os ["town1"], colocando o nome da cidade e a pos dela logo a frente... abrçs ]]-- local free = { ["town1"] = {x= ,y= ,z= }, ["town2"] = {x= ,y= ,z= }, ["town3"] = {x= ,y= ,z= }, ["town4"] = {x= ,y= ,z= }, ["town5"] = {x= ,y= ,z= }, ["town6"] = {x= ,y= ,z= }, ["town7"] = {x= ,y= ,z= } } local vip = { ["town1"] = {x= ,y= ,z= }, ["town2"] = {x= ,y= ,z= }, ["town3"] = {x= ,y= ,z= } } local cost = 300 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) npcHandler.topic = {} 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 for city, tp in pairs(free) do if msgcontains(msg, city) then npcHandler:say('you are sure?', cid) npcHandler.topic[cid] = 1 elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 1 then if doPlayerRemoveMoney(cid, cost) then doTeleportThing(cid, tp) npcHandler:say('Let\'s GO', cid) npcHandler.topic[cid] = 0 else npcHandler:say('Sorry, you don\'t have enough money', cid) npcHandler.topic[cid] = 0 end end end for citys, tps in pairs(vip) do if msgcontains(msg, citys) then npcHandler:say('you are sure?', cid) npcHandler.topic[cid] = 2 elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 2 then if getPlayerPremiumDays(cid) > 0 then if doPlayerRemoveMoney(cid, cost) then doTeleportThing(cid, tps) npcHandler:say('Let\'s GO', cid) npcHandler.topic[cid] = 0 else npcHandler:say('Sorry, you don\'t have enough money', cid) npcHandler.topic[cid] = 0 end else npcHandler:say('Você não tem VIP!', cid) npcHandler.topic[cid] = 0 end end end if msgcontains(msg, 'no') then npcHandler:say('Bye!', cid) npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) <?xml version="1.0" encoding="UTF-8"?> <npc name="EDITEAQUI" script="NOMEDOARQUIVO.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="152" head="95" body="95" legs="29" feet="56" addons="2" corpse="6080"/> <parameters> <parameter key="message_greet" value="Sejá Bem-Vindo ao Barco, |PLAYERNAME|.Quer viajar para {town1}, {town2}, {town3}, {town4}, {town5}, {town6} dps edita aqui..." /> </parameters> </npc>
-
Vamos evoluir? Unity 3D
Opah pode contar comigo pra participar
-
ERRO AO COMPLIAR OTSERVER NO LINUX 14.10
Lembre-se que linux é case sensitive ou seja : Ele diferencia maiúsculas de minúsculas. Exemplo: ========= diretório 1 /home/joao diretório 2 /home/Joao no ruimdows é a mesma pasta, porém no Linux esses diretorios são diferentes. Verifique se o nome está vocations.xml, se não tiver mude.
-
ERRO AO COMPLIAR OTSERVER NO LINUX 14.10
sempre rodei tfs1.0, no ubuntu 14.04 ... 14.10 ... então não tem essa de não é compatível. falta um pouco entender inglês de sua parte Alanray ou até mesmo tentar traduzir. root@alan-S3420GP:~/otserv# mkdir build && cd build mkdir: é impossível criar o diretório “build”: Arquivo existe root@alan-S3420GP:~/otserv# cmake .. CMake Error: The source directory "/root" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. é impossível criar o diretório “build”: Arquivo existe ... <-- Já tem recomendo deletar ... The source directory "/root" does not appear to contain CMakeLists.txt. <-- o Arquivo CMakeLists.txt não está onde deveria ... tente ler isso > http://askubuntu.com/questions/527665/undefined-reference-to-symbol-expglibc-2-2-5< pode acabar sendo a solução.
- ERRO AO COMPLIAR OTSERVER NO LINUX 14.10
-
Windows ou Linux
Linux é 100x melhor que o ruimdowns, não preciso nem entrar em detalhes basta jogar no google e irá ver o que estou falando ... aqui no fórum existe bastante tutoriais, que ensinam compilar e instalar tudo certinho, mas se mesmo assim tu se sente inseguro de migrar pro linux, como tu pediu tem a MONEY DEDICADOS , que da suporte na instalação, confirmo isso pois trabalho/ajudo na área de suporte lá, então qualquer coisa ou dúvida só me procurar.
-
ae porcada
mia rep
- (Resolvido)URGENTE CRIAÇÃO OTSERV 10.53
-
(Resolvido)(SCRIPTING) Erro no script.
function onAdvance(cid, skill, oldlevel, newlevel) local skillMsgs = { [SKILL_FIST] = "You advanced in first fighting ["..getPlayerSkill(cid, SKILL_FIST).."].", [SKILL_CLUB] = "You advanced in club fighting ["..getPlayerSkill(cid, SKILL_CLUB).."].", [SKILL_SWORD] = "You advanced in sword fighting ["..getPlayerSkill(cid, SKILL_SWORD).."].", [SKILL_AXE] = "You advanced in axe fighting ["..getPlayerSkill(cid, SKILL_AXE).."].", [SKILL_DISTANCE] = "You advanced in distance fighting ["..getPlayerSkill(cid, SKILL_DISTANCE).."].", [SKILL_SHIELD] = "You advanced in shielding ["..getPlayerSkill(cid, SKILL_SHIELD).."].", [SKILL_FISHING] = "You advanced in fishing ["..getPlayerSkill(cid, SKILL_FISHING).."].", [SKILL__MAGLEVEL] = "You advanced in magic level ["..getPlayerMagLevel(cid).."]." } if(skillMsgs[skill]) then doCreatureSay(cid, skillMsgs[skill], TALKTYPE_MONSTER) end return true end
-
(Resolvido)RESOLVIDO Npc Primeiro Item
@Zet0N0Murmurou porque não testou o meu ? se tiver algo contra minha pessoa só falar que eu não se dou o trabalho nem de olhar seus tópicos...
-
Volta das entrevistas
Qual foi sua maior dificuldade quando começou a empresa de hosters ? houve algum momento que você pensou em desistir, se sim qual ?
- Mapper King
-
(Resolvido)RESOLVIDO Npc Primeiro Item
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, 'item') then if getPlayerStorageValue(cid, 99746) < 1 then npcHandler:say('Opa, então voce ainda não tem items e precisa de ajuda ? tome isto vai lhe ajudar em sua jornada', cid) doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 99746) talkState[talkUser] = 0 else npcHandler:say('Saia daqui já lhe ajudei', cid) talkState[talkUser] = 0 end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Recomendo ler uns tutoriais do fórum #editado tinha esquecido a callback
-
(Resolvido)RESOLVIDO Npc Vocation
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 local stg = 57894 if getPlayerStorageValue(cid, stg) < 1 then if msgcontains(msg:lower(), 'sorcerer') then npcHandler:say('A SORCERER! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!', cid) talkState[talkUser] = 1 elseif msgcontains(msg:lower(), 'druid') then npcHandler:say('A DRUID! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!', cid) talkState[talkUser] = 2 elseif msgcontains(msg:lower(), 'paladin') then npcHandler:say('A PALADIN! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!', cid) talkState[talkUser] = 3 elseif msgcontains(msg:lower(), 'knight') then npcHandler:say('A KNIGHT! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!', cid) talkState[talkUser] = 4 elseif msgcontains(msg:lower(), 'yes') then if talkState[talkUser] == 1 then doPlayerSetVocation(cid, 1) npcHandler:say('SO BE IT!', cid) setPlayerStorageValue(cid, stg, 1) talkState[talkUser] = 0 elseif talkState[talkUser] == 2 then doPlayerSetVocation(cid, 2) npcHandler:say('SO BE IT!', cid) setPlayerStorageValue(cid, stg, 1) talkState[talkUser] = 0 elseif talkState[talkUser] == 3 then doPlayerSetVocation(cid, 3) npcHandler:say('SO BE IT!', cid) setPlayerStorageValue(cid, stg, 1) talkState[talkUser] = 0 elseif talkState[talkUser] == 4 then doPlayerSetVocation(cid, 4) setPlayerStorageValue(cid, stg, 1) npcHandler:say('SO BE IT!', cid) talkState[talkUser] = 0 end elseif msgcontains(msg:lower(), 'no') then npcHandler:say(getCreatureName(cid) .. ', WHAT KIND OF PROFESSIONAL DO YOU WANNA BE? KNIGHT, PALADIN, SORCERER, OR DRUID?', cid) talkState[talkUser] = 0 elseif msgcontains(msg:lower(), 'bye') then npcHandler:say('Good bye.', cid) talkState[talkUser] = 0 end else npcHandler:say('YOU ALREADY HAVE VOCATION!', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) <?xml version="1.0" encoding="UTF-8"?> <npc name="Mendigo" script="data/npc/scripts/mendigo.lua" walkinterval="25" floorchange="0" access="5" lookdir="1" > <health now="150" max="150"/> <look type="133" head="95" body="86" legs="86" feet="38" addons="3"/> <parameters> <parameter key="message_greet" value="|PLAYERNAME|, WHAT KIND OF PROFESSIONAL DO YOU WANNA BE? KNIGHT, PALADIN, SORCERER, OR DRUID?"/> </parameters> </npc>
-
Addon/Mount para Shopsystem por Storage
Você está esquecendo de mudar o offer_type pra 'mount' ou 'addon' ... Adicione a mount ou addon por comando via mysql no phpmyadmin : INSERT INTO `z_shop_offer` (`points`, `itemid1`, `count1`, `offer_type`, `offer_description`, `offer_name`) VALUES (10 , 87654, 1, 'mount', 'teste', 'Mount teste') points = pontos que vai custar; itemid1 = storage do addon/mount; count1 = 1 <-- deixe 1 offer_type = mount/addon <-- de acordo com que tu quer; offer_description = descrição do addon/mount; offer_name = nome da mount/addon; Lembre-se de usar o shop.lua acima que eu postei...
-
olá, pessoas.
Tenho permissão sua pra usar a terceira imagem na minha assinatura ?
-
Correção da redação do enem.
ele escreveu errado, acho que eles quis dizer nenem , ai ele queria a correção da redação do nenem dele, mas não sabemos nem em que escola o mlk estuda rsrsrs
-
Addon/Mount para Shopsystem por Storage
#Detalhe sou o SUMM. Substitui esse seu shop.lua completamente por esse aqui : -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 18 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.storeQuery("SELECT * FROM z_ots_comunication") if(result_plr ~= false) then repeat local id = tonumber(result.getDataInt(result_plr, "id")) local action = tostring(result.getDataString(result_plr, "action")) local delete = tonumber(result.getDataInt(result_plr, "delete_it")) local cid = getPlayerByName(tostring(result.getDataString(result_plr, "name"))) if(cid) then local itemtogive_id = tonumber(result.getDataInt(result_plr, "param1")) local itemtogive_count = tonumber(result.getDataInt(result_plr, "param2")) local container_id = tonumber(result.getDataInt(result_plr, "param3")) local container_count = tonumber(result.getDataInt(result_plr, "param4")) local add_item_type = tostring(result.getDataString(result_plr, "param5")) local add_item_name = tostring(result.getDataString(result_plr, "param6")) local storage = tostring(result.getDataString(result_plr, "param7")) local received_item = 0 local full_weight = 0 if(add_item_type == 'container') then container_weight = getItemWeight(container_id, 1) if(isItemRune(itemtogive_id)) then items_weight = container_count * getItemWeight(itemtogive_id, 1) else items_weight = container_count * getItemWeight(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeight(itemtogive_id, itemtogive_count) if(isItemRune(itemtogive_id)) then full_weight = getItemWeight(itemtogive_id, 1) else full_weight = getItemWeight(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if(full_weight <= free_cap) then if(add_item_type == 'container') then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while(iter ~= container_count) do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) received_item = doPlayerAddItemEx(cid, new_item) end if(type(received_item) == "number" and received_item == RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received '.. add_item_name ..' from ArenaTibia Shop.') setPlayerStorageValue(cid,storage+555884621212,1) db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, ' '.. add_item_name ..' from ArenaTibia Shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, ' '.. add_item_name ..' ArenaTibia Shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end until not result.next(result_plr) result.free(result_plr) end return true end