Ir para conteúdo

Lordfire

Lenda
  • Total de itens

    2605
  • Registro em

  • Última visita

  • Dias Ganhos

    13

Tudo que Lordfire postou

  1. Ele não está ensinando não, é mostrando pra todo mundo que tem algo errado e que prejudica que as pessoas vão se mexer pra arrumar.
  2. Aqui é seção de script, e não de sprite Tópico reportado
  3. Acho que achei o erro Tem um colchete a mais, troca }} por }
  4. Não sei se consigo reduzir Vou te dar uma ideia que pode ficar legal, como é burst arrow, põe no final de cada combat: E vai criar um fire field debaixo de quem está sendo atacado
  5. Ideia: faça uma lista de lojas a serem feitas e vá fazendo elas espaçadas. Temple e depot longe um do outro. Depois estipule uma quantidade de casas e faça. Se sobrar espaço, faça ruas mais largas, praças e lagos.
  6. Lordfire

    Level 38

    Rumo ao topo Ainda esperando o top fishing atualizar, zzzZZZZzzzZZ
  7. Tens o !rank level aí, posta o script pra eu ver se te ajudo
  8. Eu penso, se cada um tem uma alimentação diferente, cada um é diferente do outro, isso pode ser a chave de uma quest secreta porém roleplay!
  9. O Jovial topou participar da equipe. Ele é bem conhecido por participar da BlackOnix, muito bom! Tprocheira adicionado como mapper, e iniciadas cidades de Moria (subterrânea) e <indefinida> (suspensa)
  10. Vê se checar o tile e usar um return resolve
  11. Bobeira minha Use assim:
  12. Sugiro que você troque por uma runa, porque potion não dá de juntar.
  13. Não esquece que tem que salvar o arquivo com um nome e mudar o NOME.lua pra esse mesmo nome!
  14. No meu post, clica em "responder" e copia o que estiver dentro das tags codebox
  15. Tá errado sim Não existe "isKnight(cid)" O code é enorme, põe em actions e arrume conforme precisar local config = { removeOnUse = "no", } config.removeOnUse = getBooleanFromString(config.removeOnUse) local POTION = { [id cheio] = {empty = id vazio, splash = 2, health = {minimo, maximo}, vocation = 12, vocStr = "nome da voc"}}, -- edite a gosto } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTION[item.itemid] if(not potion) then return false end if(not isPlayer(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.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)) and not getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges)) then doCreatureSay(itemEx.uid, "Only [nome da vocação] 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])))) 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 doRemoveItem(item.uid) return true end doTransformItem(item.uid, potion.empty) return true end
  16. Postasse bem quando eu atualizei Olha denovo o post
  17. Como? Ele tem chance de tantos % de duplicar, triplicar o até mais o ataque? É isso?
  18. Esse é o script inteiro do "Owned!", se é o que você queria local config = { killStorageValue = 3943, deathStorageValue = 3944, -- commands for the texts (those inside of ||, example: |KILLS| to show skills): KILLS, KILLERNAME, TARGETNAME rewardItem = { use = true, itemid = 2148, minLevel = 100, -- false if you don't want any level req minLevelDiff = 20, -- false if you don't want any level diff req (negative numbers allowed). text = "This is a gift to |KILLERNAME| [|KILLERLEVEL|] for killing |TARGETNAME| [|TARGETLEVEL|]" }, killMessage = { use = true, text = "You owned |TARGETNAME|! You have now |KILLERKILLS| kills!", messageClass = MESSAGE_STATUS_CONSOLE_BLUE }, broadcastMessage = { use = true, minLevel = 100, -- false if you don't want any level req minLevelDiff = 0, -- false if you don't want any level diff req (negative numbers allowed). text = "|KILLERNAME| [|KILLERLEVEL|] just killed |TARGETNAME| [|TARGETLEVEL|]!", messageClass = MESSAGE_STATUS_WARNING }, killerAnimation = { use = true, text = "Frag!", -- Only 9 letters! No "commands" here. color = 215 }, targetAnimation = { use = true, text = "Owned!", -- Only 9 letters! No "commands" here. color = 215 }, towns = { {"Fibula", {2, 3}}, {"Venore", {5, 6}}, {"Edron", {8, 9}}, {"Thais", {11, 12}}, {"Desert", {14, 15}} } } function onDeath(cid, corpse, killer) if(isPlayer(killer) == TRUE) then local targetKills = math.max(0, getPlayerStorageValue(cid, config.killStorageValue)) + 1 local targetDeaths = math.max(0, getPlayerStorageValue(cid, config.deathStorageValue)) + 1 local oldPosition = getCreaturePosition(cid) local killerKills = math.max(0, getPlayerStorageValue(killer, config.killStorageValue)) + 1 local killerDeaths = math.max(0, getPlayerStorageValue(killer, config.deathStorageValue)) + 1 setPlayerStorageValue(killer, config.killStorageValue, targetKills) setPlayerStorageValue(cid, config.deathStorageValue, targetDeaths) local killerLevel = getPlayerLevel(killer) local targetLevel = getPlayerLevel(cid) local levelDiff = targetLevel - killerLevel local values = { ["KILLERKILLS"] = killerKills, ["KILLERDEATHS"] = killerDeaths, ["KILLERNAME"] = getCreatureName(killer), ["KILLERLEVEL"] = killerLevel, ["TARGETKILLS"] = targetKills, ["TARGETDEATHS"] = targetDeaths, ["TARGETNAME"] = getCreatureName(cid), ["TARGETLEVEL"] = targetLevel } function formateString(str) return(str:gsub("|([A-Z]+)|", (function(a) return values[a] end))) end if(config.rewardItem.use and (not config.rewardItem.minLevel or targetLevel >= config.rewardItem.minLevel) and (not config.rewardItem.minLevelDiff or levelDiff >= config.rewardItem.minLevelDiff)) then local uid = doPlayerAddItem(killer, config.rewardItem.itemid, 1) doSetItemSpecialDescription(uid, formateString(config.rewardItem.text)) doPlayerAddItem(uid,2180,3) end if(config.killMessage.use) then doPlayerSendTextMessage(killer, config.killMessage.messageClass, formateString(config.killMessage.text)) end if(config.broadcastMessage.use and (not config.broadcastMessage.minLevel or getPlayerLevel(cid) >= config.broadcastMessage.minLevel) and (not config.broadcastMessage.minLevelDiff or levelDiff >= config.broadcastMessage.minLevelDiff)) then broadcastMessage(formateString(config.broadcastMessage.text), config.broadcastMessage.messageClass) end if(config.killerAnimation.use) then doSendAnimatedText(getCreaturePosition(killer), config.killerAnimation.text, config.killerAnimation.color) end if(config.targetAnimation.use) then doSendAnimatedText(getCreaturePosition(cid), config.targetAnimation.text, config.targetAnimation.color) end if isPlayer(mostDamageKiller) == TRUE then db.executeQuery("UPDATE `players` SET `points` = `points` + 1 WHERE `name` = '"..getCreatureName(lastHitKiller).."';") end if isPlayer(lastHitKiller) == TRUE and lastHitKiller ~= mostDamageKiller then db.executeQuery("UPDATE `players` SET `points` = `points` + 1 WHERE `name` = '"..getCreatureName(mostDamageKiller).."';") end end return TRUE end Salve em creaturescripts/scripts como deathBroadcast.lua creaturescripts/creaturescripts.xml:
  19. bls = beleza Só consegui fazer que kicka um player Basta usar a rune no player que ele desloga Só vai kickar se tiver mesmo acesso ou superior (player só kicka player, tutor kicka player e tutor) Pode salvar com o nome que quiser e usar qualquer runa Qualquer erro posta o código aqui
  20. local area = createCombatArea(AREA_SQUARE1X1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) doSendDistanceShoot(getCreaturePosition(cid),{x = getCreaturePosition(cid).x - math.random(4,6), y = getCreaturePosition(cid).y - 5, z = getCreaturePosition(cid).z},CONST_ANI_ICEATTACK) for x = 1, 10 do addEvent(furyAttackTarget,200*x+500,cid,target,{x = getCreaturePosition(target).x + math.random(-1,1), y = getCreaturePosition(target).y + math.random(-1,1), z = getCreaturePosition(target).z}) end end function furyAttackTarget(cid,target,pos) if isCreature(cid) == TRUE and isCreature(target) == TRUE then doSendDistanceShoot({x = getCreaturePosition(target).x - math.random(4,6), y = getCreaturePosition(target).y - 5, z = getCreaturePosition(target).z},pos,CONST_ANI_ICE) doAreaCombatHealth(cid,COMBAT_ICEDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_ICEDAMAGE) end end
  21. Lordfire

    Bullet!

    Se você diz que tem, então tenta: items/items.xml
  22. talkactions.xml
  23. Vários ots tão com esse bug Tenta baixar outra distro
  24. Lordfire

    [Vírus]

    Isso é proibido aqui no XTibia Tópico reportado É outro pl swe idiota tentando postar vírus tillbaka till forumet hemska och försöka lura en annan bunt
  • Quem Está Navegando   0 membros estão online

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