Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

  1. .Qual servidor ou website você utiliza como base? otx5 Qual o motivo deste tópico? queria colocar alguns comando de god da tfs 0.4 para 1.3 Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local cliport = TalkAction("/cliport") local ignore = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_IGNORE, CONDITIONID_DEFAULT) local teleport = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_TELEPORT, CONDITIONID_DEFAULT) local light = createConditionObject(CONDITION_LIGHT, -1, false, 0, CONDITIONID_DEFAULT) setConditionParam(light, CONDITION_PARAM_LIGHT_LEVEL, 255) setConditionParam(light, CONDITION_PARAM_LIGHT_COLOR, 215) function onSay(cid, words, param, channel) if(not checkExhausted(cid, 7384, 10)) then return true end local condition, type, subId, name = ignore, CONDITION_GAMEMASTER, GAMEMASTER_IGNORE, "private messages ignoring" if(words:sub(2, 2) == "c") then condition, subId, name = teleport, GAMEMASTER_TELEPORT, "map click teleport" elseif(words:sub(2, 2) == "l") then condition, type, subId, name = light, CONDITION_LIGHT, 0, "full light" end local action = "off" if(not getCreatureCondition(cid, type, subId, CONDITIONID_DEFAULT)) then doAddCondition(cid, condition) action = "on" else doRemoveCondition(cid, type, subId, CONDITIONID_DEFAULT) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have turned " .. action .. " " .. name .. ".") return true end cliport:separator(" ") cliport:register() Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. fiz assim mas nao funciona o comando
  2. Alguém sabe onde conseguir a source que rode esse mapa . Só tem a canary Agr e ela não roda ele
  3. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? nao consigo dar look em nada no otsercer Está surgindo algum erro? Se sim coloque-o aqui.
  4. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? estou com esses erros na distro Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: spells/scripts/monster/root_branchy local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ROOTS) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_LEAFSTAR) local condition = Condition(CONDITION_ROOTED) condition:setParameter(CONDITION_PARAM_TICKS, 3000) combat:addCondition(condition) function onCastSpell(creature, var) return combat:execute(creature, var) end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  5. chama 31993831735
  6. Uma dúvida @FeeTads se eu mudar no item.xml o weaponType value pra wand as sword e axe e club e bow será que iria funcionar ? E continuaria upando as skill certas ? Meio que bugaria o sistema pra reconhecer como wand aí o script daria o dano adicional ?
  7. Tem sim na minha source. O sistema de damage
  8. .Qual servidor ou website você utiliza como base? Tfs 0.4 Qual o motivo deste tópico? Gostaria de pedir ajuda ao cria uma Quest que aumenta o Damage geral do player. Tanto em armas como sword ,axé ,club ,bow e wands Você tem o código disponível? Se tiver publique-o aqui: Você DamageSystem = { storage = 14315, damagePercent = 2.5, } } function DamageSystem:getCount(pid) return math.max(0, (tonumber(getCreatureStorage(pid, self.storage)) or 0)) end end function DamageSystem:applyBonuses(pid) local bonus = self:getCurrentBonus(pid) if (bonus and bonus.damagePercent) then setPlayerDamageMultiplier(pid, 1.0 + (bonus.damagePercent / 100.0)) else setPlayerDamageMultiplier(pid, 1.0) end end Alguém consegue me ajudar ?
  9. .Qual servidor ou website você utiliza como base? tfs 0.4 Qual o motivo deste tópico? quero adicionar um efeito de ice ou fire ou energy nesse script Você tem o código disponível? Se tiver publique-o aqui: function isWeapon(uid) -- By Killua return getItemWeaponType(uid) ~= 0 end local itemDeDano = 12730 -- ID do item que irá no slot function onStatsChange(cid, attacker, type, combat, value) if not isPlayer(cid) then return false end if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and (combat ~= COMBAT_HEALING and value > 0) then local itemEquipado = getPlayerSlotItem(cid, CONST_SLOT_AMMO).itemid -- pega o ID do ring no slot local armaEquipadaEsquerda = getPlayerSlotItem(cid, CONST_SLOT_LEFT).uid -- pega uid doq ta na mão esquerda local armaEquipadaDireita = getPlayerSlotItem(cid, CONST_SLOT_RIGHT).uid -- pega uid doq ta na mão direita if isWeapon(armaEquipadaEsquerda) or isWeapon(armaEquipadaDireita) then -- se tiver arma na mão direita ou esquerda if itemEquipado and itemEquipado == itemDeDano then -- se tiver ring equipado E o ring for o escolhido local dano = value*0.5 -- 0.5 = 50% a mais de dano, 1 = 100% a mais.... local target = getCreatureTarget(cid) doTargetCombatHealth(cid, target, combat, -dano, -dano, 255) -- função de dar dano end end end return true end se der para colocar para dar dano adicional nas armas (sword, club, axe, e spear) tbm eu agradeço. pq ele so da o dano adicional nas wands/staffs
  10. eu refiz o codigo todo pelo seu e deu certoooooo valeuuu manoooooooooo
  11. The TFS Version: (1.2.X.SERIES - a minha é essa
  12. descupa reviver o topico mas vc conseguio resolver esse problede remover o item aqui tbm nao remove o resto esta tudo ok
  13. local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {550, 800}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {250, 350}, level = 50, vocations = {3, 4, 7, 8, 11, 12}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {450, 960}, level = 80, vocations = {4, 8, 12}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {1000, 1400}, level = 80, vocations = {4, 8, 12}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {550, 800}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {400, 450}, level = 50, vocations = {1, 2, 3, 5, 6, 7, 9, 10}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {1000, 1400}, level = 80, vocations = {1, 2, 5, 6, 9, 10}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {1000, 1250}, mana = {945, 1010}, level = 80, vocations = {3, 7, 11}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if exhaustion.check(cid, 25006) == false then exhaustion.set(cid, 25006, 1.3) else doPlayerSendCancel(cid, "You are exhausted.") return false end local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= 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.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above 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]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getCreaturePosition(cid),30) doSendMagicEffect(getCreaturePosition(cid),66) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaahh...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaahh...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return TRUE end doRemoveItem(item.uid, 0) doPlayerAddItem(cid, potion.empty, 0) doPlayerRemoveItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) doPlayerAddItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) return TRUE end

Informação Importante

Confirmação de Termo