Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. qual o erro? versão do seu ot? tenta colocar o nome do monstro assim: Gigante de gelo ou gigante de gelo
  2. DOENTE U.U

    1. dustot

      dustot

      Cara, lê sobre Exp Amulet. E ve se da conta de arrumar la! Obrigado

  3. vc pego esse script do meu tópíco era mais facil mandar o link carinha http://www.xtibia.com/forum/topic/133669-vip-door-system-10/
  4. claro meu gatanhão function onUse(cid, item, frompos, item2, topos) local tpId = 1387 local p = getCreaturePosition(cid) local x = { [0] = {x=p.x, y=p.y-1, z=p.z}, [1] = {x=p.x+1, y=p.y, z=p.z}, [2] = {x=p.x, y=p.y+1, z=p.z}, [3] = {x=p.x-1, y=p.y, z=p.z} } local tps = { pos = x[getCreatureLookDirection(cid)], toPos = {x=32360, y=32360, z=7}, time = 15, -- remove teleport exausted = 60, -- in seconds storage1 = 18370, -- dont edit storage2 = 97854 -- dont edit } function removeTp() local t = getTileItemById(tps.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tps.pos, CONST_ME_POFF) end end function doTPSecond(cid,delay) local seconds = math.floor((getPlayerStorageValue(cid, tps.storage1) - os.time())) local msg = ''.. (seconds < 0 and 0 or seconds) ..'' doSendAnimatedText(tps.pos, msg, math.random(1,140)) if delay ~= 1 then addEvent(doTPSecond, 1000,cid, delay -1) end end if getCreatureCondition(cid, CONDITION_INFIGHT) then return true,doPlayerSendTextMessage(cid,22,"Sorry,you cannot use this item with battle.") elseif (getPlayerStorageValue(cid, tps.storage2) >= os.time()) then return true,doPlayerSendCancel(cid, "wait " .. getPlayerStorageValue(cid, tps.storage2) - os.time() .. " seconds to use this item again.") end doCreateTeleport(tpId, tps.toPos, tps.pos) setPlayerStorageValue(cid, tps.storage1, os.time()+tps.time) doTPSecond(cid, tps.time) addEvent(removeTp, tps.time*1000) setPlayerStorageValue(cid,tps.storage2,os.time()+tps.exausted) return false end
  5. local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "yes", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4}, vocStr = "templar warriors and royal archers"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4}, vocStr = "templar warriors"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {950, 1300}, level = 130, vocations = {4}, vocStr = "templar warriors"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3}, vocStr = "magicians, priests and archers"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {400, 750}, level = 80, vocations = {1, 2, 9, 10, 11, 12}, vocStr = "chaos magicians, elder priests and alchemists"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {400, 650}, mana = {450, 690}, level = 80, vocations = {3}, vocStr = "royal archers"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return true end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return true end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then return true end return true end ai to falando isso pra ve se tem tipo em strong_mana.lua,ultimate_health.lua,etc... pra remover essa parte se nao tiver deixa doRemoveItem(item.uid, 0) ou doPlayerAddItem(cid, EMPTY_POTION, 0)
  6. já foi em actions/liquids ai no script da potion vc removeu essa ~parte: doRemoveItem(item.uid, 0) ou doPlayerAddItem(cid, EMPTY_POTION, 0)
  7. Vodkart

    Firewalker Boss

    @Demon meu nego gostoso uma dica é usar string.lower para retornar o nome do monstro bjs
  8. vlw rapaziada,qualquer duvida posta ;d
  9. Vodkart

    Firewalker Boss

    http://www.xtibia.com/forum/topic/134875-matar-monstro-abrir-tp-remover-parede-ganhar-storage/
  10. Vodkart

    Death Cast

    Resumindo rapidamente é um script onde tem a função de mandar mensagem ao servidor dizendo que tal player morreu,seja para um jogador ou para um montro. Creaturescript/script crie um arquivo.lua e renomeie para deathcast.lua function onDeath(cid, corpse, deathList) if isPlayer(deathList[1]) then return true,doBroadcastMessage("[DeathCast] Informs:\n".. getCreatureName(cid) .. "[" .. getPlayerLevel(cid) .. "] was Killed by player: " .. getCreatureName(deathList[1]) .. "[" .. getPlayerLevel(deathList[1]) .. "]",18) end return doBroadcastMessage("[DeathCast] Informs:\nThe player ".. getCreatureName(cid) .. "[" .. getPlayerLevel(cid) .. "] was Killed by " .. getCreatureName(deathList[1]) .. ".",20) end Creaturescript.xml adicione <event type="death" name="DeathC" event="script" value="deathcast.lua"/> creaturescript/script/login.lua registerCreatureEvent(cid, "DeathC")
  11. não ajudou não,primeiro porque você não leu o tópico,se tivesse lido saberia que o npc que ele pediu é bem diferente do seu, e segundo o tópico já foi respondido,não tinha necessidade de colocar outro script,a não ser que o meu não tenha funcionado. faloust =*
  12. Você pode descobrir o seu sistema vip pelos script em LUA que na maioria dos servidores se encontra em Movements/script ou Talkaction/script,geralmente tem nome "vip" nos arquivos. flw
  13. Aqui funcionou,você instalou certo o script? se não vc tenta essa
  14. @UP sim,você tem que criar um arquivo.lua e renomear para Vocation_Outfit.lua E sobre a função da quest no outfit,serve para liberar tal outfit se tiver uma storage. abraços
  15. Você pode achar o sistema do seu serve em Movements ou Talkactions... e eu reconmendo vc usar o sistema vip by account do kydrai... abraços
  16. acho que você teria que criar um outro script,vo ve se atualizo o script jaja eu edito o topico bjs --EDITED pronto script editado,só aproveitar xd
  17. depende,porcentagem em que? vou dar um exemplo em adc hp em % ao jogador percent = 50 doCreatureAddHealth(cid,((percent/100)*getCreatureMaxHealth(cid)))
  18. e com script mesmo agr uma duvida,qual sistema vip vc usa?
  19. sim,vc usar o script que quando matar o monstro da storage certo? ai a porta vc poe pra passar soh quem tem essa storage (: bjs
  20. e o end vip ta aki http://www.xtibia.com/forum/topic/141380-quando-vip-acabarser-teleportado-para-o-templo/
  21. me ajudo já (: realmente útil parabéns
  22. ve se é isso, function onUse(cid, item, frompos, item2, topos) local tpId = 1387 local p = getCreaturePosition(cid) local tps = { pos = {x=p.x, y=p.y, z=p.z}, toPos = {x=32360, y=32360, z=7}, time = 15, -- remove teleport exausted = 60, -- in seconds storage1 = 18370, -- dont edit storage2 = 97854 -- dont edit } function removeTp() local t = getTileItemById(tps.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tps.pos, CONST_ME_POFF) end end function doTPSecond(cid,delay) local seconds = math.floor((getPlayerStorageValue(cid, tps.storage1) - os.time())) local msg = ''.. (seconds < 0 and 0 or seconds) ..'' doSendAnimatedText(tps.pos, msg, math.random(1,140)) if delay ~= 1 then addEvent(doTPSecond, 1000,cid, delay -1) end end if getCreatureCondition(cid, CONDITION_INFIGHT) then return true,doPlayerSendTextMessage(cid,22,"Sorry,you cannot use this item with battle.") elseif (getPlayerStorageValue(cid, tps.storage2) >= os.time()) then return true,doPlayerSendCancel(cid, "wait " .. getPlayerStorageValue(cid, tps.storage2) - os.time() .. " seconds to use this item again.") end doCreateTeleport(tpId, tps.toPos, tps.pos) setPlayerStorageValue(cid, tps.storage1, os.time()+tps.time) doTPSecond(cid, tps.time) addEvent(removeTp, tps.time*1000) setPlayerStorageValue(cid,tps.storage2,os.time()+tps.exausted) doRemoveItem(item.uid, 1) return false end obs: Fiz uma function que fica aparecendo em cima do teleport qntos segundos faltam pra ele fechar
  23. meu char no tibia já reviveu mais que eles todos juntos se fode ai
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...