Ir para conteúdo

texzin

Membro
  • Registro em

  • Última visita

Tudo que texzin postou

  1. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    @@@@@@@UPPPPP
  2. pra começar está é uma boa empresa !
  3. Qual distro vc está usando ? versão do servidor!?
  4. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    o Amulto n ta dropando mano.. os items estão dropando se eu nao estiver pk ! Vou testar aqi .. EDIT : Agora o amuleto esta sumindo..Como faço pra ele não sumir?
  5. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Funcionou em partes ! Ele nao perde item se tiver red e black.. mais se tiver nomal perde... :S Edit : Mesmo assim obrigador por ajudar ! Ainda estou tentando se alguém puder ajudar !
  6. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Tem como criar um ITEM (AMULETO) infinito. Cuja sua função seja não dropar items de maneira alguma.. Incluido RED E BLACK SKULL Eu ja tenho o AMULETO só não consigo fazer o script.. id= 8266 Seria um Item donate ! Versão 8.60 Uso tfs 0.3.6
  7. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Olá galera... creio eu que seja em MOVEMENTS.. Eu gostaria de um script assim : No meu otserv tem um 'Teleporte' que leva o player a um 'EVENTO DICE' -Tipo assim ao entrar neste teleporte os players tipo ficam em FILA.. Eu gostaria de um script assim. Como esse evento é destinado a players novos. eu gostaria de fazer assim ... PLAYERS DE LVL 1 A 300 PODEM PASSAR NO PISO TAL Players maiores que 300 não pode Isso é possivel de se fazer ? eu vi um script aqi onde lvl 500 + pode passar.. mais eu queria ao contrario lvl 300 + n pode passar
  8. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Agora nao esta dando erro ! Porem fica um numero muito grande de minutos.. quando o player q tomou a potion reloga .. ou morre sla e tem qe entra de novo o server trava ! por uns 4 a 9 segundos
  9. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Deu erro mano =s e não da tempo de ver pois o distro fecha sozin! mesmo assim obrigado
  10. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Eu gostaria sim... se vc puder ajudsr !
  11. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Eu fiz essa conta... mais estragou minha database . Da lostconection.. Fode tudo... Eu queria uma por ACTION e n por mods
  12. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    MODS <?xml version="1.0" encoding="UTF-8"?> <mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="LINKREMOVIDO"> <!-- Configs and Functions --> <config name="PotionExpConfigs"><![CDATA[ ------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE configs = { time = 1, ---- TIME IN MINUTES needpa = TRUE, needlvl = {TRUE, level = 50}, costmana = {TRUE, mana = 300}, addrate = 20, -- Exp que vai adicionar em % removeonuse = TRUE } function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end CreatureEventChecker = function(event, ...) -- Colex if isCreature(arg[1]) then event(unpack(arg)) end end creatureEvent = function(event, delay, ...) -- Colex addEvent(CreatureEventChecker, delay, event, unpack(arg)) end function getPlayerExtraExpRate(cid) -- By MatheusMkalo return (getPlayerRates(cid)[8]-1)*100 end ]]></config> <!-- exppotion.lua --> <action itemid="7440" event="script"><![CDATA[ domodlib('PotionExpConfigs') if getPlayerStorageValue(cid, 62164) >= 1 then return doPlayerSendCancel(cid, "You are already taking effect from this item.") end if configs.needpa and not isPremium(cid) then return doPlayerSendCancel(cid, "You need to be a premmium account to use this item.") end if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then return doPlayerSendCancel(cid, "You need to be level " .. configs.needlvl.level .. " to use this item.") end if configs.costmana[1] then if getCreatureMana(cid) < configs.costmana.mana then return doPlayerSendCancel(cid, "You need " .. configs.costmana.mana .. " mana to use this item.") else doCreatureAddMana(cid, -configs.costmana.mana) end end if configs.removeonuse then doRemoveItem(item.uid, 1) end for i = configs.time*60, 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == configs.time*60 then creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) doPlayerSendTextMessage(cid, 22, "Agora voce ira receber mais exp por matar os mosntros.") setPlayerStorageValue(cid, 62164, os.time()) creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62164, 0) return TRUE ]]></action> <creaturescript type="login" name="ExpPotion" event="script"><![CDATA[ domodlib('PotionExpConfigs') local time = configs.time if os.time()-getPlayerStorageValue(cid, 62164) < time *60 then doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000 , cid, 62164, 0) for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62164))), 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end end return TRUE ]]></creaturescript> </mod> Como ficaria para item dar 3 dias ? se eu deixar : TIME = 4320 BUGA =S
  13. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Bom não sei se é movements ou actions.. So seu que tenho q adcionar uma uniqe ID COM O MAPA EDITOR.. Eu fiz um mapa de war ( Evento ) onde dois times e entram e batalham. Adicionei um trono ao mapa e queria adicionar o seguinte sistema .. Quando um dos players subissem no trono aparecesse uma msg em vermelho para todos os players Player tal acaba de dominar o castelo ! Alguem ajuda ai?
  14. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Sim mais andei olhando e vi que a maioria precisa adicionar QUERY e como eu faco isso em sqlite?
  15. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Ola galera. tenho uma duvida. Peguei um server 8.6 baiak bem simples. Que rodava com distro 0.3.6 e modifiquei para o 0.4 dev com minhas modificacoes... Estou rodando em SQLITE. Tem como adicionar ( war of emperium.. dota..zumbie.. ) ????? PS: eu n posso pegar outra database.. pois estou com o serve online a 2 meses
  16. Aew vlw mano ! Deu certin aqi.. Eu tinha olhado no mods mais n abri essa pasta ;s
  17. não esta em globalevents . lol Eu uso baiak rox.. Mais editei.. ele vinha com um em talkactions mais eu removi.. e ainda sim existe o comando.. ja olhei em mods tb
  18. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    o ot é a mesma versão ! eu so mudei o distro.. para o 0.4 REV. era o 0.3.6 eu mudei a pasta lib e tbm a pasta lib do npc
  19. Obg por todos qe respondem aqi .. Mais ainda n consigo compilar... Eu n consigo atualizar a openssl necessaria pra poder compilar Uso windows
  20. Matheus Acho que voce não leu meu topico ! não esta em mods tb ! lol
  21. Olá galera ! Estou com um problema em meu servidor ! !afk On Quando o player esta com o comando ativado ele nao recebe ataque dos demais players.. Mais ele consegue atacar. E este comando nao está em minhas talkactions para que eu posso removelo !
  22. Eu sei disso. Em WebUpadate. Mais mesmo assim nao tem como :s
  23. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    o Meu está assim : está correto ? function selfSayChannel(cid, message) return selfSay(message, cid, false) end function selfMoveToThing(id) errors(false) local thing = getThing(id) errors(true) if(thing.uid == 0) then return end local t = getThingPosition(id) selfMoveTo(t.x, t.y, t.z) return end function selfMoveTo(x, y, z) local position = {x = 0, y = 0, z = 0} if(type(x) ~= "table") then position = Position(x, y, z) else position = x end if(isValidPosition(position)) then doSteerCreature(getNpcId(), position) end end function selfMove(direction, flags) local flags = flags or 0 doMoveCreature(getNpcId(), direction, flags) end function selfTurn(direction) doCreatureSetLookDirection(getNpcId(), direction) end function getNpcDistanceTo(id) errors(false) local thing = getThing(id) errors(true) if(thing.uid == 0) then return nil end local c = getCreaturePosition(id) if(not isValidPosition(c)) then return nil end local s = getCreaturePosition(getNpcId()) if(not isValidPosition(s) or s.z ~= c.z) then return nil end return math.max(math.abs(s.x - c.x), math.abs(s.y - c.y)) end function doMessageCheck(message, keyword) if(type(keyword) == "table") then return table.isStrIn(keyword, message) end local a, b = message:lower():find(keyword:lower()) if(a ~= nil and b ~= nil) then return true end return false end function doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack) local amount, subType, ignoreCap, item = amount or 1, subType or 1, ignoreCap and true or false, 0 if(isItemStackable(itemid)) then if(isItemRune(itemid)) then amount = amount * subType end local count = amount repeat item = doCreateItemEx(itemid, math.min(100, count)) if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then return 0, 0 end count = count - math.min(100, count) until count == 0 return amount, 0 end local a = 0 if(inBackpacks) then local container, b = doCreateItemEx(backpack, 1), 1 for i = 1, amount do item = doAddContainerItem(container, itemid, subType) if(itemid == ITEM_PARCEL) then doAddContainerItem(item, ITEM_LABEL) end if(isInArray({(getContainerCapById(backpack) * b), amount}, i)) then if(doPlayerAddItemEx(cid, container, ignoreCap) ~= RETURNVALUE_NOERROR) then b = b - 1 break end a = i if(amount > i) then container = doCreateItemEx(backpack, 1) b = b + 1 end end end return a, b end for i = 1, amount do item = doCreateItemEx(itemid, subType) if(itemid == ITEM_PARCEL) then doAddContainerItem(item, ITEM_LABEL) end if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then break end a = i end return a, 0 end function doRemoveItemIdFromPosition(id, n, position) local thing = getThingFromPos({x = position.x, y = position.y, z = position.z, stackpos = 1}) if(thing.itemid ~= id) then return false end doRemoveItem(thing.uid, n) return true end function getNpcName() return getCreatureName(getNpcId()) end function getNpcPos() return getThingPosition(getNpcId()) end function selfGetPosition() local t = getThingPosition(getNpcId()) return t.x, t.y, t.z end msgcontains = doMessageCheck moveToPosition = selfMoveTo moveToCreature = selfMoveToThing selfMoveToCreature = selfMoveToThing selfMoveToPosition = selfMoveTo isPlayerPremiumCallback = isPremium doPosRemoveItem = doRemoveItemIdFromPosition doRemoveItemIdFromPos = doRemoveItemIdFromPosition doNpcBuyItem = doPlayerRemoveItem doNpcSetCreatureFocus = selfFocus getNpcCid = getNpcId getDistanceTo = getNpcDistanceTo getDistanceToCreature = getNpcDistanceTo getNpcDistanceToCreature = getNpcDistanceTo
  24. texzin postou uma resposta no tópico em Suporte Tibia OTServer
    Rev 3884 nao consigo arrumar :s NPC BUGANDO.. NAO CONSIGO FALA hi
  25. Não consegui do mesmo jeito.. Sem conseguir fazer a atualização eu nao vou conseguir compilar

Informação Importante

Confirmação de Termo