Ir para conteúdo

lucasvtr1

Membro
  • Registro em

  • Última visita

  1. BangxD reagiu a uma resposta no tópico: (Resolvido)Modificaçao no script
  2. kinglekke reagiu a uma resposta no tópico: Tempo em Script
  3. lucasvtr1 reagiu a uma resposta no tópico: OTClient 0.6.7 | 10.71
  4. lucasvtr1 postou uma resposta no tópico em Suporte Tibia OTServer
    Não achei uma função especifica na lib. mais tenta trocar por esse script: function onUse(cid, item, frompos, item2, topos) local pausa = 120*60*120000 -- (1000 = 1 segundos) Tempo que o script durará local texto = "Você dobrou sua Experiencia por 2 Horas" -- Texto que irá receber ao usar a potion. textofinal = "Acabou o potion de Experiencia." -- Texto que irá receber quando o efeito da potion acabar. local exp = 3 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. local expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. remoitem = true --irá remover o item. local rates = getPlayerRates(cid) local limitedeuso = 49015 local tempo = 120*60*1000 -- 1000 = 1s então 1000 vezes 60 vezes 30 = 30 minutos local textofinal1 = "Você já esta sob efeito da pot de experiência espere o efeito acabar." local seuitem = 7440 -- seu item que dará double exp local efeito1 = 13 -- efeito que ficara com o char por meia hora local efeito2 = 35 -- efeito que acontecera no momento que usar a pot local hours = 2 function effect() if isPlayer(cid) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, efeito1) end end if item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() <= 0) then doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid, rates[SKILL__LEVEL]*exp) doSendMagicEffect(frompos,efeito2) setPlayerStorageValue(cid, limitedeuso, os.time() + hours*3600) doPlayerSendTextMessage(cid,22,texto) addEvent(potion, pausa, cid) a = 1 while a ~= timeEffect do addEvent(effect, a * 1000) a = a + 1 end elseif item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() > 0) then doPlayerSendTextMessage(cid,22,textofinal1) end return true end function potion(cid) doPlayerSetExperienceRate(cid,rates[SKILL__LEVEL]) doPlayerSendTextMessage(cid,22,textofinal) end Axo que ainda vai dar errado. mas se o erro mudar pelo menos ja é alguma coisa. posta as diferenças. Valeu. Eu pus esse script no meu otserver ele é 9.83 e não funcionou. Ele é um OTX. 2.52.
  5. lucasvtr1 postou uma resposta no tópico em Suporte Tibia OTServer
    talvez um checador de storage mais ele ja tem
  6. lucasvtr1 postou uma resposta no tópico em Suporte Tibia OTServer
    Copiando aquele script em um arquivo lua na pasta Actitions. é so criar uma tag no actions Xml com o id do item e setar o nome do arquivo lua. Você queer tfs 1.0 ou outro? Eu axo que é a mesma coisa
  7. Substitui o sue por esse e se der certo me avisa! local poison = createConditionObject(CONDITION_POISON) setConditionParam(poison, CONDITION_PARAM_DELAYED, 1) local damageTable1 = { {3, -600}, --- 3 é a quantidate de danos, e 600 é o dano, voce pode mudar ai como quiser. {3, -600}, --- mesma coisa em baixo {4, -600}, --- a soma tem q dar 10 porque 10 *1000 é 10000 o tempo que cria o item denovo } for i = 1, #damageTable1 do local t = damageTable1[i] addDamageCondition(poison, t[1], 1000, t[2]) -- 1000 é o tempo entre os damages end function onUse(cid, item, frompos, item2, topos) local1 = {x=1349, y=876, z=14, stackpos=2} item1 = {x=1330, y=878, z=14, stackpos=1} item2 = {x=1330, y=879, z=14, stackpos=1} getitem1 = getThingfromPos(item1) getitem2 = getThingfromPos(item2) getlocal1 = getThingfromPos(local1) if item.uid == 7213 and item.itemid == 5058 then doTransformItem(item.uid,item.itemid-1) end getlocal1 = getThingfromPos(local1) if(getlocal1.itemid == 5057 and getitem1.itemid == 1304) then doRemoveItem(getitem1.uid,1) doRemoveItem(getitem2.uid,1) doAddCondition(cid, poison) --- aqui é a condiçao no script. addEvent(function() if(getlocal1.itemid == 5057) then doCreateItem(1304,1,item1) doCreateItem(1304,1,item2) doTransformItem(getlocal1.uid,5058) end end, 10000) end return true end Ok?
  8. Ai são os valores que os scripts tomam referencia para atribuir os valores de dano, cura, defesa etc. em cada vocação(transformação) há atribuições diferentes. se você criar uma nova vocação e botar tipo magdefense="2.0" essa vocação vai ter o dobro de defesa nas magias que uma vocação de magdefense="1.0". Ai vc vai editando os outros como malledamage que são os danos físicos ou o magdamage que sao os mágicos tem a defense que é a defesa atribuída aos escudos e o wanddamage que é relativo dano das wands e rods e o maghealingdamage que define o potencial de cura da vocação. Não esquecendo, sempre faça backup desse arquivo pois qualquer mudança nele muda muita coisa no server e é bom ter um ponto de backup limpo.
  9. lucasvtr1 postou uma resposta no tópico em Suporte Tibia OTServer
    Haha erro basico de falta de atençao ali nas tags, primeira parte, o value tem que ser botarstorage.lua, e tirarstorage.lua. desculpa. vê se da certo que editei la em cima
  10. lucasvtr1 reagiu a uma resposta no tópico: [10.93] Projeto Capernia, RL MAP
  11. vixe caso inteligencia artificial.
  12. lucasvtr1 postou uma resposta no tópico em Suporte Tibia OTServer
    olha o arquivo spawns.xml na pastas world . ve se ta tudo ok. e o nome dos monstros nos arquivos da pasta monster. outra soluçao é baixar outro mapa e por no lugar para vê se é o distro ou a data mesmo
  13. Se eu nao me engano tamb tem opçao de desativar essa popup no config.lua. mas eu nao lembro bem. entao amanha dou uma olhada em uns servidores aqui em casa e edito a resposta. Abraços
  14. TALVEz se voce botar o amuleto com diferentes cargas vai enganar o progama
  15. lucasvtr1 postou uma resposta no tópico em Suporte Tibia OTServer
    Faz assim: em movements XML adiciona: as tags <movevent type="Equip" itemid="XXXX" slot="hand" script="botarstorage.lua"/> <movevent type="DeEquip" itemid="XXXX" slot="hand" script="botarstorage.lua"/> XXXX : ID DO ITEM -------------------------- Depois na pasta data\movements\scripts Adiciona um arquivo botarstorage.lua e cola a funçao: local config = { storage = YYYY } function onEquip(cid, item, pos) doCreatureSetStorage(cid, config.storage, 1) return true end function onDeEquip(cid, item, pos) doCreatureSetStorage(cid, config.storage, -1) return ture end YYYY o Storage.
  16. lucasvtr1 reagiu a uma resposta no tópico: Configurar Save server
  17. nesse ai tem que dar return false né nao?
  18. lucasvtr1 reagiu a uma resposta no tópico: (Resolvido)Trocar premium points no trade
  19. tenta trocar essa parte : local text = "O server será salvo em alguns minutos, pode haver um pequeno travamento!" por esta: local text ="O server será salvo em ((config.broadcast)/60) minutos, poder haver um pequeno travamento!" e swallow em yes to me batendo aqui . tenta a opçao acima. amanha em meu pc tenho script de server salver com time, ai eu edito ok? . essa funçao ai de cima ta meio complicada de entender. Amanha então
  20. Olha tenho um Script de Storage aqui, Quem sabe com ele você possa remover dos Players: Add isso em data/Talkactions com nome storage.lua ---Storage Code without Credidts....------ function onSay(cid, words, param) local t = string.explode(param, ",") if(not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local tid = getPlayerByNameWildcard(t[1]) if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " not found.") return true end if(not t[3]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, " [" .. t[1] .. " - " .. t[2] .. "] = " .. getPlayerStorageValue(tid, t[2])) else setPlayerStorageValue(tid, t[2], t[3]) end return true end e em Talk actions XML adiciona: <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/> Para utilizar é so Dizer: se quiser só ver o storage do player exemplo: 5454 /storage (player name), 5454 se quiser adicionar: /storage (player name),5454,1 se quiser remover /storage (player name,5454,-1 Abraços espero ter ajudado
  21. BOM dia, Criei um tópico para que pudesse concluir um script aqui em casa. Tentei desta maneira, Mais não consigo termina-lo, fazendo com que as conditions funcione em monstros. Resumindo, é um script de bleed e conditions que funciona por ataque, eu ja completei ele bastante. Ja ta quase um mod, kkk,. Queria saber se onStatsChange funciona em monstros porque, a compraracão isMonster(cid) parece nao fazer efeito. Ou oque está errado? Eu fiz um recorte para montar esse sistema, Peguei outros scripts já existentes como modelo, como o Experience Weapon system by whitewolf e cykotitan. Testando em TFS 0.4, 9.83. Aqui vai o meu Script que não dá conditions em monstros: è um lua do creaturescripts. local gelocondition = createConditionObject(CONDITION_PARALYZE) setConditionParam(gelocondition, CONDITION_PARAM_TICKS, 2000) setConditionFormula(gelocondition, -0.9, 0, -0.9, 0) local tera = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(tera, CONDITION_PARAM_TICKS, 4000) setConditionParam(tera, CONDITION_PARAM_BUFF, true) setConditionParam(tera, CONDITION_PARAM_SKILL_CLUBPERCENT, 80) setConditionParam(tera, CONDITION_PARAM_SKILL_SWORDPERCENT, 80) setConditionParam(tera, CONDITION_PARAM_SKILL_AXEPERCENT, 80) setConditionParam(tera, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 80) setConditionParam(tera, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 80) setConditionParam(tera, CONDITION_PARAM_SKILL_SHIELDPERCENT, 80) local manaup = createConditionObject(CONDITION_FOOD) setConditionParam(manaup, CONDITION_PARAM_TICKS, 5000) setConditionParam(manaup, CONDITION_PARAM_BUFF, true) setConditionParam(manaup, CONDITION_PARAM_MANAGAIN, 15) setConditionParam(manaup, CONDITION_PARAM_MANATICKS, 1000) local healthup = createConditionObject(CONDITION_FOOD) setConditionParam(healthup, CONDITION_PARAM_TICKS, 5000) setConditionParam(healthup, CONDITION_PARAM_BUFF, true) setConditionParam(healthup, CONDITION_PARAM_HEALTHGAIN, 5) setConditionParam(healthup, CONDITION_PARAM_HEALTHTICKS, 1000) local area = createCombatArea( { {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 3, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0} }) local bleedaxe = createConditionObject(CONDITION_BLEEDING) setConditionParam(bleedaxe, CONDITION_PARAM_DELAYED, 1) local damageTable1 = { {math.random(3), -(math.random(25))}, {math.random(3), -(math.random(15))}, {math.random(3), -(math.random(5))}, } for i = 1, #damageTable1 do local t = damageTable1[i] addDamageCondition(bleedaxe, t[1], 1000, t[2]) end local bleeddistance = createConditionObject(CONDITION_BLEEDING) setConditionParam(bleeddistance, CONDITION_PARAM_DELAYED, 1) local damageTable2 = { {math.random(3), -(math.random(30))}, {math.random(3), -(math.random(10))}, {math.random(3), -(math.random(15))}, } for i = 1, #damageTable2 do local t = damageTable2[i] addDamageCondition(bleeddistance, t[1], 1000, t[2]) end local fire = createConditionObject(CONDITION_FIRE) setConditionParam(fire, CONDITION_PARAM_DELAYED, 1) local damageTable3 = { {math.random(3), -(math.random(30))}, {math.random(3), -(math.random(10))}, {math.random(3), -(math.random(15))}, } for i = 1, #damageTable3 do local t = damageTable3[i] addDamageCondition(fire, t[1], 1000, t[2]) end local teradamage = createConditionObject(CONDITION_POISON) setConditionParam(teradamage, CONDITION_PARAM_DELAYED, 1) local damageTable4 = { {1, -(math.random(9))}, {2, -(math.random(9))}, {1, -(math.random(9))}, } for i = 1, #damageTable4 do local t = damageTable4[i] addDamageCondition(teradamage, t[1], 1000, t[2]) end local holydamage = createConditionObject(CONDITION_DAZZLED) setConditionParam(holydamage, CONDITION_PARAM_DELAYED, 1) local damageTable5 = { {math.random(3, 13), -(math.random(2))}, {math.random(7, 20), -(math.random(3))}, {math.random(9, 27), -(math.random(4))}, } for i = 1, #damageTable5 do local t = damageTable5[i] addDamageCondition(holydamage, t[1], 4000, t[2]) end local deathdamage = createConditionObject(CONDITION_CURSED) setConditionParam(deathdamage, CONDITION_PARAM_DELAYED, 1) local damageTable6 = { {1, -(math.random(2))}, {1, -(math.random(12))}, {1, -(math.random(26))}, {1, -(math.random(28))}, {1, -(math.random(14))}, } for i = 1, #damageTable6 do local t = damageTable6[i] addDamageCondition(deathdamage, t[1], 5000, t[2]) end local gelo = createConditionObject(CONDITION_FREEZING) setConditionParam(gelo, CONDITION_PARAM_DELAYED, 1) local damageTable7 = { {1, -(math.random(6))}, {1, -(math.random(4))}, {1, -(math.random(3))}, {1, -(math.random(2))}, } for i = 1, #damageTable7 do local t = damageTable7[i] addDamageCondition(gelo, t[1], 10000, t[2]) end local monster = createConditionObject(CONDITION_BLEEDING) setConditionParam(monster, CONDITION_PARAM_DELAYED, 1) local damageTable8 = { {1, -(math.random(2))}, {1, -(math.random(2))}, {1, -(math.random(1))}, {1, -(math.random(1))}, } for i = 1, #damageTable8 do local t = damageTable8[i] addDamageCondition(monster, t[1], 1000, t[2]) end local monstersmall = createConditionObject(CONDITION_BLEEDING) setConditionParam(monstersmall, CONDITION_PARAM_DELAYED, 1) local damageTable9 = { {1, -(math.random(16))}, {1, -(math.random(14))}, {1, -(math.random(13))}, {1, -(math.random(12))}, } for i = 1, #damageTable9 do local t = damageTable9[i] addDamageCondition(monstersmall, t[1], 1000, t[2]) end local monsteremedium = createConditionObject(CONDITION_BLEEDING) setConditionParam(monsteremedium, CONDITION_PARAM_DELAYED, 1) local damageTable10 = { {1, -(math.random(40, 66))}, {1, -(math.random(30, 44))}, {1, -(math.random(10, 23))}, {1, -(math.random(5, 18))}, } for i = 1, #damageTable10 do local t = damageTable10[i] addDamageCondition(monsteremedium, t[1], 1000, t[2]) end local monsterbig = createConditionObject(CONDITION_BLEEDING) setConditionParam(monsterbig, CONDITION_PARAM_DELAYED, 1) local damageTable11 = { {1, -(math.random(60, 106))}, {1, -(math.random(50, 94))}, {1, -(math.random(40, 70))}, {1, -(math.random(30, 60))}, } for i = 1, #damageTable11 do local t = damageTable11[i] addDamageCondition(monsterbig, t[1], 1000, t[2]) end local monsterbigger = createConditionObject(CONDITION_BLEEDING) setConditionParam(monsterbigger, CONDITION_PARAM_DELAYED, 1) local damageTable12 = { {1, -(math.random(120, 190))}, {1, -(math.random(100, 170))}, {1, -(math.random(80, 140))}, {1, -(math.random(60, 120))}, {1, -(math.random(40, 100))}, } for i = 1, #damageTable12 do local t = damageTable12[i] addDamageCondition(monsterbigger, t[1], 1000, t[2]) end local fire2 = createConditionObject(CONDITION_FIRE) setConditionParam(fire2, CONDITION_PARAM_DELAYED, 1) local damageTable13 = { {math.random(3), -(math.random(30, 45))}, {math.random(3), -(math.random(10, 34))}, {math.random(3), -(math.random(15, 45))}, } for i = 1, #damageTable13 do local t = damageTable13[i] addDamageCondition(fire2, t[1], 1000, t[2]) end local fire3 = createConditionObject(CONDITION_FIRE) setConditionParam(fire3, CONDITION_PARAM_DELAYED, 1) local damageTable14 = { {math.random(3), -(math.random(40, 60))}, {math.random(3), -(math.random(50, 60))}, {math.random(3), -(math.random(65, 75))}, } for i = 1, #damageTable14 do local t = damageTable14[i] addDamageCondition(fire3, t[1], 1000, t[2]) end function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS then if isPlayer(attacker) and isPlayer(cid) then if combat == COMBAT_PHYSICALDAMAGE then if getWeapon(attacker) ~= false and getCreatureStorage(cid, 65) == -1 and math.random(100) < (91) and value >= 40 then local f = getItemWeaponType((getWeapon(attacker)).uid) if (f == 1 or f == 3) then doCreatureSetStorage(cid, 65, 1) doTargetCombatCondition(cid, bleedaxe, 255) doCreatureSetStorage(cid, 65, -1) elseif f == 4 and getDistanceBetween(getThingPos(cid), getThingPos(attacker)) >= 2 then local distance = getDistanceBetween(getThingPos(cid), getThingPos(attacker)) doCreatureSetStorage(cid, 65, 1) doTargetCombatCondition(cid, bleeddistance, 255) doCreatureSetStorage(cid, 65, -1) elseif f == 2 then damage = getItemInfo((getWeapon(attacker)).itemid).attack doAreaCombatHealth(cid, COMBAT_PHYSICALDAMAGE, getThingPos(cid), area, -2*(tonumber(damage)), -4*(tonumber(damage)), 34) end end end if combat == COMBAT_FIREDAMAGE then if getCreatureStorage(cid, 66) == -1 and math.random(100) < (100) then if value <= 150 then doCreatureSetStorage(cid, 66, 1) doTargetCombatCondition(cid, fire, 255) doCreatureSetStorage(cid, 66, -1) end if value > 150 and value <= 400 then doCreatureSetStorage(cid, 66, 1) doTargetCombatCondition(cid, fire2, 255) doCreatureSetStorage(cid, 66, -1) end if value > 400 then doCreatureSetStorage(cid, 66, 1) doTargetCombatCondition(cid, fire3, 255) doCreatureSetStorage(cid, 66, -1) end end end if combat == COMBAT_ENERGYDAMAGE then if getCreatureStorage(cid, 67) == -1 and math.random(100) < (101) and value >= 30 then function onGetFormulaValues(cid, level, maglevel) local min = -((maglevel*1.4)+8) local max = -(((level/12)+(maglevel*1.7))+13) return min, max end doCreatureSetStorage(cid, 67, 1) doAddCondition(attacker, manaup) doTargetCombatMana(atacker, cid, -(min), -(max), 1) doCreatureSetStorage(cid, 67, -1) for i = 1, 5 do addEvent(function() if isCreature(attacker) then doSendMagicEffect(getThingPos(attacker), 12) end end, 1 + (1000*i)) end end end if combat == COMBAT_EARTHDAMAGE then if getCreatureStorage(cid, 68) == -1 and math.random(100) < (101) and value >= 10 then doCreatureSetStorage(cid, 68, 1) doTargetCombatCondition(cid, teradamage, 255) doAddCondition(cid, tera) doCreatureSetStorage(cid, 68, -1) end end if combat == COMBAT_HOLYDAMAGE then if getCreatureStorage(cid, 69) == -1 and math.random(100) < (101) and value >= 10 then doCreatureSetStorage(cid, 69, 1) doTargetCombatCondition(cid, holydamage, 255) doCreatureSetStorage(cid, 69, -1) end end if combat == COMBAT_DEATHDAMAGE then if getCreatureStorage(cid, 70) == -1 and math.random(100) < (101) and value >= 10 then doCreatureSetStorage(cid, 70, 1) doAddCondition(attacker, healthup) doTargetCombatCondition(cid, deathdamage, 255) doCreatureSetStorage(cid, 70, -1) for i = 1, 5 do addEvent(function() if isCreature(attacker) then doSendMagicEffect(getThingPos(attacker), 12) end end, 1 + (1000*i)) end end end if combat == COMBAT_ICEDAMAGE then if getCreatureStorage(cid, 71) == -1 and math.random(100) < (100) and value >= 10 then doCreatureSetStorage(cid, 71, 1) doAddCondition(cid, gelocondition) doTargetCombatCondition(cid, gelo, 255) doCreatureSetStorage(cid, 71, -1) end end end if isMonster(attacker) and isPlayer(cid) then if combat == COMBAT_PHYSICALDAMAGE then if math.random(100) < (90) and value >= 40 then local mdmg = getCreatureMaxHealth(attacker) if mdmg > 20 and mdmg <= 50 and getCreatureStorage(cid, 72) == -1 then doCreatureSetStorage(cid, 72, 1) doTargetCombatCondition(cid, monster, 255) doCreatureSetStorage(cid, 72, -1) end if mdmg > 50 and mdmg <= 400 and getCreatureStorage(cid, 73) == -1 then doCreatureSetStorage(cid, 73, 1) doTargetCombatCondition(cid, monstersmall, 255) doCreatureSetStorage(cid, 73, -1) end if mdmg > 400 and mdmg <= 800 and getCreatureStorage(cid, 74) == -1 then doCreatureSetStorage(cid, 74, 1) doTargetCombatCondition(cid, monstermedium, 255) doCreatureSetStorage(cid, 74, -1) end if mdmg > 800 and mdmg <= 1200 and getCreatureStorage(cid, 75) == -1 then doCreatureSetStorage(cid, 75, 1) doTargetCombatCondition(cid, monsterbig, 255) doCreatureSetStorage(cid, 75, -1) end if mdmg > 1200 and getCreatureStorage(cid, 76) == -1 then doCreatureSetStorage(cid, 76, 1) doTargetCombatCondition(cid, monsterbigger, 255) doCreatureSetStorage(cid, 76, -1) end end end if combat == COMBAT_FIREDAMAGE then if getCreatureStorage(cid, 77) == -1 and math.random(100) < (100) then if value < 150 then doCreatureSetStorage(cid, 77, 1) doTargetCombatCondition(cid, fire, 255) doCreatureSetStorage(cid, 77, -1) end if value > 150 and value <= 400 then doCreatureSetStorage(cid, 77, 1) doTargetCombatCondition(cid, fire2, 255) doCreatureSetStorage(cid, 77, -1) end if value > 400 then doCreatureSetStorage(cid, 77, 1) doTargetCombatCondition(cid, fire3, 255) doCreatureSetStorage(cid, 77, -1) end end end if combat == COMBAT_ENERGYDAMAGE then if getCreatureStorage(cid, 78) == -1 and math.random(100) < (100) and value >= 30 then doCreatureSetStorage(cid, 78, 1) doTargetCombatMana(atacker, cid, -(math.random(10, 40)), -(math.random(40,90)), 1) doCreatureSetStorage(cid, 78, -1) end end if combat == COMBAT_EARTHDAMAGE then if getCreatureStorage(cid, 79) == -1 and math.random(100) < (100) and value >= 20 then doCreatureSetStorage(cid, 79, 1) doTargetCombatCondition(cid, teradamage, 255) doAddCondition(cid, tera) doCreatureSetStorage(cid, 79, -1) end end if combat == COMBAT_HOLYDAMAGE then if getCreatureStorage(cid, 80) == -1 and math.random(100) < (100) and value >= 10 then doCreatureSetStorage(cid, 80, 1) doTargetCombatCondition(cid, holydamage, 255) doCreatureSetStorage(cid, 80, -1) end end if combat == COMBAT_DEATHDAMAGE then if getCreatureStorage(cid, 81) == -1 and math.random(100) < (100) and value >= 10 then doCreatureSetStorage(cid, 81, 1) doTargetCombatCondition(cid, deathdamage, 255) doCreatureSetStorage(cid, 81, -1) end end end end return true end E não dá nenhum erro na distro. Obrigado Pela atenção. E estou a Espera se Alguém tiver interesse em ajudar. EDIT 19/12: Não consegui ainda fazer com que desse conditions em monstros ou players nesse script com a função onStatsChange. Quem tiver alguma opinião de como fazer para complementar para esse fim. fica a vontade para incrementar o tópico. Ele ta bem grande, mais acho que oque vale é a função. EDIT 26/12: É parece que a função de Statschange, não reconhece a vida dos monstros né isso? mais como faço para que esse script se estenda também a monstros, Alguém tem solução? Atualmente ele funciona em PVP contra players e quando um monstro ataca, mais só. Abraços e cometem. E também se for possível, e não trabalhoso como faço para diminuir o script?

Informação Importante

Confirmação de Termo