Ir para conteúdo

luanmaximus

Membro
  • Registro em

  • Última visita

Tudo que luanmaximus postou

  1. Não aconselho fazer isso pq se diminuir o exhaust das potions de cura ou mana vai ficar mais difícil matar algum player, mas se vc quiser dar uma olhada, vai em /data/actions/scripts/other/potions.lua e procura por: local exhaust = Condition(CONDITION_EXHAUST_HEAL) exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100)) Muda onde está "100", n sei se vai dar certo pq nunca tentei. Já as runas é mais simples, é só abrir o spells.xml e procurar a runa que vc quer e mudar o exhaustion="2000"
  2. Vai no arquivo do seu monstro e procure por: <flag convinceable="0" /> Se tiver 0 troque pra 1
  3. Fala galera do TK, blz? então... to a dias tentando compilar no Ubuntu e recebo sempre o mesmo erro. Informações: trunk 3777 Ubuntu 14.04 Eu faço: chmod 777 -R autogen.sh ./autogen.sh e recebo isso: autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:3: installing './install-sh' configure.ac:3: installing './missing' Makefile.am: installing './depcomp' autoreconf: Leaving directory `.' Depois: ./configure --enable-mysql --enable-root-permission E recebo isso: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... 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 checking for xml2-config... /usr/bin/xml2-config checking for libxml - version >= 2.6.5... yes (version 2.9.1) checking gmp.h usability... yes checking gmp.h presence... yes checking for gmp.h... yes checking for __gmpz_init2 in -lgmp... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for main in -lz... yes checking for main in -lboost_thread-gcc-mt... no checking for main in -lboost_thread-mt... yes checking for main in -lboost_regex-gcc-mt... no checking for main in -lboost_regex-mt... yes checking for main in -lboost_system-gcc-mt... no checking for main in -lboost_system-mt... yes checking for main in -lboost_date_time-gcc-mt... no checking for main in -lboost_date_time-mt... yes checking for main in -lboost_filesystem-gcc-mt... no checking for main in -lboost_filesystem-mt... yes checking boost/asio.hpp usability... yes checking boost/asio.hpp presence... yes checking for boost/asio.hpp... yes checking boost/tr1/unordered_set.hpp usability... yes checking boost/tr1/unordered_set.hpp presence... yes checking for boost/tr1/unordered_set.hpp... yes checking cryptopp/sha.h usability... yes checking cryptopp/sha.h presence... yes checking for cryptopp/sha.h... yes checking cryptopp/md5.h usability... yes checking cryptopp/md5.h presence... yes checking for cryptopp/md5.h... yes checking cryptopp/adler32.h usability... yes checking cryptopp/adler32.h presence... yes checking for cryptopp/adler32.h... yes checking cryptopp/hex.h usability... yes checking cryptopp/hex.h presence... yes checking for cryptopp/hex.h... yes checking cryptopp/base64.h usability... yes checking cryptopp/base64.h presence... yes checking for cryptopp/base64.h... yes checking cryptopp/hmac.h usability... yes checking cryptopp/hmac.h presence... yes checking for cryptopp/hmac.h... yes checking cryptopp/cryptlib.h usability... yes checking cryptopp/cryptlib.h presence... yes checking for cryptopp/cryptlib.h... yes checking for main in -lcryptopp... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LUA... yes checking mysql/mysql.h usability... yes checking mysql/mysql.h presence... yes checking for mysql/mysql.h... yes checking for main in -lmysqlclient... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands theforgottenserver 0.4 Server diagnostics.......... : no Login server mode........... : no OTAdmin protocol............ : no Root run permission......... : yes Login server mode........... : no Home-directory configuration : no OTServ custom allocator..... : no Debug build................. : no Using LuaJIT................ : no Build with MySQL............ : yes Build with SQLite........... : no Build with PostgreSQL....... : no E ai quando eu dou o maldito make eu recebo esse erro "BOOST_DISABLE_THREADS" make[1]: Entering directory `/otserv/trunk' g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-aliasing -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp In file included from /usr/include/boost/thread/detail/platform.hpp:17:0, from /usr/include/boost/thread/thread.hpp:12, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS" # error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS" ^ In file included from /usr/include/boost/thread/thread.hpp:12:0, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/detail/platform.hpp:67:9: error: #error "Sorry, no boost threads are available for this platform." # error "Sorry, no boost threads are available for this platform." ^ In file included from /usr/include/boost/thread.hpp:13:0, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/thread.hpp:19:2: error: #error "Boost threads unavailable on this platform" #error "Boost threads unavailable on this platform" ^ In file included from /usr/include/boost/thread/detail/thread.hpp:11:0, from /usr/include/boost/thread/thread.hpp:22, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform" #error "Boost threads unavailable on this platform" ^ In file included from /usr/include/boost/thread/detail/thread.hpp:13:0, from /usr/include/boost/thread/thread.hpp:22, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/detail/thread_heap_alloc.hpp:19:2: error: #error "Boost threads unavailable on this platform" #error "Boost threads unavailable on this platform" ^ In file included from /usr/include/boost/thread.hpp:14:0, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/condition_variable.hpp:18:2: error: #error "Boost threads unavailable on this platform" #error "Boost threads unavailable on this platform" ^ In file included from /usr/include/boost/thread.hpp:17:0, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/once.hpp:18:2: error: #error "Boost threads unavailable on this platform" #error "Boost threads unavailable on this platform" ^ In file included from /usr/include/boost/thread.hpp:18:0, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/recursive_mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform" #error "Boost threads unavailable on this platform" ^ In file included from /usr/include/boost/thread.hpp:22:0, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/shared_mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform" #error "Boost threads unavailable on this platform" ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/basic_string.h:39, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/stdexcept:39, from /usr/include/boost/function/function_base.hpp:14, from /usr/include/boost/function/detail/prologue.hpp:17, from /usr/include/boost/function.hpp:24, from otpch.h:34, from actions.cpp:17: /usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant TIME_UTC=1 ^ /usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant /usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant In file included from /usr/include/boost/thread/detail/thread.hpp:12:0, from /usr/include/boost/thread/thread.hpp:22, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’ operator system_time() const ^ In file included from /usr/include/boost/thread/detail/thread.hpp:12:0, from /usr/include/boost/thread/thread.hpp:22, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’: /usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope *xtp=get_xtime(get_system_time()); ^ /usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative: In file included from /usr/include/boost/thread/xtime.hpp:14:0, from /usr/include/boost/thread/detail/thread.hpp:12, from /usr/include/boost/thread/thread.hpp:22, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/thread_time.hpp:18:24: note: ‘boost::get_system_time’ inline system_time get_system_time() ^ In file included from /usr/include/boost/thread/detail/thread.hpp:12:0, from /usr/include/boost/thread/thread.hpp:22, from /usr/include/boost/thread.hpp:13, from otsystem.h:34, from baseevents.h:20, from actions.h:20, from actions.cpp:20: /usr/include/boost/thread/xtime.hpp: At global scope: /usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token } // namespace boost ^ make[1]: *** [actions.o] Error 1 make[1]: Leaving directory `/otserv/trunk' make: *** [all] Error 2 Por favor, alguém me ajuda ja procurei no google e não achei nada.
  4. Funcionou perfeitamente Zipter, obrigado. REP
  5. Obrigado por responder. Coloquei assim: function onStepIn(cid, item, fromPosition, itemEx, toPosition) local storage = 417345 local slot = { getPlayerSlotItem(cid, CONST_SLOT_HEAD), getPlayerSlotItem(cid, CONST_SLOT_ARMOR), getPlayerSlotItem(cid, CONST_SLOT_LEGS), getPlayerSlotItem(cid, CONST_SLOT_LEFT), getPlayerSlotItem(cid, CONST_SLOT_RIGHT), } if(getCreatureStorage(cid, storage) < 0) then doCreatureSetStorage(cid, storage, 1) for k, v in pairs(slot) do doPlayerRemoveItem(cid, v, 1) doSendMagicEffect(getThingPos(cid), 13) end end return true end mas continua a mesma coisa.
  6. Fala galera do TK, blz? então... é o seguinte, eu mesmo tentei fazer esse script mas não obtive sucesso, o script funciona assim, quando o player pisar na SQM ira remover os itens da HEAD, ARMOR, LEGS, LEFT e RIGHT. Segue o script function onStepIn(cid, item, fromPosition, itemEx, toPosition) local storage = 417345 local slot = { getPlayerSlotItem(cid, CONST_SLOT_HEAD), getPlayerSlotItem(cid, CONST_SLOT_ARMOR), getPlayerSlotItem(cid, CONST_SLOT_LEGS), getPlayerSlotItem(cid, CONST_SLOT_LEFT), getPlayerSlotItem(cid, CONST_SLOT_RIGHT), } if(getCreatureStorage(cid, storage) < 0) then doCreatureSetStorage(cid, storage, 1) doPlayerRemoveItem(cid, slot, 1) doSendMagicEffect(getThingPos(cid), 13) else doSendMagicEffect(getThingPos(cid), 2) end return true end <movevent type="StepIn" actionid="29373" event="script" value="removeitem.lua"/> Quando eu piso no SQM ele faz o magic effect e adiciona a storage só que não remove os itens e também não da nenhum erro HELP PLS!
  7. luanmaximus postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    O que ela faz? Ela te deixa imortal durante 10 segundos (configurável) muda seu outfit (configurável) e tem cooldown de 2 minutos (configurável). Testado em: TFS 8.54 0.4 rev3777 Vídeo: http://youtu.be/5iL8V2Y1BIQ OBS: A principio eu queria deixar que o player que usasse essa magia não receberia dano algum, mas como eu sei pouco de script eu fiz que o player ganhe 100000 de vida e recupere 100000 de vida por segundo (configurável). OBS2: Peguei alguns exemplos de magias do xWhiteWolf aqui no fórum, como o cooldown e a troca de outfit masculina e feminina então 50% dos créditos vão para ele. OBS3: É uma MAGIA simples é fácil de fazer mas como não achei no fórum acredito possa interessar a alguém. Vá em spells/scripts e crie um arquivo chamado immortal.lua e coloque isso dentro: local vida = 100000 local tempo = 10000 local moutifit = {lookType = 268, lookHead = 0, lookBody = 114, lookLegs = 114, lookFeet = 114, lookTypeEx = 0, lookAddons = 3} local foutifit = {lookType = 269, lookHead = 114, lookBody = 114, lookLegs = 114, lookFeet = 114, lookTypeEx = 0, lookAddons = 3} local cooldown = 120 local storage = 34214 local sex = getPlayerSex(cid) local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, vida) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_STAT_MAXHEALTH, vida) setConditionParam(condition2, CONDITION_PARAM_TICKS, tempo) setConditionParam(condition2, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition, condition2) function onCastSpell(cid, var) if os.time() - getPlayerStorageValue(cid, storage) >= cooldown then doPlayerSetStorageValue(cid, storage, os.time()) else doPlayerSendTextMessage(cid, 20, "Your spell is in cooldown, you must wait "..(cooldown - (os.time() - getPlayerStorageValue(cid, storage))).." seconds.") return false end if sex == 0 then doSetCreatureOutfit(cid, foutifit, tempo) doSendAnimatedText(getPlayerPosition(cid), "Immortal!", TEXTCOLOR_WHITE) doPlayerSendTextMessage(cid,20,"You are immortal.") else doSetCreatureOutfit(cid, moutifit, tempo) doSendAnimatedText(getPlayerPosition(cid), "Immortal!", TEXTCOLOR_WHITE) doPlayerSendTextMessage(cid,20,"You are immortal.") end return doCombat(cid, combat, var), doAddCondition(cid, condition2) and doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) end Agora vá abra spells.xml e adicione isso: <instant name="Immortal" words="utito immortal" lvl="100" manapercent="30" prem="1" aggressive="0" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="immortal.lua"> <vocation id="7"/> <vocation id="17"/> </instant> OBS4: Sei que eu poderia diminuir o tamanho do script colocando apenas uma vez que ele diga "Immortal!" e a mensagem no console, só que eu não consigo fazer desculpa. Configuração: Criticas e sugestões por favor.

Informação Importante

Confirmação de Termo