Ir para conteúdo

574747

Membro
  • Registro em

  • Última visita

Tudo que 574747 postou

  1. 574747 postou uma resposta no tópico em Suporte Tibia OTServer
    bom dia, eu tenho um script de weapons que quando o player ataka um target ele ganha uma storage se ele chega a 100 storage ele evoluir a arma para o nivel 2 nisso tudo bem, to querendo um talkaction que chegue quantos storage o player tem exemplo. O player tem 100 storage ai quando ele fala o commando ira aparece uma frase "Voce esta no nivel 2 com a Demonrage sword!" ai quando ele tive nivel 3 aparece "Voce esta no nivel 3 com a Demonrage sword!" e assim ate o level 5.
  2. 8.6 id do item e 10436
  3. sim direitinho tipo eu nem ganho a storage O.o
  4. ja testei todos, mas sem sucesso :S
  5. exemplo: tem 5 pessoas atacando o Boss Tytany nisso todos os player que atacou o monstro ira ganha esta storage 38492 so isso.
  6. local config = { broadcast = {120, 30}, shallow = "no", delay = 120, events = 30 } config.shallow = getBooleanFromString(config.shallow) local function executeSave(seconds) if(isInArray(config.broadcast, seconds)) then local text = "" if(not config.shallow) then text = "Full s" else text = "S" end text = text .. "erver Vai Ser Salvo Em " .. seconds .. " Seg, Save Server!" doBroadcastMessage(text) end if(seconds > 0) then addEvent(executeSave, config.events * 1, seconds - config.events) else doSaveServer(config.shallow) end end function onThink(interval, lastExecution, thinkInterval) if(table.maxn(config.broadcast) == 0) then doSaveServer(config.shallow) else executeSave(config.delay) doBroadcastMessage("Server saving...",27) end return true end
  7. procura o item no seu weapons e procura a arquivo lua dessa sua arma. e posta aki.
  8. 574747 postou uma resposta no tópico em Suporte Tibia OTServer
    nao testei mas ver se funciona ae. local money = {} local player = {} local position = {} local config = { corpseId = 3058, -- Item Id timee = 6000 -- Seconds } local function allowMovement(cid) if not isPlayer(cid) then return end doCreatureSetNoMove(cid, false) end local function stealMoney(cid) position = getDistanceBetween(getPlayerPosition(player), getPlayerPosition(cid)) if not(getTilePzInfo(getCreaturePosition(cid))) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Mensagem para o player quando estive dentro do pz.") end if position < 2 then doPlayerRemoveMoney(cid, money) doPlayerAddMoney(player, money) doPlayerSendTextMessage(player,MESSAGE_INFO_DESCR,"Você roubou "..money.." gold!") doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'VOCÊ ACABA DE SER ROUBADO!') else doPlayerSendTextMessage(player,MESSAGE_INFO_DESCR,"Roubo cancelado.") end end function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) then doSetItemOutfit(itemEx.uid, config.corpseId, config.timee) doCreatureSetNoMove(itemEx.uid, true) doCreatureSetSkullType(cid, SKULL_WHITE) addEvent(allowMovement, config.timee, itemEx.uid) money = getPlayerMoney(itemEx.uid) player = cid doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'Roubando...') doPlayerSendTextMessage(itemEx.uid,MESSAGE_INFO_DESCR,'Você foi nocauteado!') addEvent(stealMoney, config.timee-3000, itemEx.uid) end return true end
  9. bom pessoal, como o titulo diz to querendo uma weapons ou seja uma sword que hite por porcentagem ou seja se o player tive, 1000 de life eu quero que a wand tire 10% da life do player entao vai retirar 100 tendeu? tentei cria algums script, mais sem sucesso. esta retirando minha life. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDSWORD) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0) local area = createCombatArea( { {0, 0, 0}, {0, 3, 0}, {0, 0, 0} } ) setCombatArea(combat, area) function onUseWeapon(cid, var) local hpmax = getCreatureMaxHealth(cid) local min = -5 -- this means 15% minimum healing local max = -5 -- this means 15% maximum healing local hp_add = math.random((hpmax * (min/-100)), (hpmax * (max/-100))) if(hasCondition(cid, CONDITION_EXHAUST)) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted") return true end getCreaturePosition(cid, hp_add) doCombat(cid, combat, var) doSendMagicEffect(getThingPos(cid), 32) doSendAnimatedText(getPlayerPosition(cid),"+"..hp_add.."", TEXTCOLOR_GREEN) return doCombat(cid, combat, var) end
  10. bom pessoal to procurando uma spell de dano em area, que remove % de health do inimigo dentro da area, essa % deve se configuravel.
  11. tipo tava querendo um creaturescript que ganha-se 25% de exp a mais, mas so se o player for o dono do castle. apos o player logar ira aparece uma msg em MESSAGE_STATUS_CONSOLE_BLUE. Tornesse Dono do castle e ganhe 25% a mais de experiencia! e se o player tive dorminado o castle ira aparece tbm em MESSAGE_STATUS_CONSOLE_BLUE. Voce tem 25% de exp a mais por estar em uma guild dono do castle! ai eu tentei fazer algumas modificaçoes em um script mais nao funcionou, testei esse script. function onLogin(cid) local config = { welcas = "Voce tem 25% de exp a mais por estar em uma guild dono do castle!", not_cas = "Tornesse Dono do castle e ganhe 50% a mais de experiencia!", storage = 154154 } if getPlayerStorageValue(cid, config.storage) > 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.welcas) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.not_cas) end return TRUE end
  12. agora so esta faltando uma coisa que no meu esta bugado. coloquei um sistema que aparece se o player e dono do castle apos ele entra. e diz que ele nao e o dono. aki esta o script. function onLogin(cid) local config = { welcas = "Voce tem 25% de exp a mais por estar em uma guild dono do castle!", not_cas = "Tornesse Dono do castle e ganhe 50% a mais de experiencia!", storage = 154154 } if getPlayerStorageValue(cid, config.storage) > 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.welcas) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.not_cas) end return TRUE end
  13. bom dia, Eu tava querendo que apos o player de x guild puxa a alavanca a x guild ganha-se doble exp ate 1 hora ou configuravel, mas se uma y guild chega-se e puxa-se a alavanca o doble xp iria sai da x guild e a y guild ganhe-se o doble xp e assim sucessivamente. Espero que tenho explicado direitinho. UP
  14. me passa o teu script do +
  15. O.o pq tipo aki no meu fica assim [Reflect: 10%] quase no final do look O.o
  16. mas tipo ziper, ta tudo certinho <attribute key="slotType" value="necklace" /> mas quando eu coloco o amulet na left hand ele ganha o atributo= reflect. entao pensei que isso seria algum movementscript tlg? ae gabriel28 usa esse script na lib. function getItemReflectPercent(itemuid) return getItemAttribute(itemuid, "reflect") end function doPlayerAddReflectedItem(cid, itemid, percent) local item = doPlayerAddItem(cid, itemid) doItemSetAttribute(item, "description", "[Reflect: "..percent.."%]") doItemSetAttribute(item, "reflect", percent) end

Informação Importante

Confirmação de Termo