Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

Tudo que mullino postou

  1. @Vodkart @Sttorm Ajudem??
  2. vou testar
  3. esse é um item amigo que o player faz quest ae ele ganha o item que add mana ou hp nele ! nao sou eu que edito
  4. Boa noite Galerinha do tk presciso de um action que quando usa da arma sword axe club bow e wand ela add um dano amais na arma por 48 horas depois que passar as 48 horas a arma volta o attack normal dela...... tipo issu tem como alguem me ajudar?? Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  5. Boa tarde Galerinha do TK Estou com um problema em 2 scripts de talkactions eles funciona para adicionar 1000 de life e 1000 de mana ao player.! mas se o player estiver level muito alto ele adiciona mais de 1000.! ja tentei corrigir os scripts mas nao Consegui!!!!....... alguem pode me ajuda??? script de life local storage = 3420060 function onSay(cid, words, param) local limit = isInArray({4,8,12}, getPlayerVocation(cid)) and 250 or isInArray({3, 7, 1, 2, 5, 6,9,10,11}, getPlayerVocation(cid)) and 125 or 0 local amount = getPlayerStorageValue(cid, storage) <= 0 and 0 or getPlayerStorageValue(cid, storage) if limit <= 0 or amount == limit then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce nao pode usar ou atingiu o limite maximo de "..limit.." Life Scroll por character.") return true end if doPlayerRemoveItem(cid,11213,1) and getCreatureMaxHealth(cid) <= 1900000 then setPlayerStorageValue(cid, storage) setCreatureMaxHealth(cid,getCreatureMaxHealth(cid) + 1000) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce recebeu 1000 de Life.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce nao tem life scroll ou ja atingiu o LIFE Maximo de life permitido digite !myhp.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return true end Scripit de Mana local storage = 3420050 function onSay(cid, words, param) local limit = isInArray({1,2, 5, 6,9,10}, getPlayerVocation(cid)) and 250 or isInArray({3, 7,11}, getPlayerVocation(cid)) and 125 or 0 local amount = getPlayerStorageValue(cid, storage) <= 0 and 0 or getPlayerStorageValue(cid, storage) if limit <= 0 or amount == limit then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce nao pode usar ou atingiu o limite maximo de "..limit.." Mana Scroll por character.") return true end if doPlayerRemoveItem(cid,9020,1) and getCreatureMaxMana(cid) <= 1900000 then setPlayerStorageValue(cid, storage) setCreatureMaxMana(cid,getCreatureMaxMana(cid) + 1000) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce recebeu 1000 de Mana.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce nao tem Mana scroll ou ja atingiu o Mana Maximo de mana permitido digite !mymp.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return true end obrigado +Rep
  6. eu estou com o mesmo problema ja coloquei no items.xml </item> <item id="11059" article="a" name="glowing switch"> <attribute key="walkStack" value="0"/> ja olhei em movmentes tiles.lua local config = { increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11059] = 11060}, decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11060] = 11059}, maxLevel = getConfigInfo('maximumDoorLevel') } tudo qualauer tutorial ja tentei mas nao consegui resolver issu alguem pode me ajudar??
  7. O problema é os efeito que são diferentes ....
  8. Alguem ajuda?? me deparo com um problema um pouco chato e queria a ajuda de vocês, arrumando os Exhausted do meus servidor me deparei com um problema, em que uma spell de heal, não se utiliza com uma spell de combo, etcc.. logo percebi que estavam separados em groups, mesmo editando o xml , uma não consegue ser usada junto com a outra, então comecei a pesquisar na source e me deparei com algumas linhas que poderiam solucionar o meu problema, que é usar as 3 spells ao mesmo tempo, para isso tenho que tirar a verificação que separa os 3 grupos para fazer ignorar os mesmos de forma, as 3 trabalhe em conjunto. poderiam me ajudar ? void Spell::postSpell(Player* player) const { if(!player->hasFlag(PlayerFlag_HasNoExhaustion) && exhaustion > 0) player->addExhaust(exhaustion, isAggressive ? EXHAUST_COMBAT : EXHAUST_HEALING); if(isAggressive && !player->hasFlag(PlayerFlag_NotGainInFight)) player->addInFightTicks(false); postSpell(player, (uint32_t)getManaCost(player), (uint32_t)getSoulCost());
  9. Bom dia Galerinha do tk Estou com um Problema no meu Otserv nao consigo usar magia de healar ou potions junto com outras magias tipo se eu estiver healando com magia exana mort, exura san , exura vita ou potions, eu nao consigo nem abrir a BP de tanto exaust que da o players nao desloga tem uma magia que remove o utamo vita e se o player estiver healando com potions ou spells ele usa a magia utamo ina e nao remove o utamo vita por causa do exaust ja nao sei mais onde mecher ja mechi no config lua ja mechei nas exaust do potions , das spells e nada vi um topico falando que é na source mas nao esplica como arrumar...
  10. vou testar akii mas tem mutos players que usa hotkey de healar e nao usa o healing do elfbot mas obrigado pela sua resposta
  11. estou com o mesmo problema alguem pode ajudar??
  12. Mesmo erro Aki Creio que está faltando uma lib
  13. Obrigado chegar em casa vou testar
  14. Podem me ajudar com um script quando eu equipo o item aparece a mensagem 3x em sequencia gostaria de saber se esta tudo certo com esse scritp? , e se issu e normal? Agora ganha 3x mais experiencia! Agora ganha 3x mais experiencia! Agora ganha 3x mais experiencia! function onEquip(cid, item, slot) doTransformItem(item.uid, 10502, 1) doPlayerSendTextMessage(cid, 22, 'Agora ganha 3x mais experiencia!') doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*0.2) return true end function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, 22, 'Experiencia extra cancelada.') doPlayerSetExperienceRate(cid, 1) return true end
  15. poste a script de para que possamos te ajuda amigo!
  16. Vcs podem me ajudar a criar um npc dice..... Quando o player estiver em x pos Ele fala um número de 1 a 6 e o NPC vai rodar o dado. Se parar no número que o player falou. O player recebe um prêmio configurável e teleportado para o templo.... Se o player não acertar o número ele só é teleportado para o templo.... @Vodkart @KotZletY. ?
  17. @Vodkart vc tem ideia do que seja essa funçao para instalar aki nao?? @KotZletY Nao tem quem me passou esse script foi uma adm de um ot a um tempo atras mais nem tenho o contato dele mais!
  18. Boa Tarde Galerinha do Tk estou com um evento dice aki no meu servidor mas esta dando erro, nao sei se e porque configurei errado mas ele nao teleporta o player devolta pro templo nem da para ir novamente local talkState = {} local focus, old_focus = 0, 0 local dice_pos = {x=1224,y=1166,z=7,stackpos=255} local player_pos = {x=1223,y=1168,z=7} local nme = "Dice" function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) local msg = string.lower(msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local function rollDice(cid,ammount) local value = math.random(5792, 5797) local item = getThingFromPos(dice_pos) if item and item.uid and item.uid > 0 and item.itemid >= 5792 and item.itemid <= 5797 then doTransformItem(item.uid, value) end doSendMagicEffect(dice_pos, CONST_ME_CRAPS) local rolled = value - 5791 doCreatureSay(getNpcId(), getCreatureName(getNpcId()) .. ' rolled a ' .. rolled .. '.', TALKTYPE_ORANGE_1) if rolled == ammount then local backpack = doCreateItemEx(10521) doAddContainerItem(backpack,12575,3) doAddContainerItem(backpack,12396,3) doAddContainerItem(backpack,7440,1) doAddContainerItem(backpack,12733,1) doPlayerAddItemEx(cid,backpack) doSendMagicEffect(getThingPos(cid),29) doCreatureSay(cid,gm(cid,nme,1),TALKTYPE_ORANGE_1) else doCreatureSay(cid,gm(cid,nme,2),TALKTYPE_ORANGE_1) doSendMagicEffect(getThingPos(cid),CONST_ME_POFF) end addEvent(function() doPlayerSetStorageValue(cid,722522,-1) doTeleportThing(cid,{x=154,y=50,z=7}) end,2000) end if isInArray({1,2,3,4,5,6},tonumber(msg)) and focus == cid then local storage = getPlayerStorageValue(cid,722522) if storage == -1 then doPlayerSetStorageValue(cid,722522,1) rollDice(cid,tonumber(msg)) end end end function onThink() local player = getTopCreature(player_pos) if player and player.uid and player.uid > 0 and isPlayer(player.uid) then if focus ~= player.uid then focus = player.uid selfSay(gm(cid,nme,3).." "..getCreatureName(player.uid)..".") addEvent(function() if isPlayer(player.uid) then doSendMagicEffect(getThingPos(player.uid),CONST_ME_POFF) doPlayerSetStorageValue(player.uid,722522.-1) doTeleportThing(player.uid,{x=154,y=50,z=7}) end end,10000) end end end olha o erro quando falo com o npc [Error - NpcScript Interface] data/npc/scripts/killuaDiceEvent.lua:onThink Description: data/npc/scripts/killuaDiceEvent.lua:62: attempt to call global 'gm' (a nil value) stack traceback: data/npc/scripts/killuaDiceEvent.lua:62: in function <data/npc/scripts/killuaDiceEvent.lua:56>
  19. Em data\actions\scripts crie um arquivo lua com o nome de livro e cole esse codico function onUse(cid, item, frompos, item2, topos) doPlayerPopupFYI(cid, 'MENSSAGEM AKI') return TRUE end EM ACTIONS.XML COLE ESSE CODICO <action itemid="ID DOLIVRO" event="script" value="Livro.lua"/> AJUDEI ??? +REP
  20. e como eu arrumo issu?? formatei a maguina aki
  21. ne qual ubuntu vc consegui me ajudar???
  22. Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). Base: baiak 8.6 tfs 0.4 Qual erro está surgindo/O que você procura? quando eu tinha o debian 8.7 eu dava 2 comando no putty e ja comessava a compilar a source make clean e depois make mas agora que troquei de vps para a lgvhost o debian deles e so o 8.11 e nao compila com esses comandos da erro alguem pode me ajudar?? root@localhost-95:/home/sourceotx# make clean rm -f obj/actions.o obj/cylinder.o obj/inputbox.o obj/monster.o obj/protocol.o obj/status.o obj/admin.o obj/database.o obj/databasemanager.o obj/ioban.o obj/monsters.o obj/protocolgame.o obj/talkaction.o obj/allocator.o obj/depot.o obj/ioguild.o obj/movement.o obj/protocolhttp.o obj/teleport.o obj/baseevents.o obj/dispatcher.o obj/iologindata.o obj/networkmessage.o obj/protocollogin.o obj/textlogger.o obj/beds.o obj/exception.o obj/iomap.o obj/npc.o obj/protocolold.o obj/thing.o obj/chat.o obj/fileloader.o obj/iomapserialize.o obj/otpch.o obj/quests.o obj/tile.o obj/combat.o obj/game.o obj/itemattributes.o obj/otserv.o obj/raids.o obj/tools.o obj/condition.o obj/gameservers.o obj/item.o obj/outfit.o obj/scheduler.o obj/trashholder.o obj/configmanager.o obj/globalevent.o obj/items.o obj/outputmessage.o obj/scriptmanager.o obj/vocation.o obj/connection.o obj/group.o obj/luascript.o obj/party.o obj/server.o obj/waitlist.o obj/container.o obj/gui.o obj/mailbox.o obj/playerbox.o obj/spawn.o obj/weapons.o obj/creature.o obj/house.o obj/manager.o obj/player.o obj/spectators.o obj/creatureevent.o obj/housetile.o obj/map.o obj/position.o obj/spells.o theotxserver root@localhost-95:/home/sourceotx# make g++ -c -march=native -mtune=native -I"." -I"/usr/include/lua5.1" -I"/usr/include/mysql" -I"/usr/include/libxml2" -DBOOST_DISABLE_ASSERTS -DNDEBUG -Werror -Wall -Ofast -g -std=c++11 -pthread -lpthread -fno-strict-aliasing -o obj/actions.o actions.cpp In file included from actions.cpp:17:0: otpch.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory #include <libxml/xmlmemory.h> ^ compilation terminated. Makefile:40: recipe for target 'obj/actions.o' failed make: *** [obj/actions.o] Error 1 root@localhost-95:/home/sourceotx# ja instalei todas as libs que vi nos tutoriais e nao consigo compilar por favor me ajudem root@localhost-95:/home/sourceotx# ./configure -enable-mysql -enable-server-diag -enable-root-permission checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /home/sourceotx/missing: Unknown `--is-lightweight' option Try `/home/sourceotx/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for ptrdiff_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for ceil... yes checking for floor... yes checking for ftime... yes checking for gethostbyname... yes checking for gethostname... yes checking for memset... yes checking for pow... yes checking for sqrt... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strstr... yes checking for strtol... yes ./configure: line 4961: syntax error near unexpected token `2.6.5,' ./configure: line 4961: `AM_PATH_XML2(2.6.5, , as_fn_error $? "You need libxml2 >= 2.6.5 to compile otxserver!" "$LINENO" 5)' root@localhost-95:/home/sourceotx# make -j 4 g++ -c -march=native -mtune=native -I"." -I"/usr/include/lua5.1" -I"/usr/include/mysql" -I"/usr/include/libxml2" -DBOOST_DISABLE_ASSERTS -DNDEBUG -Werror -Wall -Ofast -g -std=c++11 -pthread -lpthread -fno-strict-aliasing -o obj/actions.o actions.cpp g++ -c -march=native -mtune=native -I"." -I"/usr/include/lua5.1" -I"/usr/include/mysql" -I"/usr/include/libxml2" -DBOOST_DISABLE_ASSERTS -DNDEBUG -Werror -Wall -Ofast -g -std=c++11 -pthread -lpthread -fno-strict-aliasing -o obj/cylinder.o cylinder.cpp g++ -c -march=native -mtune=native -I"." -I"/usr/include/lua5.1" -I"/usr/include/mysql" -I"/usr/include/libxml2" -DBOOST_DISABLE_ASSERTS -DNDEBUG -Werror -Wall -Ofast -g -std=c++11 -pthread -lpthread -fno-strict-aliasing -o obj/protocol.o protocol.cpp g++ -c -march=native -mtune=native -I"." -I"/usr/include/lua5.1" -I"/usr/include/mysql" -I"/usr/include/libxml2" -DBOOST_DISABLE_ASSERTS -DNDEBUG -Werror -Wall -Ofast -g -std=c++11 -pthread -lpthread -fno-strict-aliasing -o obj/status.o status.cpp In file included from status.cpp:17:0: otpch.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory #include <libxml/xmlmemory.h> ^ compilation terminated. In file included from cylinder.cpp:17:0: otpch.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory #include <libxml/xmlmemory.h> ^ compilation terminated. In file included from actions.cpp:17:0: otpch.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory #include <libxml/xmlmemory.h> ^ compilation terminated. In file included from protocol.cpp:17:0: otpch.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory #include <libxml/xmlmemory.h> ^ compilation terminated. Makefile:40: recipe for target 'obj/cylinder.o' failed make: *** [obj/cylinder.o] Error 1 make: *** Waiting for unfinished jobs.... Makefile:40: recipe for target 'obj/status.o' failed make: *** [obj/status.o] Error 1 Makefile:40: recipe for target 'obj/actions.o' failed make: *** [obj/actions.o] Error 1 Makefile:40: recipe for target 'obj/protocol.o' failed make: *** [obj/protocol.o] Error 1 root@localhost-95:/home/sourceotx#
  23. Boa Tarde galerinha do tk Bem eu estava com uma vps quem tinha instalado o debian-8.7-x86_64 agora estou ne uma com o Debian 8 que é a 8.11 estava tentando compilar da mesma forma que compilo no 4youstart make clean make mas esta aparecendo esses erros e nao compila alguem pode me ajudar?? /usr/include/boost/bind/mem_fn_template.hpp:723:73: note: candidates are: In file included from /usr/include/boost/function/function_base.hpp:29:0, from /usr/include/boost/function/detail/prologue.hpp:17, from /usr/include/boost/function.hpp:24, from otpch.h:35, from protocolgame.cpp:17: /usr/include/boost/ref.hpp:182:29: note: template<class T> T* boost::get_pointer(const boost::reference_wrapper<T>&) /usr/include/boost/ref.hpp:182:29: note: template argument deduction/substitution failed: In file included from /usr/include/boost/bind/mem_fn.hpp:215:0, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:24, from otpch.h:35, from protocolgame.cpp:17: /usr/include/boost/bind/mem_fn_template.hpp:723:73: note: ‘std::shared_ptr<ProtocolGame>’ is not derived from ‘const boost::reference_wrapper<T>’ In file included from /usr/include/boost/bind/mem_fn.hpp:25:0, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:24, from otpch.h:35, from protocolgame.cpp:17: /usr/include/boost/get_pointer.hpp:18:23: note: template<class T> T* boost::get_pointer(T*) /usr/include/boost/get_pointer.hpp:18:23: note: template argument deduction/substitution failed: In file included from /usr/include/boost/bind/mem_fn.hpp:215:0, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:24, from otpch.h:35, from protocolgame.cpp:17: /usr/include/boost/bind/mem_fn_template.hpp:723:73: note: mismatched types ‘T*’ and ‘std::shared_ptr<ProtocolGame>’ In file included from /usr/include/boost/bind/mem_fn.hpp:25:0, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:24, from otpch.h:35, from protocolgame.cpp:17: /usr/include/boost/get_pointer.hpp:25:23: note: template<class T> T* boost::get_pointer(const std::auto_ptr<T>&) /usr/include/boost/get_pointer.hpp:25:23: note: template argument deduction/substitution failed: In file included from /usr/include/boost/bind/mem_fn.hpp:215:0, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:24, from otpch.h:35, from protocolgame.cpp:17: /usr/include/boost/bind/mem_fn_template.hpp:723:73: note: ‘std::shared_ptr<ProtocolGame>’ is not derived from ‘const std::auto_ptr<T>’ make: *** [obj/protocolgame.o] Error 1

Informação Importante

Confirmação de Termo