Ir para conteúdo

BreNiinxz

Membro
  • Registro em

  • Última visita

Tudo que BreNiinxz postou

  1. @Aizuuu Testa esse script e ver se é como você queria local monsters = { [1] = {monstro = "Bulbasaur", chance = 50}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [2] = {monstro = "Ivysaur", chance = 40}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [3] = {monstro = "Venusaur", chance = 1} --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} } local function getRandomMonster(t) local i = math.random(1, #t) i = t[i] if math.random(1, 100) <= i.chance then return i end return getRandomMonster(t) end local chance = 60 -- 60% de chance de sucesso e 40% de falhar function onStepIn(cid, item, toPosition, fromPosition) if isPlayer(cid) and math.random(1, 100) <= chance then local tempo = 1 local i = getRandomMonster(monsters) local monstro = doCreateMonster(i.monstro, getCreaturePosition(cid)) doCreatureSay(monstro, "Um " ..i.monstro.. " Selvagem Apareceu!", TALKTYPE_MONSTER) addEvent(function() if isCreature(monstro) then doRemoveCreature(monstro) end end, tempo*60*1000) end return true end
  2. Ele não faz isso, ele recupera apenas quem estiver próximo ao summon
  3. @Lenilson XML da spell basta mudar o diretório da spell <instant name="healmaster" words="healmaster" lvl="0" mana="0" prem="0" blockwalls="1" aggressive="0" exhaustion="1500" needlearn="1" event="script" value="support/dende/healmonster.lua"> Crie um arquivo chamado healmonster.lua e coloque esse codigo dentro local config = { health = 10000, mana = 500, effect = 12, effectheal = 773, area = 6 } function onCastSpell(cid, var) if getCreatureMaster(cid) then local master = getCreatureMaster(cid) local pos = getCreaturePosition(cid) local poseffect = {x = pos.x, y = pos.y, z = pos.z} for k = -(config.area - 1), (config.area - 1) do for j = -(config.area - 1), (config.area - 1) do poseffect.x = pos.x + k poseffect.y = pos.y + j doSendMagicEffect(poseffect, config.effect) end end if isInParty(master) then local members = getPartyMembers(getPlayerParty(master)) local health = math.ceil( config.health / #members ) -- adicionar vezes ou dividir para modificar a cura local mana = math.ceil( config.mana * #members ) for i = 1, #members do if getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(members[i])) < config.area then doCreatureAddHealth(members[i], health) doCreatureAddMana(members[i], mana) doSendAnimatedText(getCreaturePosition(members[i]), "+"..health, 18) doSendMagicEffect(getCreaturePosition(members[i]), config.effectheal) end end else doCreatureAddHealth(master, config.health) doCreatureAddMana(master, config.mana) doSendAnimatedText(getCreaturePosition(master), "+"..config.health, 18) doSendMagicEffect(getCreaturePosition(master), config.effectheal) end end return true end Dentro do xml do monstro coloca assim e testa pra ver se da algum erro <defense name="healmaster" interval="1000" radius="5" chance="100" duration="100"> <attribute key="areaEffect" value="blueshimmer"/> </defense>

Informação Importante

Confirmação de Termo