Ir para conteúdo

loreal

Membro
  • Registro em

  • Última visita

Tudo que loreal postou

  1. man já falei que n tem nada ver com script esse script que vc postou e a mesma coisa a unica diferença e que ta adicionando as potions vazia na bp e removendo as potions..... doRemoveItem(item.uid, 1) if(not potion.empty or config.removeOnUse) then return true end if(fromPosition.x ~= CONTAINER_POSITION) then doCreateItem(potion.empty, fromPosition) else doPlayerAddItem(cid, potion.empty, 1) end
  2. Não ocorre nem um erro no console. as potions começa ficar com exhausted do nada..
  3. bom como disse no tópico erro não esta no script gostaria de saber que isso já ocorreu com alguém e caso tiver ocorrido qual foi solução..., vou postar script para vc... local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", range = -1, realAnimation = "no", -- make text effect visible only for players in range 1x1 multiplier = { health = 1.0, mana = 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 = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {750, 950}, level = 130, vocations = {4, 8 ,12}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {180, 210}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {290, 300}, level = 50, vocations = {1, 2, 3, 5, 6, 7 ,11}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {250, 500}, level = 80, vocations = {1, 2, 5, 6 ,9 ,10}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {250, 500}, mana = {220, 230}, 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) 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 = getThingPosition(item.uid) end doDecayItem(doCreateItem(POOL, potion.splash, toPosition)) if(not potion.empty or config.removeOnUse) then return true end return true end if(hasCondition(cid, CONDITION_EXHAUST)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(((potion.level and getPlayerLevel(itemEx.uid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(itemEx.uid)))) 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 if(config.range > 0 and cid ~= itemEx.uid and getDistanceBetween(getThingPosition(cid), getThingPosition(itemEx.uid)) > config.range) then return false end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.multiplier.health))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.multiplier.mana))) then return false end doSendMagicEffect(getThingPosition(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not config.realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getThingPosition(itemEx.uid), 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 return true end return true end
  4. gostaria de saber porque minhas potions buga fica com muito exhausted e só volta normal quando dou /reload actions obs; não tem nada ver com script das \data\actions\scripts\liquids\potions.lua , pq meu amigo utiliza mesmo script no servidor dele e nunca teve esse bug.
  5. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    Olá galerinha tenho esse script em meu ot e acho que pode tar gerando algum bug , qual é a função dele caso eu tire algo ocorrera ? script
  6. eu queria que modifica-se o script e por só 1 tag no globallevents.xml mais ta bom vlw
  7. olá galerinha gostaria de programar esse script em ontime para ser execultados nos seguintes horários , ficarei muito grato se alguém puder ajudar 23:00h, 06:00h , 12:00h , 16:00h , script function executeClean(interval) doCleanMap() doBroadcastMessage("Game map cleaned, next clean in " .. table.concat(string.timediff(interval / 1000)) .. ".") return true end function onThink(interval) doBroadcastMessage("Game map cleaning within 30 seconds, please pick up your items!") addEvent(executeClean, 240000, interval) return true end
  8. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    ps: coloquei para quando ele estiver com 0 de storage ele conseguir usar e setar a storage para ele não usar denovo. agora deu OBGGG
  9. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    heehe faltou um end coloquei deu erro [1/5/2015 10:25:56] [Error - CreatureScript Interface] [1/5/2015 10:25:56] data/creaturescripts/scripts/addonmount.lua:onLogin [1/5/2015 10:25:56] Description: [1/5/2015 10:25:56] data/creaturescripts/scripts/addonmount.lua:46: attempt to compare number with boolean [1/5/2015 10:25:56] stack traceback: [1/5/2015 10:25:56] data/creaturescripts/scripts/addonmount.lua:46: in function <data/creaturescripts/scripts/addonmount.lua:1>
  10. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    agora deu seguinte erro [1/5/2015 10:4:43] [Error - LuaInterface::loadFile] data/creaturescripts/scripts/addonmount.lua:2: unexpected symbol near 'if' [1/5/2015 10:4:43] [Error - Event::checkScript] Cannot load script (data/creaturescripts/scripts/addonmount.lua) [1/5/2015 10:4:43] data/creaturescripts/scripts/addonmount.lua:2: unexpected symbol near 'if'
  11. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    primeiro deu um erro pq faltou um end dps coloquei end mais continuou dando mesmo erro [1/5/2015 9:58:35] [Error - CreatureScript Interface] [1/5/2015 9:58:35] data/creaturescripts/scripts/addonmount.lua:onLogin [1/5/2015 9:58:35] Description: [1/5/2015 9:58:35] data/creaturescripts/scripts/addonmount.lua:3: attempt to call global 'Player' (a nil value) [1/5/2015 9:58:35] stack traceback: [1/5/2015 9:58:35] data/creaturescripts/scripts/addonmount.lua:3: in function <data/creaturescripts/scripts/addonmount.lua:1>
  12. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    galerinha to usando um script de addon para adicionar no char via storage só que ta ocorrendo seguinte erro 1/5/2015 9:36:9] [Error - CreatureScript Interface] [1/5/2015 9:36:9] data/creaturescripts/scripts/addonmount.lua:onLogin [1/5/2015 9:36:9] Description: [1/5/2015 9:36:9] data/creaturescripts/scripts/addonmount.lua:46: attempt to index global 'player' (a nil value) [1/5/2015 9:36:9] stack traceback: [1/5/2015 9:36:9] data/creaturescripts/scripts/addonmount.lua:46: in function <data/creaturescripts/scripts/addonmount.lua:1> script
  13. deu esse erro aqui alguém ajuda ?? [1/5/2015 9:29:51] [Error - CreatureScript Interface] [1/5/2015 9:29:51] data/creaturescripts/scripts/addonmount.lua:onLogin [1/5/2015 9:29:51] Description: [1/5/2015 9:29:51] data/creaturescripts/scripts/addonmount.lua:4: attempt to call global 'Player' (a nil value) [1/5/2015 9:29:51] stack traceback: [1/5/2015 9:29:51] data/creaturescripts/scripts/addonmount.lua:4: in function <data/creaturescripts/scripts/addonmount.lua:1>
  14. ta aparecendo comando !stamina no default tem como tirar ?
  15. mt bom amigo obg
  16. brigadão mesmo ´parece que ta tudo certo só n sei stamina tem algum comando com god que tira stamina para eu fazer test ou via mysql ?
  17. hehe obg amigo!
  18. ola galerinha do tk, gostaria de um comando em talkactions que os player possa usar 1x por dia !machete = ganha uma machete so pode ser usado dps de 24h !shovel = ganha uma shovel so pode ser usada dps de 24h !rope = ganha uma rope so pode ser usada dps de 24h é !stamina = quando tiver com stamina abaixo de 10h utilizar esse comando para em chela toda ficarei muito grato quem fazer não e muito complexo se alguém deixar algumas funções para fazer de base tb serve ai eu faço resto abraço!
  19. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    Edit já arrumei
  20. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    .
  21. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    alguém consegue deixar esse script para cada dia da semana aparecer um bos diferente em um lugar diferente ? local days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Friday"}; -- coloque os dias da semana aqui que vai acontecer local config = { tp = {tpl= {x= xxx, y= xxx, z=x}, tpv= {x= xxx, y= xxx, z=x}, id= 1387}, -- tpl = Local onde aparece o teleport, tpv = Pra onde levar o teleport boss = {name= "Demon", pos= {x= xxx, y= xxx, z=x}}, -- Nome do boss que vai nascer e local onde vai nascer time = 1 -- Minutos que o teleport vai ficar aberto } function doRemoveTeleport(pos, id) local tp = getTileItemById(pos, id) if tp.uid > 0 then doRemoveItem(tp.uid) end return true end function onTime() if isInArray(days, os.date("%A")) then doBroadcastMessage("O boss ".. config.boss.name.. " acaba de aparecer!!", MESSAGE_STATUS_WARNING) doSummonCreature(config.boss.name, config.boss.pos) doCreateTeleport(config.tp.id, config.tp.tpv, config.tp.tpl) addEvent(doRemoveTeleport, 1000*60*config.time, config.tp.tpl, config.tp.id) end return true end
  22. pois é troquei tb n deu certo >(
  23. alguém que tenha feito todas as auto bordes do 8.60 , e tiver editado para mapear poderia disponibilizar os arquivos? versão do meu items.otb é 3.20.49-8.60
  24. mais eu preciso deixar para dropar loot ate eu terminar de montar server ... up . . alguém ? up up

Informação Importante

Confirmação de Termo