Ir para conteúdo
Banner com Efeitos

xWhiteWolf

Héroi
  • Registro em

  • Última visita

Tudo que xWhiteWolf postou

  1. vc quer comparar o id do item pego, então vc tem que por .itemid no final do getPlayerSlotItem haha, testa agora function onLogin(cid) itensVip = { "12607" } -- itens vips if (getPlayerStorageValue(cid, 55555) <= 0) then for i=0, #itensVip do for b = 1,9 do if (getPlayerSlotItem(cid, b).itemid == itensVip[i]) then doPlayerRemoveItem(cid, itensVip[i]) local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, itensVip[i], 1) end end end end return true end
  2. o sistema de só player equipar é um movements com return false? porque se for é só vc fazer um creaturescripts onLogin pra remover o item vip use doPlayerRemoveItem(cid, itemid, count) juntamente com um checador pra garantir que seja o item certo. (Pode usar getPlayerSlotItem(cid, slot) pra esse caso.) e depois doPlayerAddItem(cid, id do item, quantidade)
  3. xWhiteWolf postou uma resposta no tópico em Suporte Tibia OTServer
    acho que resolve: local config = { pos = {x = 1234, y = 728, z = 6}, -- posição da aegis dimension tempo = 60, -- tempo pra voltar effect1 = 91, -- efeito ao ser teleportado effect2 = 91, -- efeito ao voltar distance = 15, --- distancia que você vai ter que estar do centro do kamui pra poder usar a magia storagecool = 94283, -- storage do cooldown cooldown = 20 -- tempo entre um uso e outro } function onCastSpell(cid, var) if getDistanceBetween(getThingPos(cid), config.pos) <= config.distance then doPlayerSendCancel(cid, "You cant use kamui inside the kamui.") return false end if getPlayerStorageValue(cid, config.storagecool) - os.time() > 0 then doPlayerSendCancel(cid, "Your spell is in cooldown, wait ".. getPlayerStorageValue(cid, config.storagecool) - os.time() .." to use it again.") return false end if isPlayer(getCreatureTarget(cid)) then target = getCreatureTarget(cid) setPlayerStorageValue(cid, config.storagecool, os.time() + config.cooldown) addEvent(doTeleportThing, 1000*config.tempo, target, getThingPos(target), true) addEvent(doSendMagicEffect, 1000*config.tempo, getThingPos(target), config.effect2) doSendMagicEffect(getThingPos(target), config.effect1) doTeleportThing(target, config.pos) if isCreature(cid) then doPlayerSendTextMessage(target, 27, "You were teleported by ".. getCreatureName(cid) ..".") end if isPlayer(cid) and isCreature(target) then doPlayerSendTextMessage(cid, 27, "You teleported ".. getCreatureName(target) .."!") end for i = 1,config.tempo do addEvent(function() if isCreature(target) then doPlayerSendTextMessage(target,25,"You'll be back in " .. config.tempo -i +1 .. " second(s)") end end, 1000*i) end else doPlayerSendCancel(cid, "You can only use this spell in players") end return true end
  4. xWhiteWolf postou uma resposta no tópico em Playground (Off-topic)
    AEUIAUHIEUHIAHUUHIUHIEUHIAUHIEUHIA CARALHO COMO EU AMO ESSE FÓRUM
  5. se vc orar por mim é capaz de vc pegar fogo cara auheiuauhiheuia
  6. acredito que fique mais bonito e simplificado dessa forma: local tab = { lvl = 300, msg = "Apenas players até o level "..tab.lvl.." podem entrar." } function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) <= tab.lvl then doTeleportThing(cid, topos) doSendMagicEffect(frompos, CONST_ME_MAGIC_BLUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tab.msg) doSendMagicEffect(frompos, CONST_ME_POFF) end return true end
  7. faz tempo já... ultimamente eu to achando que eu vou chegar no inferno e falar pro diabo: "sai do meu trono"
  8. xWhiteWolf postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    Conversem em PM e parem de floodar o tópico.
  9. Simplicidade é o último grau de sofisticação!
  10. xWhiteWolf postou uma resposta no tópico em Playground (Off-topic)
    me fizeram 3 signs nesse dia, eu tive que fazer votação pra ver qual ficava e a sua foi a escolhida auhuhauh
  11. parece um saco de feijão
  12. xWhiteWolf postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    dei uma editada no script, vê agora
  13. você precisa de uma função que não tem aí.. qualquer que seja o lugar que você pegou esse script, ficou faltando uma parte dele (provavelmente a lib)
  14. @Gabrielbsales, oque eu quis dizer é que ela é feita somente com base nas próprias funções da linguagem, não tem nenhum comando da source nela e por conta disso ela é utilizada amplamente, é uma das primeiras coisas que as pessoas fazem quando criam a source/lib mas não sabia que mudaram o nome pra string.split em 1.0;
  15. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
  16. Entra num char god e testa cada um desses efeitos usando /x numero no lugar do numero vc vai colocando de 0 até 41 e se gostar de algum apenas coloque no items.xml o nome dele m minúsculo sem o "const_ani_" na frente CONST_ANI_SPEAR = 0 CONST_ANI_BOLT = 1 CONST_ANI_ARROW = 2 CONST_ANI_FIRE = 3 CONST_ANI_ENERGY = 4 CONST_ANI_POISONARROW = 5 CONST_ANI_BURSTARROW = 6 CONST_ANI_THROWINGSTAR = 7 CONST_ANI_THROWINGKNIFE = 8 CONST_ANI_SMALLSTONE = 9 CONST_ANI_DEATH = 10 CONST_ANI_LARGEROCK = 11 CONST_ANI_SNOWBALL = 12 CONST_ANI_POWERBOLT = 13 CONST_ANI_POISON = 14 CONST_ANI_INFERNALBOLT = 15 CONST_ANI_HUNTINGSPEAR = 16 CONST_ANI_ENCHANTEDSPEAR = 17 CONST_ANI_REDSTAR = 18 CONST_ANI_GREENSTAR = 19 CONST_ANI_ROYALSPEAR = 20 CONST_ANI_SNIPERARROW = 21 CONST_ANI_ONYXARROW = 22 CONST_ANI_PIERCINGBOLT = 23 CONST_ANI_WHIRLWINDSWORD = 24 CONST_ANI_WHIRLWINDAXE = 25 CONST_ANI_WHIRLWINDCLUB = 26 CONST_ANI_ETHEREALSPEAR = 27 CONST_ANI_ICE = 28 CONST_ANI_EARTH = 29 CONST_ANI_HOLY = 30 CONST_ANI_SUDDENDEATH = 31 CONST_ANI_FLASHARROW = 32 CONST_ANI_FLAMMINGARROW = 33 CONST_ANI_SHIVERARROW = 34 CONST_ANI_ENERGYBALL = 35 CONST_ANI_SMALLICE = 36 CONST_ANI_SMALLHOLY = 37 CONST_ANI_SMALLEARTH = 38 CONST_ANI_EARTHARROW = 39 CONST_ANI_EXPLOSION = 40 CONST_ANI_CAKE = 41 CONST_ANI_WEAPONTYPE = 254 CONST_ANI_NONE = 255 Espero ter ajudado.
  17. xWhiteWolf postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    @Schiffert, acredito que sim mas pra ter certeza só colocar e testar.. se der erro posta o erro que tento arrumar pra rodar em 1.0 tb
  18. Cuidado com o double topic amigo, excluí seu outro tópico mas tome cuidado na próxima vez.
  19. xWhiteWolf postou uma resposta no tópico em Suporte Bots
    Vou fechar o tópico porque o foco já mudou completamente.. se alguém tiver alguma coisa pra falar pode chegar por PM.
  20. xWhiteWolf postou uma resposta no tópico em Playground (Off-topic)
    muito louca
  21. xWhiteWolf postou uma resposta no tópico em Suporte Bots
    aqui não é playground, estou te negativando e deixando o aviso que não irei tolerar este tipo de atitude novamente. Grato.
  22. xWhiteWolf postou uma resposta no tópico em Playground (Off-topic)
    um pouquinho old mas muito bom hahaha
  23. xWhiteWolf postou uma resposta no tópico em Suporte Tibia OTServer
    o.O vc reiniciou o server qnd trocou de script?
  24. só muda nessa parte pro storage que vc quer que use e faz da forma que vc quiser pra alterar esse storage pra 1 (pode ser talkaction, pode ser por site, pode ser por action, movements, etc.)

Informação Importante

Confirmação de Termo