Ir para conteúdo

gusinhi

Campones
  • Total de itens

    41
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que gusinhi postou

  1. é que seu servidor é antigo eu nem lembro mais as funçoes mals ae
  2. tira o end antes do return true
  3. <movevent type="StepIn" actionid="AKI VC INVENTA UM NUMERO" event="script" value="NOMEDAPASTA.lua"/> dai depois é so vc colocar o numero da actionid no sqm que voce quer
  4. me mande seus movements.xml do seu ot pra ver como é
  5. as tag vc sabe colocar neh? ali é so mudar as position desejada
  6. eaai pessoal venho pedir ajuda a voces nessa funçao, eu estou quebrando a cuca pra fazer com que funcione apenas 2x alguem poderia me ajudar? function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isCreature(cid) == true then doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 1) return false end return trueend
  7. existe uma forma de fazer por onEquip , tipo eu uso um ring e aumenta a chance do critical dai qnd eu tiro o ring volta ao normal
  8. mas isso ja aparece o qnt heala quando usa magia/pot
  9. local conf = {maxSlotCount=1,ignoredIds={}}function choose(...) local arg = {...} return arg[math.random(1,#arg)]endfunction onUse(cid, item, fromPosition, itemEx, toPosition)if isInArray({7410}, itemEx.itemid) then return false end if isCreature(itemEx.uid) then return false end local nam = Item(itemEx.uid):getAttribute(ITEM_ATTRIBUTE_DESCRIPTION) function getSlotCount(nam) local c = 0 for _ in nam:gmatch('%[(.-)%]') do c = c+1 end return c end if getSlotCount(nam) < conf.maxSlotCount then local l = choose('supreme') local p = (30) local armors = {2463,2464,2465,2466,2467,2472,2476,2483,24841} if isInArray(armors, itemEx.itemid) then doSendMagicEffect(toPosition,30) nam = nam..' ['..l..'.+'..p..'%]' doPlayerSendTextMessage(cid, 20,l..'.+'..p..'%') doSetItemSpecialDescription(itemEx.uid, nam) doRemoveItem(item.uid,1) else doPlayerSendTextMessage(cid, 20,"Slot limit reached.") end end return true end ssalve galera queria um help nesse script acima quando o player usa ele em x item ele fica assim é pra tfs 1.2 You see a dragon scale mail (Arm:15). It can only be wielded properly by knights and paladins. It weighs 114.00 oz. [supreme.+30%] eu queria ajuda para que o script alem de adicionar o atributo e tambem adicione o nome da pessoa ficando assim segue o exemplo em negrito You see a SUPREME dragon scale mail (Arm:15). It can only be wielded properly by knights and paladins. Its Belong NOMEDOPLAYER It weighs 114.00 oz.
  10. alguem sabe fazer o sistema de critical para tfs 1.2
  11. fala pessoal, eu precisava de ajuda com essa spells pra colocar uma chance em % do condition Exhasted combat acertar o outro player sem que interfira no local combat local combat = Combat()combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1)combat:setParameter(COMBAT_PARAM_USECHARGES, 1)function onGetFormulaValues(player, skill, attack, factor) local skillTotal = skill * attack local levelTotal = player:getLevel() / 5 return -(((skillTotal * 0.01) + 1) + (levelTotal)), -(((skillTotal * 0.03) + 6) + (levelTotal))endlocal exhaust = Condition(CONDITION_EXHAUST_COMBAT)exhaust:setParameter(CONDITION_PARAM_TICKS, 1000)combat:setCondition(exhaust)local exhaustAttackGroup = Condition(CONDITION_SPELLGROUPCOOLDOWN)exhaustAttackGroup:setParameter(CONDITION_PARAM_SUBID, 1)exhaustAttackGroup:setParameter(CONDITION_PARAM_TICKS, 1000)combat:setCondition(exhaustAttackGroup)combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")function onCastSpell(creature, var) return combat:execute(creature, var)end
  12. como adicionar items com attackspeed para tfs 1.2 eu precisava de um tutorial de como adicionar <attribute key="attackspeed" value="500" /> exemplo: <item id="18412" article="a" name="glacial rod"> <attribute key="description" value="Hurls the icy essence of the Svargrond glaciers." /> <attribute key="weight" value="3700" /> <attribute key="weaponType" value="wand" /> <attribute key="shootType" value="smallice" /> <attribute key="range" value="4" /> <attribute key="attackspeed" value="500" /> <attribute key="magiclevelpoints" value="1" /> </item>
  13. talvez é o seu tibia ou ip changer eu ja tive esse problema
  14. eai mano me passa seu contato, eu to com o server online 10.90 global full so falta uns 3 ou 4 spells pra lançar o ot de vez
  15. estou procurando alguem que trabalhe com spells que possa reservar um tempo para me ajudar com 5 spells nada complexo, por favor mandem pm eu estou a 3 meses empacado com essas 5 spells e nao consigo ninguem para me ajudar.
  16. gusinhi

    spell condition

    alguem me ajudar a fazer essa condition a bater o mesmo level da pessoa que usar, agradeço desde ja pq n tenho ideia de como fazer local condition = Condition(CONDITION_FIRE) condition:setParameterCONDITION_PARAM_DELAYED, 1) condition:addDamage(5, 3000, -25) condition:addDamage(1, 5000, -666) local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) combat:setFormula(COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.7, 0) combat:setCondition(condition) function onCastSpell(creature, var, isHotkey) return combat:execute(creature, var) end
  17. alguem saberia fazer essa magia para players
  18. gusinhi

    spell onTagetTile

    como faço pra adicionar essa formula nessa spell function onGetFormulaValues(cid, level, skill, attack, element, factor) local levelTotal, formula = level / 5, 0.1126 local normal, elemental = -(skill * attack * formula + levelTotal), math.ceil((skill * element * formula + levelTotal)) return normal/2, normal, -math.random(elemental/2, elemental) end
  19. gusinhi

    spell onTagetTile

    vlwww mano salvo eu, eu tava empacado nessa spell
  20. gusinhi

    spell onTagetTile

    como faço pra usar essa spell em mais de um scrip, eu crio dois scripts diferentes mais quando vou usar so funciona 1 tipo alguem poderia e da uma mao function spellCallback(cid, position, count) if Creature(cid) then if count > 0 or math.random(0, 1) == 1 then position:sendMagicEffect(CONST_ME_MORTAREA) doAreaCombatHealth(cid, COMBAT_DEATHDAMAGE, position, 0, -99, -2001, CONST_ME_MORTAREA) end if count < 5 then count = count + 1 addEvent(spellCallback, math.random(1000, 3000), cid, position, count) end end end function onTargetTile(creature, position) spellCallback(creature:getId(), position, 0) end local combat = Combat() combat:setArea(createCombatArea(AREA_CROSS5X5)) combat:setCallback(CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onCastSpell(creature, var, isHotkey) return combat:execute(creature, var) end
  21. gusinhi

    storage em spell

    alguem teria ideia de como fazer com quando o player usar utevo res ina "scorpion ele ganhasse acesso a uma door e que ele so entre na door com a magia? eu vi isso em um otserv e achei bem criativo so que nao tenho a minima ideia de como fazer
  • Quem Está Navegando   0 membros estão online

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