Ir para conteúdo

Sekk

Membro
  • Registro em

  • Última visita

Tudo que Sekk postou

  1. Desculpa, não sou tão bom em script etc, mas tentei.. ve ai globalevent.xml <globalevent name="tpa" time="19:00" event="script" value="tpa.lua"/> tpa.lua Da um feedback por favor pra eu ver oq pode estar errado, e se mais alguem puder ajudar aqui hahaha
  2. Ja tem essa função. Na lib do sistema, ache a seguinte tabela: [1] = {100, false, false}, [2] = {90, false, false}, [3] = {75, false, false}, [4] = {60, true, false}, [5] = {45, true, false}, [6] = {30, true, false}, [7] = {25, true, false}, [8] = {20, true, true}, [9] = {15, true, true}, [10] = {10, true, true}, [11] = {10, true, true}, [12] = {5, true, true} Por exemplo o ultimo, lvl 12 ta assim [12] = {5, true, true} 12 é o level, 5 chance, true se volta level, true se quebra o item ao falhar
  3. Sekk postou uma resposta no tópico em Websites
    Você tem que ir na database, z_shop_offers, e no id da oferta(no caso do item 'teste' vai ser 1 ou 2) vc coloca o id do item q é pra aparecer
  4. Sekk postou uma resposta no tópico em Suporte Tibia OTServer
    Tem perigo apenas se estiver em 'plain' no seu config.lua. Tenta ir na table player_guilds e deletar todas as guilds
  5. Pelo erro, é exatamente isso: O que você colocou aqui? monster_name = "Zombie Event",
  6. @kiinho local water = {490, 491, 492, 493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} local combat = createCombatObject() local meteor = createCombatObject() local z = getCreatureOutfit(cid) local outfit = {z.lookType = 30 , z.lookHead = 0, z.lookBody = 0, z.lookLegs = 0, z.lookFeet = 0, z.lookAddons = 0} setCombatParam(meteor, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(meteor, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK) setCombatFormula(meteor, COMBAT_FORMULA_LEVELMAGIC, -7.2, -400, -7.3, -400) local stun = createConditionObject(CONDITION_PARALYZE) setConditionParam(stun, CONDITION_PARAM_TICKS, 20000) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(meteor, stun) local meteor_water = createCombatObject() setCombatParam(meteor_water, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(meteor_water, COMBAT_PARAM_EFFECT, CONST_ME_LOSEENERGY) setCombatFormula(meteor_water, COMBAT_FORMULA_LEVELMAGIC, -7.2, -400, -7.3, -400) combat_arr = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } local combat_area = createCombatArea(combat_arr) setCombatArea(combat, combat_area) local function meteorCast(p) doCombat(p.cid, p.combat, positionToVariant(p.pos)) end local function stunEffect(cid) doSendMagicEffect(getThingPos(cid), CONST_ME_STUN) end function onTargetTile(cid, pos) if (math.random(0, 0) == 0) then local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 1}) if (isInArray(water, ground.itemid) == TRUE) then local newpos = {x = pos.x + 9, y = pos.y - 8, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 100, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x + 9, y = pos.y - 8, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 100, {cid = cid,pos = pos, combat = meteor}) end end end setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onCastSpell(cid, var) if getCreatureOutfit(cid) ~= outfit then doSendPlayerCancel(cid, "Sorry, you cannot cast this spell.") else return doCombat(cid, combat, var) end end
  7. wtf, mas tenta ai dnv, acabei de atualizar o mod ali
  8. @diarmaint tenta assim: <?xml version="1.0" encoding="utf-8"?> <mod name="Reflect System" version="1.0" author="Sekk" enabled="yes"> <config name="rc"><![CDATA[ rc = { chance = 100, -- chance de sair o reflect (1 = 1% de chance) valor_reflect = 15, -- % do dano do reflect storage = 45455 -- storage do reflect } ]]></config> <event type="login" name="Reflect_Login" event="script"><![CDATA[ domodlib('rc') function onLogin(cid) registerCreatureEvent(cid, "reflect") return true end]]></event> <event type="statschange" name="reflect" event="script"><![CDATA[ domodlib('rc') function onStatsChange(cid, attacker, type, combat, value) if getPlayerStorageValue(cid, rc.storage) > 0 then if type == STATSCHANGE_HEALTHLOSS or STATSCHANGE_MANALOSS and isPlayer(cid) and isCreature(attacker) then if math.random (1,100) <= rc.chance then doCreatureSay(cid, "Reflect!", TALKTYPE_MONSTER_SAY) local danoReflect = value * (rc.valor_reflect/100) doTargetCombatHealth(cid, attacker, COMBAT_PHYSICALDAMAGE, -danoReflect, -danoReflect, CONST_ME_EXPLOSIONAREA) return true end end end return true end]]></event> </mod>
  9. broad sword existe msm? verifique corretamente no items.xml o dinheiro ir pro bando vc edita nessa linha: AutomaticDeposit = true, Não aparece erros no tfs?
  10. Novamente, igual um outro tópico, como sou inútil, fiz um mod pra esse script, se alguém quiser ta ai uahuah(se tiver errado avisa pfv, ai eu aprendo tbm) <?xml version="1.0" encoding="utf-8"?> <mod name="Transform" version="1.0" author="Vodkart" enabled="yes"> <event type="login" name="BossCorpse-Reg" event="script"><![CDATA[ function onLogin(cid) registerCreatureEvent(cid, "BossCorpse") return true end]]></event> <event type="kill" name="BossCorpse" event="script"><![CDATA[ function onKill(cid, target) local monsters = { ["larva"] = {chance = 50, next = "bug", msg = {"kill me bitch","hoje nao hoje nao"}}, ["bug"] = {chance = 50, next = "scarab", msg = {"vou renascer","viadoo"}}, ["scarab"] = {chance = 50, next = "ancient scarab", msg = {"fui derrotado","saymon vendedor de rolas"}} } function doRemoveCorpse(pos, creature) for i = 0, 255 do pos.stackpos = i tile = getTileThingByPos(pos) if tile.uid > 0 and isCorpse(tile.uid) then doRemoveItem(tile.uid) end end doSummonCreature(creature, pos) end if isPlayer(cid) and isMonster(target) then local var = monsters[getCreatureName(target)] if var then if var.chance >= math.random(1, 100) then addEvent(doRemoveCorpse, 0, getThingPos(target), var.next) doCreatureSay(target, var.msg[math.random(1, #var.msg)], TALKTYPE_ORANGE_1) end end end return true end ]]></event> </mod>
  11. AUHAUHAUAHAUAHAU sou cabra macho tio Edit.: Como eu sou um inútil da vida, eu gosto de ficar fuçando nas coisas e deixei o script em mod, se alguem quiser, ta ai: <?xml version="1.0" encoding="utf-8"?> <mod name="Reflect System" version="1.0" author="Sekk" enabled="yes"> <config name="rc"><![CDATA[ local config = { chance = 100, -- chance de sair o reflect (1 = 1% de chance) valor_reflect = 15, -- % do dano do reflect storage = 45455 -- storage do reflect } ]]></config> <event type="login" name="Reflect_Login" event="script"><![CDATA[ domodlib('rc') function onLogin(cid) registerCreatureEvent(cid, "reflect") return true end]]></event> <event type="statschange" name="reflect" event="script"><![CDATA[ domodlib('rc') function onStatsChange(cid, attacker, type, combat, value) if getPlayerStorageValue(cid, config.storage) > 0 then if type == STATSCHANGE_HEALTHLOSS or STATSCHANGE_MANALOSS and isPlayer(cid) and isCreature(attacker) then if math.random (1,100) <= config.chance then doCreatureSay(cid, "Reflect!", TALKTYPE_MONSTER_SAY) local danoReflect = value * (config.valor_reflect/100) doTargetCombatHealth(cid, attacker, COMBAT_PHYSICALDAMAGE, -danoReflect, -danoReflect, CONST_ME_EXPLOSIONAREA) return true end end end return true end]]></event> </mod>
  12. vlw ^^(to sem rep+ por hj)
  13. Como vc alterou @tetheuscunha ?
  14. Eu tenho um script aqui, mas sem porcentagem, a criatura vira msm outra: creaturescripts/scripts cria um script ae qlqr nome: creaturescripts.xml <event type="statschange" name="Transformation" event="script" value="qlqr nome.lua"/> Agora no .xml do monstro do script, vc adiciona isso: <script> <event name="Transformation"/> </script> Créditos: Omega
  15. Sempre tive a msm duvida uahuaha ajuda ai @Vodkart
  16. exatamente uahuahah, evento em team, não que seja o correto, mas é melhor deixar a configuração com numeros pares, pra uma equipe se igualar à outra, tendeu?
  17. Ele atualizou o tópico la, agr tbm tem limite, esse topico aqui é pq ele fez o autoloot por account tbm
  18. Da na mesma, se entrar tipo 13 players, como o evento vai separar 13 players pra 4 times?
  19. @Zzyzx Cara, vc colocou as 2 funções dentro da função getPlayerInArea(frompos, topos) Aquele end la em baixo e o return players, fazem parte dessa função. Tira as 2 funções dali e coloca em outro lugar, e tenha precaução pra n colocar dentro de outra função, ve de onde faz parte cada end
  20. Qualquer coisa, comenta ai
  21. @Zzyzx Procura o ultimo return true do arquivo da lib function, e coloca essas duas funções antes do return true
  22. @Zzyzx Vc adicionou esse código na lib 050-functions.lua? function getPremiumPoints(cid) local query = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = "..getPlayerAccountId(cid)) return query:getDataInt("premium_points") <= 0 and 0 or query:getDataInt("premium_points") end function setPremiumPoints(cid, amount) return db.executeQuery("UPDATE `accounts` SET `premium_points` = "..amount.." WHERE `id` = "..getPlayerAccountId(cid)) end

Informação Importante

Confirmação de Termo