Ir para conteúdo
Banner com Efeitos

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. Tente isso local config = { exausted = 60, tempo = 30, [533] = {800, 534, 692, 114}, [126] = {800, 475, 107, 114} } function change(cid) doPlayerSetVocation(cid, voc[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Se Transformou Em Mode God!") doCreatureSay(cid, "Mode God", 19) setPlayerStorageValue(cid, 77889, os.time()+ config.exausted) local outfit = {lookType = voc[3]} doCreatureChangeOutfit(cid, outfit) doSendMagicEffect(getCreaturePosition(cid), voc[4]) end function onSay(cid, words, param, channel) local voc = config[getPlayerVocation(cid)] if getPlayerStorageValue(cid, 77889) >= os.time() then doPlayerSendCancel(cid, "You're exausted.") return TRUE end if isPremium(cid) then if voc then if getPlayerLevel(cid) >= voc[1] then addEvent(change, config.tempo * 1000, cid) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para se Transformar Em Mode God.") end else doPlayerSendCancel(cid, "Nao é possível se transformar em Mode God.") end else doPlayerSendCancel(cid, "You must be premium account to use this command.") end return true end
  2. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Não existe outra maneira a não ser editar as sources.
  3. Como assim voce quer bloquear o acc manager no Gesior? Voce quis dizer editar a acc aonde que fica os samples? Se sim, então, simplesmente troque o password deles na database para algo bem dificil, eg: 8g8rg47w9idjls0dkb. ou bate de cara no teclado p escolher o password
  4. vankk postou uma resposta no tópico em Portal
    Não acredito que perdi isso
  5. local config = { ['citizen'] = { male = 128, female = 136 }, ['hunter'] = { male = 129, female = 137 }, ['mage'] = { male = 130, female = 141 }, ['knight'] = { male = 131, female = 139 }, ['noble'] = { male = 132, female = 140 }, ['summoner'] = { male = 133, female = 138 }, ['warrior'] = { male = 134, female = 142 }, ['barbarian'] = { male = 147, female = 143 }, ['druid'] = { male = 148, female = 144 }, ['wizard'] = { male = 149, female = 145 }, ['oriental'] = { male = 150, female = 146 }, ['pirate'] = { male = 151, female = 155 }, ['assassin'] = { male = 152, female = 156 }, ['beggar'] = { male = 153, female = 157 }, ['shaman'] = { male = 154, female = 158 }, ['norseman'] = { male = 251, female = 252 }, ['nightmare'] = { male = 268, female = 269 }, ['jester'] = { male = 273, female = 270 }, ['brotherhood'] = { male = 278, female = 279 }, ['demonhunter'] = { male = 289, female = 288 }, ['yalaharian'] = { male = 325, female = 324 }, ['wedding'] = { male = 328, female = 329 }, ['warmaster'] = { male = 335, female = 336 }, ['wayfarer'] = { male = 367, female = 366 }, ['afflicted'] = { male = 430, female = 431 }, ['elementalist'] = { male = 432, female = 433 }, ['deepling'] = { male = 463, female = 464 }, ['insectoid'] = { male = 465, female = 466 }, ['entrepreneur'] = { male = 472, female = 471 }, ['crystal warlord'] = { male = 512, female = 513 }, ['soil guardian'] = { male = 516, female = 514 }, ['demon'] = { male = 541, female = 542 }, ['cave explorer'] = { male = 574, female = 575 }, ['dream warden'] = { male = 577, female = 578 }, ['glooth engineer'] = { male =610, female =618 }, ['jersey'] = { male = 619, female = 620 }, ['champion'] = { male =633 , female = 632 }, ['conjurer'] = { male = 634, female = 578 }, ['beastmaster'] = { male = 637, female =636 }, ['chaos acolyte'] = { male = 664, female = 665 }, ['death herald'] = { male = 667, female = 578 }, ['ranger'] = { male = 684, female = 683 }, ['ceremonial grab'] = { male = 695, female = 694 }, ['puppeteer'] = { male = 697, female = 696 }, ['spirt caller'] = { male = 699, female = 698 }, } function onSay(cid, words, param) local targetOutfit = config[param:lower()] if not targetOutfit then return false end local player = Player(cid) if player:getSex() == 0 then if param == 'mage' then targetOutfit.female, targetOutfit.male = 138, 133 elseif param == 'summoner' then targetOutfit.female, targetOutfit.male = 141, 130 end end if player:hasOutfit(player:getSex() == 0 and targetOutfit.female or targetOutfit.male, 3) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have already obtained the ' .. param .. ' addons.') return false end if not player:removeItem(8982, 1) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You need an addon doll.') return false end player:addOutfitAddon(targetOutfit.female, 3) player:addOutfitAddon(targetOutfit.male, 3) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have received the ' .. param .. ' addons!') player:getPosition():sendMagicEffect(CONST_ME_FIREWORK_YELLOW) return false end function onSay(cid, words, param) local mounts = { ["widow"] = {id = 1}, ["bird"] = {id = 2}, ["bear"] = {id = 3}, ["sheep"] = {id = 4}, ["panther"] = {id = 5}, ["draptor"] = {id = 6}, ["titanica"] = {id = 7}, ["lizzard"] = {id = 8}, ["blazebringer"] = {id = 9}, ["rapidboar"] = {id = 10}, ["stampor"] = {id = 11}, ["undeadcavebear"] = {id = 12}, ["donkey"] = {id = 13}, ["slug"] = {id = 14}, ["uniwheel"] = {id = 15}, ["crystalwolf"] = {id = 16}, ["panda"] = {id = 19}, ["dromedary"] = {id = 20}, ["kingscorpion"] = {id = 21} } local p = Player(cid) if(p:getItemCount(9019) > 0) then local t = mounts[string.lower(param)] if(param ~= "" and t) then if(t and not p:hasMount(t.id)) then p:removeItem(9019, 1) p:sendTextMessage(MESSAGE_INFO_DESCR, "Sua mount foi adicionada!") p:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS) p:addMount(t.id) else p:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem esta mount.") end else p:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!") end else p:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem um mount doll!") end return true end Edite os addons/mounts que voce queira..
  6. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Não vou baixar um anexo de .BMP, por favor upe a imagem corretamente.. Upe ou no imgland.net ou imgur.com pegue o link e clique em inserir outra mídia e inserir imagem a partir de uma URL, aqui no forum.
  7. Como assim uma continuacao? Isso é uma pequena versão do que voce queria.. Não tive intencões de ser agressivo.
  8. Ele muta o player por certa quantidade de tempo (1-3 minutos). Porém, sem reason.
  9. @JohnnyDK function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " is not currently online.") return true end if(getPlayerAccess(cid) <= getPlayerAccess(pid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot perform action.") return true end doMutePlayer(pid, math.random(1,3)) return true end Este script está sem reason, porém muta o player por 1-3 minutos. Eu acho. Não sei nem quem é esse cara, e outra..
  10. Achei esse script no google, não sei se vai funcionar: local v = {} for k = 1, 100 do table.insert(v, createConditionObject(CONDITION_MUTED)) setConditionParam(v[k], CONDITION_PARAM_TICKS, k*60*1000) end local timea = k*60*1000 function onSay(cid, words, param) if (words == "/mute") then local t = string.explode(param, ",") if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local player,time,pid = getPlayerByName(t[1]),t[2],getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return true end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You muted Player "..t[1].." for "..tonumber(timea).." minutes.") doAddCondition(player, v[tonumber(time)]) setPlayerStorageValue(player, 90000, os.time()+time*60) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "You have been muted for "..tonumber(timea).." minutes.") elseif (words == "/desmute") then if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local player = getPlayerByNameWildcard(param) if(not player)then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return true end if getCreatureCondition(player, CONDITION_MUTED) == false then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This player is not muted.") return true end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You desmuted player "..param..".") doRemoveCondition(player, CONDITION_MUTED) setPlayerStorageValue(player, 90000, -1) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "You have been desmuted.") end return true end <talkaction log="yes" words="/mute;/desmute" access="2" event="script" value="muteplayer.lua"/> /mute NAME,MINUTES
  11. @luangop No TFS 1.2 todas essas funcões são atualizadas. #thread Tente utilizar esse script, e eu acho que não tem como criar um tp que leve para a alguma posicão no TFS 1.2, então, voce precisa criar um movements com o ID 4512 (está configuravel) para teletransportar o player para a position que voce quiser. local config = { time = 2, -- time tpID = 1387, -- tp id tp = {x=995, y=999, z=7}, -- where creates the tp teleportUid = 4512 -- uniqueid TP } local function checkTeleport() local tp = Tile(config.pos):getItemById(config.id) if not tp then local teleport = Game.createItem(config.id, 1, config.pos) if teleport then teleport:setAttribute(ITEM_ATTRIBUTE_UNIQUEID, config.teleportUid) Game.broadcastMessage('O Portal Para o Boss Devovorga Foi Aberto No Templo De Thais e Fechara em '..configtime..' minutes.', MESSAGE_STATUS_WARNING) addEvent(function() teleport:remove() getTileItemById(config.tp, config.tpID) end, config.time * 1000) addEvent(function() doSendMagicEffect(config.tp, CONST_ME_TELEPORT) end, config.time * 1000) end end end function onSay(player, words, param) if not player:getGroup():getAccess() then return true end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Teleport has open.') checkTeleport() return true end
  12. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Como assim um efeito? Já possui um efeito.. doSendMagicEffect(getCreaturePosition(cid), voc[4]) ,porém, se voce quiser adicionar outro efeito, voce adiciona em baixo dessa linha: doSendMagicEffect(getCreaturePosition(cid), MAGIC_EFFECT_SOUND_RED) Se voce quiser mudar o efeitos, está aqui a lista de efeitos, vai da linha 24 até 94. https://github.com/Extrodus/TFS-0.4-rev.3884/blob/master/const.h
  13. Muito obrigado, eu não aguentava mais ter que olhar as functions pelo luascript.cpp.
  14. vankk postou uma resposta no tópico em Suporte & Pedidos
    @Larissa Azhaurn Voce está muito zoeira, vamos parar .-. @Guilherme Muito obrigado cara. (kappa)
  15. Vc tbm está utilizando um script muito outdated, se não me engano o Gesior que fez esse script em meados de 2008.
  16. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Se vc nao passar o script fica dificil poder te ajudar.
  17. Para que voce está especificando esse diretorio data/npc/scripts/halloween.lua? Invés de colocar apenas hallowen.lua?
  18. Como que deveria funcionar?
  19. vankk postou uma resposta no tópico em Suporte & Pedidos
    Mais um evento criado para o AuraOT. (Não serão esses itens, serão outros items).
  20. Edita com notepad(?), compila com MSCV 2015.
  21. Tente olhar seus spells.xml.
  22. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    @Lykkan Tenta isso: local statues = { [18488] = SKILL_SWORD, [18489] = SKILL_AXE, [18490] = SKILL_CLUB, [18491] = SKILL_DISTANCE, [18492] = SKILL_MAGLEVEL } function onUse(player, item, fromPosition, target, toPosition, isHotkey) local skill = statues[item.itemid] if not skill then return false end if not player:isPremium() then player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUNEEDPREMIUMACCOUNT)) return true end if player:isPzLocked() then return false end player:setOfflineTrainingSkill(skill) player:remove() return true end
  23. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Poste o script da potions, pq não sei adivinhar as coisas ainda para saber qual é o script, e para depois eu descobrir aonde que é o problema .-.

Informação Importante

Confirmação de Termo