Ir para conteúdo

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. setPlayerStorageValue(cid, 22334, os.time() + 1000 * 60 * 60 * 10) -- 10 horas if getPlayerStorageValue(cid, 22334) - os.time() <= 0 then
  2. Talvez? local config = { storageValue = 5849, -- storage para checar se tem o nome ou não days = 30, daysvalue = days * 24 * 60 * 60, storageplayer = getPlayerStorageValue(cid, 23510), timenow = os.time(), time = getPlayerStorageValue(cid, 23510) - os.time() <= 0 and timenow + daysvalue or storageplayer + daysvalue } function onUse(cid, item, fromPosition, itemEx, toPosition) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. config.days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 23510, config.time) if getPlayerStorageValue(cid, config.storageValue) < 1 then setPlayerStorageValue(cid, config.storageValue, 1) db.executeQuery("UPDATE `players` SET `name` = '[VIP]" .. getCreatureName(cid) .. "' WHERE `id` = " .. getPlayerGUID(cid)) end local quantity = math.floor((getPlayerStorageValue(cid, 23510) - config.timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. config.quantity .." dias de VIP restantes.") doRemoveItem(item.uid, 1) return true end
  3. !sellhouse player_name e então:
  4. Sim, isso é na distro. Tente utilizar essa aqui: http://www.tibiaking.com/forum/topic/33395-tfs-04-cast/?page=1 Provável que esteja correta.
  5. Faça um scan no VirusTotal e veja quais outros anti-virus detecta esse problema, e avisa no seu site que o anti-virus X, Y e Z estão detectando que o cliente possui vírus, porém é um falso-positivo. Infelizmente é o que eu posso te ajudar devido ao meu pouco conhecimento sobre servidores derivados, e não ter nenhum interesse em aprender também.
  6. Desativar/desinstalar o anti-virus talvez? Geralmente os anti-virus acusam o TFS de terem virus, porém é um falso-positivo, nada demais.
  7. Um feliz natal a todos! Lembrando que o Eternia estará online em Janeiro de 2016. It's not easy, I'm not made out of steel
  8. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Importar?!
  9. Não fez corretamente, ou não compilou corretamente, porque esse é o único jeito de arrumar esse problema
  10. local function event(pos) local corpse = getTileItemByType(pos, ITEM_TYPE_CONTAINER).uid local item = 2160 -- item id if corpse > 0 then doAddContainerItem(corpse, item) end end function onKill(cid, target, lastHit) addEvent(event, 0, getThingPos(target)) return true end Utilize esse script, porém você vai ter que configurar os monstros que vai dropar. Você vai ter que colocar em cada monstro: <script> <event name="EventName"/> </script> Muda o nome do event pelo nome que você colocar no creaturescripts. Boa sorte.
  11. function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLevel(cid) =< 50 then if getPlayerStorageValue(cid, 5640) == -1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found 2 crystal coins.') doPlayerAddItem(cid, 2160, 2) setPlayerStorageValue(cid, 5640, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'It is empty.') end elseif getPlayerLevel(cid) >= 51 and getPlayerLevel(cid) =< 100 then if getPlayerStorageValue(cid, 5641) == -1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found 5 crystal coins.') doPlayerAddItem(cid, 2160, 5) setPlayerStorageValue(cid, 5641, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'It is empty.') end elseif getPlayerLevel(cid) >= 101 and getPlayerLevel(cid) =< 150 then if getPlayerStorageValue(cid, 5642) == -1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found 10 crystal coins.') doPlayerAddItem(cid, 2160, 10) setPlayerStorageValue(cid, 5642, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'It is empty.') end end return true end
  12. Muitos falam, mas poucos são capazes de serem melhor. Atualmente as quests free já estão finalizadas, deu bastante trabalho, mas felizmente consegui deixar do jeito que eu queria, tudo em scripts, e bem organizados. Agora começo a trabalhar melhor nos teleports free, e decidir se mantenho a ideia de ter ou não monstro editados. O que acham? Opinem. E um agradecimento especial: @Azhaurn por ter/estar procurado bugs no servidor.
  13. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    A @Azhaurn já te falou o que é para fazer, e é simples. Edite o items.xml. Se você não sabe fazer tais coisas que ela falou você não merece donates no seu servidor.
  14. Errado, é apenas mudar as configurações para 32
  15. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Coloque o code no pastebin.com
  16. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Ainda não consigo adivinhar codes, então não consigo te ajudar se você não mandar a merda do latestnews.php.
  17. O erro continua se você não tiver feito o que eu falei
  18. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Procure por tutoriais na internet, se não, procure pessoas que entendem de compilação e pague por esse serviço.
  19. Você não configurou a pasta das libs direito Warning não são nada, são apenas avisos que da na hora de compilar.
  20. Sim, sempre o que estiver em name no XML que será registrado no login.lua. Entendeu?
  21. <event type="think" interval="2000" name="particulas" script="particulas.lua"/> E registra particulas no login.lua Se não entender o que disse, aprenda lua.
  22. Você tem que compilar com MSVC 2013 ou 2015
  23. Ops. function onKill(cid, target) if isPlayer(target) == TRUE then if getCreatureSkullType(cid) == 4 or getCreatureSkullType(cid) == 3 and getCreatureSkullType(target) == 0 and isPlayer(target)then broadcastMessage(getCreatureName(cid) .. " killed ".. getCreatureName(target)..".",MESSAGE_STATUS_CONSOLE_ORANGE) elseif getCreatureSkullType(target) == 3 or getCreatureSkullType(target) == 4 and isPlayer(target) then broadcastMessage(getCreatureName(cid) .. " killed ".. getCreatureName(target)..".",MESSAGE_STATUS_CONSOLE_ORANGE) end end return TRUE end
  24. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Monsters e NPCs Para: Suporte OTServ > OTServ > Suporte de Scripts <?xml version="1.0" encoding="UTF-8"?> <npc name="Guide" script="default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="268" head="114" body="94" legs="114" feet="114" addons="3"/> <parameters> <parameter key="message_greet" value="Hey |PLAYERNAME|, welcome to (the server name) what would you like to know: {cities}, premium, and promotion npcs, other" /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="cities;camelot;sajona;egipt;Premium and promotion;npc;other;map;hunt;information" /> <parameter key="keyword_reply1" value="what city would you like to know: Camelot, Egipt or Sajona?." /> <parameter key="keyword_reply2" value="bla, bla bla." /> <parameter key="keyword_reply3" value="bla, bla bla." /> <parameter key="keyword_reply4" value="bla, bla bla." /> <parameter key="keyword_reply5" value="for buying premium you can use the command !buypremium for 5k for 10 days and for having promotion you can go to the king of your city and ask him." /> <parameter key="keyword_reply6" value="in all city you will find different npc that will give everything you will need like magic store, buying or selling weapons, paladin store, equipment store, outfit store and more!." /> <parameter key="keyword_reply7" value="you want to know about: the map, hunt or information of (server name)." /> <parameter key="keyword_reply8" value="well, the (name of the server) has 5 cities, the other 2 that I didnt talk is Transilvania in the north of Camelot and it is goberned by undead people and the other city is Tartaro that only you can go by boat being lvl 50 and there you will find the most dificult quests that you will probably will like to do like Annihilator,Pits of inferno or Demon helmet quest." /> <parameter key="keyword_reply9" value="the hunt zones are divided in 2 parts that are the begginers teleports that you dont need to be premium and the teleports for premium that are more advanced monsters with many quest and to travel to other city. YOU MUST KNOW THAT TO GET BACK TO THE CITY AFTER HUNTING YOU MUST DO IT WALKING!." /> <parameter key="keyword_reply10" value="the server is with stages you will begin with x17 then x12 then x7 finally x5 magic: x7 skills:x15 redskull: kill5." /> </parameters> </npc>
  25. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: WebSites OTServ > OTServ > Tutoriais de Websites Para: Suporte OTServ > OTServ > Suporte de WebSites

Informação Importante

Confirmação de Termo