Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. só trocar por essa: doTeleportThing(m, {x=x,y=y,z=z})
  2. getSpectators({x=x,y=y,z=z}, 4, 4, false) -- exemplo {x=x,y=y,z=z} -- pos do player (centro) rangex seria no caso 4x4 pros x rangey seria pra baixo correto? acho que é isso o último é se é multifloor, deixa false kk
  3. mal tbm tinha dado uma saida, voltei agr function onSay(cid, words, param, channel) for x = 2685, 2717 do for y = 1031, 1080 do local m = getTopCreature({x=x, y=y, z=7}).uid if m ~= 0 and isPlayer(m) then doTeleportThing(m, getTownTemplePosition(getPlayerTown(m))) end end end return true end
  4. claro, passar ai o começo e o final das pos... x e y ok?
  5. é ai criaria um loop nela, igual aquela do monstro lá
  6. hm engraçado, testei aqui em uns 4 ot de 8.60 e 8.7 e todos funcionaram =x
  7. essa área é muito grande? daria para criar um loop nela
  8. assim vai for name, pos in pairs(config.bosses) do if isMonster(cid) and name == getCreatureName(cid) then teleport = doCreateTeleport(config.teleportId, pos, position) doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1) addEvent(removal, config.timeToRemove * 1000, position) doSendMagicEffect(position,10) end end agr q eu vi q era onDeath k
  9. local config = { lvl = 20, -- level Player = {x=819, y=349, z=7}, item = {11116,{x=820, y=344, z=7}}, -- id do item e pos do item Npc = {"King Corpse",{x=818, y=350, z=7}}, -- nome do npc e pos do npc Time = 1, -- dps de qntos minutos o npc sera removido storage = 58456 -- n mexa } function onUse(cid, item, fromPosition, itemEx, toPosition) local x,v = getTopCreature(config.Player).uid,getTileItemById(config.item[2], config.item[1]) if (x == 0 or not isPlayer(x) or getPlayerLevel(x) < config.lvl) then return doPlayerSendCancel(cid, 'Está faltando player ou você não tem level '..config.lvl..' ou mais.') elseif v.uid == 0 then return doPlayerSendCancel(cid, "O item precisa estar na posição correta.") elseif getPlayerStorageValue(cid, config.storage) >= os.time() then return doPlayerSendCancel(cid, "o npc já está summonado !") end doSendMagicEffect(config.item[2], CONST_ME_POFF) doRemoveItem(v.uid, 1) doCreateNpc(config.Npc[1], config.Npc[2]) addEvent(removeNPC, config.Time*60*1000) setPlayerStorageValue(cid, config.storage, os.time()+config.Time*60) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end function removeNPC() return doRemoveCreature(getCreatureByName(config.Npc[1])) end
  10. isso, em creaturescript
  11. não é de minha autoria. <event type="outfit" name="Addons" event="script" value="outfits.lua"/> <event type="login" name="AddonsLogin" event="script" value="outfits.lua"/> local hunter = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(hunter, CONDITION_PARAM_TICKS, -1) setConditionParam(hunter, CONDITION_PARAM_SKILL_DISTANCE, 3) local knight = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(knight, CONDITION_PARAM_TICKS, -1) setConditionParam(knight, CONDITION_PARAM_SKILL_SWORD, 3) local mage = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(mage, CONDITION_PARAM_TICKS, -1) setConditionParam(mage, CONDITION_PARAM_STAT_MAGICLEVEL, 2) local barbarian = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(barbarian, CONDITION_PARAM_TICKS, -1) setConditionParam(barbarian, CONDITION_PARAM_SKILL_AXE, 3) local norse = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(norse, CONDITION_PARAM_TICKS, -1) setConditionParam(norse, CONDITION_PARAM_SKILL_SHIELD, 2) setConditionParam(norse, CONDITION_PARAM_STAT_MAXHEALTH, 200) --- hp local nightmare = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(nightmare, CONDITION_PARAM_TICKS, -1) setConditionParam(nightmare, CONDITION_PARAM_SKILL_SHIELD, 3) setConditionParam(nightmare, CONDITION_PARAM_STAT_MAXHEALTH, 100) --- hp local yalaharian = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(yalaharian, CONDITION_PARAM_TICKS, -1) setConditionParam(yalaharian, CONDITION_PARAM_STAT_MAGICLEVEL, 2) setConditionParam(yalaharian, CONDITION_PARAM_STAT_MAXHEALTH, 200) --- hp setConditionParam(yalaharian, CONDITION_PARAM_STAT_MAXMANA, 200) --- mana local demonhunter = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(demonhunter, CONDITION_PARAM_TICKS, -1) setConditionParam(demonhunter, CONDITION_PARAM_STAT_MAXHEALTH, 500) --- hp setConditionParam(demonhunter, CONDITION_PARAM_STAT_MAXMANA, 500) -- mana local brotherhood = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(brotherhood, CONDITION_PARAM_TICKS, -1) setConditionParam(brotherhood, CONDITION_PARAM_STAT_MAXHEALTH, 200) --- hp local hpmana100 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(hpmana100, CONDITION_PARAM_TICKS, -1) setConditionParam(hpmana100, CONDITION_PARAM_STAT_MAXHEALTH, 100) --- hp setConditionParam(hpmana100, CONDITION_PARAM_STAT_MAXMANA, 100) --- mana local hpmana200 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(hpmana200, CONDITION_PARAM_TICKS, -1) setConditionParam(hpmana200, CONDITION_PARAM_STAT_MAXHEALTH, 200) --- hp setConditionParam(hpmana200, CONDITION_PARAM_STAT_MAXMANA, 200) --- mana local mana100 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(mana100, CONDITION_PARAM_TICKS, -1) setConditionParam(mana100, CONDITION_PARAM_STAT_MAXMANA, 100) --- mana local mana200 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(mana200, CONDITION_PARAM_TICKS, -1) setConditionParam(mana200, CONDITION_PARAM_STAT_MAXMANA, 200) --- mana local hp100 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(hp100, CONDITION_PARAM_TICKS, -1) setConditionParam(hp100, CONDITION_PARAM_STAT_MAXHEALTH, 100) --- hp local speed1 = createConditionObject(CONDITION_HASTE) setConditionParam(speed1, CONDITION_PARAM_TICKS, -1) setConditionParam(speed1, CONDITION_PARAM_SPEED, 10) local speed2 = createConditionObject(CONDITION_HASTE) setConditionParam(speed2, CONDITION_PARAM_TICKS, -1) setConditionParam(speed2, CONDITION_PARAM_SPEED, 20) --- CONDITION_PARAM_STAT_MAXHEALTH, CONDITION_PARAM_STAT_MAXMANA --- CONDITION_PARAM_BUFF outfitBonusTable = { --- [] = {condition = , typ = } [128] = {condition = {speed1, hp100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, [136] = {condition = {speed1, hp100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, --Citizen --[maxHealth = 100] [129] = {condition = hunter}, [137] = {condition = hunter}, --Hunter [130] = {condition = mana200, typ = CONDITION_ATTRIBUTES}, [138] = {condition = mana200, typ = CONDITION_ATTRIBUTES}, --Mage [131] = {condition = knight, typ = CONDITION_ATTRIBUTES}, [139] = {condition = knight, typ = CONDITION_ATTRIBUTES}, --Knight [133] = {condition = mana100, typ = CONDITION_ATTRIBUTES}, [141] = {condition = mana100, typ = CONDITION_ATTRIBUTES}, --Summoner -- [maxMana = 100] [134] = {condition = knight, typ = CONDITION_ATTRIBUTES}, [142] = {condition = knight, typ = CONDITION_ATTRIBUTES}, --Warrior [143] = {condition = barbarian, typ = CONDITION_ATTRIBUTES}, [147] = {condition = barbarian, typ = CONDITION_ATTRIBUTES}, --Barbarian [144] = {condition = mage, typ = CONDITION_ATTRIBUTES}, [148] = {condition = mage, typ = CONDITION_ATTRIBUTES}, --Druid [145] = {condition = {hpmana100}, typ = CONDITION_ATTRIBUTES}, [149] = {condition = {hpmana100}, typ = CONDITION_ATTRIBUTES}, --Wizard --[maxHealth = 100, maxMana = 100] [146] = {condition = {speed1, hpmana200}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, [150] = {condition = {speed1, hpmana200}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, --Oriental --[maxHealth = 200, maxMana = 200] [152] = {condition = speed2, typ = CONDITION_HASTE}, [156] = {condition = speed2, typ = CONDITION_HASTE}, --Assassin [154] = {condition = mage, typ = CONDITION_ATTRIBUTES}, [158] = {condition = mage, typ = CONDITION_ATTRIBUTES}, --Shaman [251] = {condition = norse, typ = CONDITION_ATTRIBUTES}, [252] = {condition = norse, typ = CONDITION_ATTRIBUTES}, --Norse [maxHealth = 200] [268] = {condition = nightmare, typ = CONDITION_ATTRIBUTES}, [269] = {condition = nightmare, typ = CONDITION_ATTRIBUTES}, --Nightmare --[maxHealth = 100] [270] = {condition = {speed1, hpmana100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, [273] = {condition = {speed1, hpmana100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, --Jester --[maxHealth = 100, maxMana = 100] [278] = {condition = brotherhood, typ = CONDITION_ATTRIBUTES}, [279] = {condition = brotherhood, typ = CONDITION_ATTRIBUTES}, --Brotherhood -- [maxHealth = 200] [288] = {condition = speed2, typ = CONDITION_HASTE}, [289] = {condition = speed2, typ = CONDITION_HASTE}, --Demonhunter --[maxHealth = 500, maxMana = 500] [324] = {condition = yalaharian, typ = CONDITION_ATTRIBUTES}, [325] = {condition = yalaharian, typ = CONDITION_ATTRIBUTES} --Yalaharian -- [maxHealth = 200, maxMana = 200] } function onLogin(cid) registerCreatureEvent(cid, "Addons") --- local current = getCreatureOutfit(cid) return onOutfit(cid, {lookAddons = 1}, getCreatureOutfit(cid)) and true end function onOutfit(cid, old, current) if getPlayerAccess(cid) >= 3 then return print("Staff/support can't get any addon bonus!") and true end if old.lookAddons == 3 and outfitBonusTable[old.lookType] then --Bonus off if (outfitBonusTable[old.lookType]).typ ~= nil then if type((outfitBonusTable[old.lookType]).typ) == "table" then for _, value in pairs((outfitBonusTable[old.lookType]).typ) do doRemoveCondition(cid, value) end else doRemoveCondition(cid, (outfitBonusTable[old.lookType]).typ) end end end if current.lookAddons == 3 and outfitBonusTable[current.lookType] then --Bonus on if (outfitBonusTable[current.lookType]).condition ~= nil then if type((outfitBonusTable[current.lookType]).condition) == "table" then for _, value in pairs((outfitBonusTable[current.lookType]).condition) do doAddCondition(cid, value) end else doAddCondition(cid, (outfitBonusTable[current.lookType]).condition) end end end return true end
  12. tenta usar if name == getCreatureName(cid) and isMonster(name) then
  13. você usa os.time() junto com essa storage?
  14. você tem essa função 'doGuildAddEnemy'? se tiver posta
  15. Eu antes de querer editar alguma parte faça questão de saber se funciona, não adianta editar um script com erro agora se nem o erro você sabe qual é
  16. Vodkart

    (Pedido) Deathlist

    cria um char, e só morre pra bixo. o player nao pode ter morrido pra nenhum player no seu char lol
  17. mas o script funciona eu testei aqui lol '-' ele remove os monstros s ainda fica dando algum erro?
  18. ensino você pega um arquivo.lua e renomei para script.lua coloca o seu código aqui salva pronto, você está começando já no ramo xd
  19. do set tem mas só tem a armor que eu fiz http://www.xtibia.co...ito-em-scripts/ só colocar para adc o hp em 5% xd
  20. http://www.xtibia.com/forum/topic/147361-action-vip-no-nome/ http://www.xtibia.com/forum/topic/149965-script-vip-name/ http://www.xtibia.com/forum/topic/174349-action-vip-system-com-o-nome-vip-no-char/ ai vc ta vendo essa parte db.executeQuery("UPDATE `players` SET `name` = '[Vip] ... continuação vc muda o [Vip] para oq vc quiser tipo [Foda]
  • Quem Está Navegando   0 membros estão online

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