Ir para conteúdo

falling

Membro
  • Registro em

  • Última visita

Tudo que falling postou

  1. falling postou uma resposta no tópico em Suporte Tibia OTServer
    upp
  2. Boa tarde pessoal, eu estou com um script aqui em meu servidor, mais ele me deu dor de cabeças... Estava com problemas no servidor em relação a desempenho/latencia, migrei o servidor para 3 paises de 3 diferentes hosts e persistiu, aumentei a memoria ram e persistiu, ja nao sabia oque fazer, comprei 3 distros e nada... Derrepente me descubro que oque travava era essa maldita globalevent '-' o tempo dela tava em 1500 eu coloquei 4000 os playeres disseram que melhorou. Só que preciso de uma melhor, que nao tenha esse bug, e que possa COLOCAR 2X O MESMO TEXTO Exemplo, quero colocar pra falar o numero 50 em X lugar, e novamente o numero 50 em Y lugar Esse script ele nao permite adicionar isso', ou voce poe 50, ou 51, ou 52, nao pode repitir local positions = { ["Club"] = {{x = 32366, y = 32233, z = 6}, 9}, ["Sword"] = {{x = 32368, y = 32233, z = 6}, 9}, ["Axe"] = {{x = 32370, y = 32233, z = 6}, 9}, ["Distance"] = {{x = 32370, y = 32231, z = 6}, 3}, ["Magic"] = {{x = 32366, y = 32231, z = 6}, 6}, } function onThink(cid, interval, lastExecution) for text, v in pairs(positions) do doSendAnimatedText(v[1], text, math.random(1, 255)) doSendMagicEffect(v[1], v[2] or 18) end return true end upp
  3. -- [UniqueID] = {spell = "spellName", price = 100 - Gold coins}, Nesta linha seria como? UniqueID seria 12345? Spellname o nome da magia pode ser qualquer um? como é? especifica algumas coisas ai pra mim! Obrigado!
  4. Boa tarde, eu estava vendo um topico de aprender spells, e pensei se tem como fazer o seguinte script com a função: getPlayerLearnedInstantSpell 1- O jogador clicaria na alavanca, aprenderia a spell X e seria automaticamente teleportado pra uma POS. PS: Ele só poderia aprender 1x, ou seja ele nao poderia virar a alavanca denovo! PS²: Se não for pedir muito, tem como colocar pra sair um effect hora que ele virar a alavanca para aprender? E se ele ja tiver, sair o effet Y Obrigado!
  5. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Olá pessoal estava tentando modificar este script da arena, movement que quando pisa no tile, aparece um goblet emcima da bancada, com a desc de bravura pro kra. Mais eu tentei por outro item, só mudei o ID e a QUANTIDADE e mesmo assim nao vai, tem como arrumar? function onStepIn(cid, item, position, fromPosition) local gobletPos = getThingPos(item.uid) if item.actionid == 42360 then if getPlayerStorageValue(cid, 42360) ~= 1 then setPlayerStorageValue(cid, 42360, 1) local goblet = doCreateItemEx(10572, 15) doItemSetAttribute(goblet, "description", "It is given to the courageous victor of the barbarian arena greenhorn difficulty.\nAwarded to " .. getCreatureName(cid) .. ".") doTileAddItemEx({x=gobletPos.x,y=gobletPos.y-1,z=gobletPos.z}, goblet) end elseif item.actionid == 42370 then if getPlayerStorageValue(cid, 42370) ~= 1 then setPlayerStorageValue(cid, 42370, 1) local goblet = doCreateItemEx(10572, 25) doItemSetAttribute(goblet, "description", "It is given to the courageous victor of the barbarian arena scrapper difficulty.\nAwarded to " .. getCreatureName(cid) .. ".") doTileAddItemEx({x=gobletPos.x,y=gobletPos.y-1,z=gobletPos.z}, goblet) end elseif item.actionid == 42380 then if getPlayerStorageValue(cid, 42380) ~= 1 then setPlayerStorageValue(cid, 42380, 1) local goblet = doCreateItemEx(10572, 30) doItemSetAttribute(goblet, "description", "It is given to the courageous victor of the barbarian arena warlord difficulty.\nAwarded to " .. getCreatureName(cid) .. ".") doTileAddItemEx({x=gobletPos.x,y=gobletPos.y-1,z=gobletPos.z}, goblet) end end doTransformItem(item.uid, item.itemid - 1) return TRUE end function onStepOut(cid, item, pos) doTransformItem(item.uid, item.itemid + 1) return TRUE end
  6. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Olha... up up
  7. @Suicide testei da maneira que voce fez, funcionou Porem fui mudar as linhas para testar, nao funcionou mais e deu esse errro: Acho que meu servidor tem algum problema com quebra de linha :S Tem alguma solução? Olha como eu tava deixando local level = 100 local pos = {x=33212, y=31671, z=13} local txt = {'Parabens! Voce tem a oportunidade de concluir a Annihilator Quest. Level Recomendado: 100 Recompensa: Sword of Valor, Stonecutter Axe, Demon Armor ou Bonebreaker Adkko', 'Você não pode ser teleportado por não ter level suficiente..blablabla'} function onUse(cid, fromPos, toPos) if getPlayerLevel(cid) >= level then doTeleportThing(cid, pos) doSendMagicEffect(toPos, CONST_ME_TELEPORT) doShowTextDialog(cid, 2175, txt[1]) else doShowTextDialog(cid, 2175, txt[2]) end return true end
  8. Boa noite pessoal, eu tenho um script que funciona assim, ao player clicar no bau ele e teleportado para um lugar. Mais gostaria de adicionar os seguintes parametros a função: - Checar o Level Caso o jogador tenha o level necessario: Será teleportado para a cordenada, e irá abrir "Poup-UP" para ele dizendo informações sobre a quest. Caso o jogador NÃO tenha o level necessario: Não irá teleportar e Irá abrir outro "POUP-UP" dizendo algumas informacoes. PS: Gostaria que o poup up abrisse tipo como se abrisse um livro, pra poder copiar o link que tiver nesse poup up. Se abrir aquele poup up: FOR YOUR INFORMATION não da pra copiar link.. Obrigado function onUse(cid, item, frompos, item2, topos) if item.uid == 10272 then if item.itemid == 1746 then local nplayer1pos = {x=406, y=1523, z=13} doTeleportThing(cid,nplayer1pos) doSendMagicEffect(nplayer1pos,10) doSendMagicEffect(topos,6) doSendMagicEffect(frompos,6) end end return 1 end
  9. falling postou uma resposta no tópico em Suporte Tibia OTServer
    ty s2
  10. falling postou uma resposta no tópico em Suporte Tibia OTServer
    E entao <globalevent name="ResetQuest" time="00:00" event="script" value="resetquest.lua"/> nao uso mais?
  11. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Então no bau eu ponho actionID e uniqueID 50040?
  12. falling postou uma resposta no tópico em Suporte Tibia OTServer
    éh para tfs 0.4? vou testar!
  13. falling postou uma resposta no tópico em Suporte Tibia OTServer
    No caso eu uso qual storage no bau da quest? 50041? Obrigado Suicide!
  14. funcionou? ele começa a enxer em que sentido?
  15. funcionou? tfs 0.4
  16. falling postou uma resposta no tópico em Suporte Tibia OTServer
    E se eu quiser esse system pra quem tem PREMIUM DAYS? Poderiam aprimoriar? agradeco desde ja.
  17. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Teria esse script pra tfs 0.4? :v obrigado rs'
  18. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Se meu server eh em milesseconds sera este: <globalevent name="QuextX" interval="" event="script" value="ZZZZ.lua"/> Qual seria o interval? pra 1 dia
  19. falling postou uma resposta no tópico em Suporte Tibia OTServer
    @Suicide function onUse(cid, item, frompos, item2, topos) if item.uid == 50040 then if getPlayerStorageValue(cid,50040) == -1 then doPlayerSendTextMessage(cid,25,"You have found a Stamina Reifl.") doPlayerAddItem(cid,XXX,1) setPlayerStorageValue(cid,50040,1) else doPlayerSendTextMessage(cid,25,"The is empty.") end end return TRUE end
  20. falling postou uma resposta no tópico em Suporte Tibia OTServer
    -- Annihilator script by GriZzm0 -- Room check and monster removal by Tworn --Variables used: -- player?pos = The position of the players before teleport. -- player? = Get the thing from playerpos. --player?level = Get the players levels. --questslevel = The level you have to be to do this quest. --questtatus? = Get the quest status of the players. --demon?pos = The position of the demons. --nplayer?pos = The position where the players should be teleported too. --trash= position to send the demons to when clearing, 1 sqm in middle of nowhere is enough -- starting = Upper left point of the annihilator room area. -- ending = Bottom right point of the annihilator room area. --UniqueIDs used: --5000 = The switch. --5001 = Demon Armor chest. --5002 = Magic Sword chest. --5003 = Stonecutter Axe chest. --5004 = Present chest. function onUse(cid, item, frompos, item2, topos) if item.uid == 7001 then if item.itemid == 1946 then player1pos = {x=32674, y=32070, z=8, stackpos=253} player1 = getThingfromPos(player1pos) player2pos = {x=32673, y=32070, z=8, stackpos=253} player2 = getThingfromPos(player2pos) player3pos = {x=32672, y=32070, z=8, stackpos=253} player3 = getThingfromPos(player3pos) player4pos = {x=32671, y=32070, z=8, stackpos=253} player4 = getThingfromPos(player4pos) if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then player1level = getPlayerLevel(player1.uid) player2level = getPlayerLevel(player2.uid) player3level = getPlayerLevel(player3.uid) player4level = getPlayerLevel(player4.uid) questlevel = 150 if player1level >= questlevel and player2level >= questlevel and player3level >= questlevel and player4level >= questlevel then queststatus1 = getPlayerStorageValue(player1.uid,100) queststatus2 = getPlayerStorageValue(player2.uid,100) queststatus3 = getPlayerStorageValue(player3.uid,100) queststatus4 = getPlayerStorageValue(player4.uid,100) if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then --if 1==1 then demon1pos = {x=32670, y=32057, z=15} demon2pos = {x=32665, y=32057, z=15} demon3pos = {x=32667, y=32055, z=15} demon4pos = {x=32669, y=32055, z=15} demon5pos = {x=32666, y=32059, z=15} demon6pos = {x=32668, y=32059, z=15} doSummonCreature("Maze Boss", demon1pos) doSummonCreature("Maze Boss", demon2pos) doSummonCreature("Maxiton Tower", demon3pos) doSummonCreature("Maxiton Tower", demon4pos) doSummonCreature("Maxiton Tower", demon5pos) doSummonCreature("Maxiton Tower", demon6pos) nplayer1pos = {x=32669, y=32057, z=15} nplayer2pos = {x=32668, y=32057, z=15} nplayer3pos = {x=32667, y=32057, z=15} nplayer4pos = {x=32666, y=32057, z=15} doSendMagicEffect(player1pos,2) doSendMagicEffect(player2pos,2) doSendMagicEffect(player3pos,2) doSendMagicEffect(player4pos,2) doTeleportThing(player1.uid,nplayer1pos) doTeleportThing(player2.uid,nplayer2pos) doTeleportThing(player3.uid,nplayer3pos) doTeleportThing(player4.uid,nplayer4pos) doSendMagicEffect(nplayer1pos,10) doSendMagicEffect(nplayer2pos,10) doSendMagicEffect(nplayer3pos,10) doSendMagicEffect(nplayer4pos,10) doTransformItem(item.uid,1945) else doPlayerSendCancel(cid,"Sorry, not possible.") end else doPlayerSendCancel(cid,"Sorry, not possible.") end else doPlayerSendCancel(cid,"Sorry, not possible.") end end if item.itemid == 1945 then -- Here is the code start: starting={x=32662, y=32051, z=15, stackpos=253} checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos} ending={x=32679, y=32062, z=15, stackpos=253} players=0 totalmonsters=0 monster = {} repeat creature= getThingfromPos(checking) if creature.itemid > 0 then if getPlayerAccess(creature.uid) == 0 then players=players+1 end if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then totalmonsters=totalmonsters+1 monster[totalmonsters]=creature.uid end end checking.x=checking.x+1 if checking.x>ending.x then checking.x=starting.x checking.y=checking.y+1 end until checking.y>ending.y if players==0 then trash= {x=32677, y=32070, z=8} current=0 repeat current=current+1 doTeleportThing(monster[current],trash) until current>=totalmonsters doTransformItem(item.uid,1946) end -- Here is the end of it end end if item.uid == 5011 then queststatus = getPlayerStorageValue(cid,100) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You have found a enchanted staff.") doPlayerAddItem(cid,2433,1) setPlayerStorageValue(cid,100,1) else doPlayerSendTextMessage(cid,22,"It is empty.") end end if item.uid == 5012 then queststatus = getPlayerStorageValue(cid,100) if queststatus ~= 1 then doPlayerSendTextMessage(cid,22,"You have found a blessed shield.") doPlayerAddItem(cid,2523,1) setPlayerStorageValue(cid,100,1) else doPlayerSendTextMessage(cid,22,"It is empty.") end end if item.uid == 5013 then queststatus = getPlayerStorageValue(cid,100) if queststatus ~= 1 then doPlayerSendTextMessage(cid,22,"You have found a ring of doom.") doPlayerAddItem(cid,2357,1) setPlayerStorageValue(cid,100,1) else doPlayerSendTextMessage(cid,22,"It is empty.") end end return 1 end ajuda?
  21. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Tipo o meu sv eh em milisseconds, 24horas ai ficaria como? E isso não é no script?? porque se ele pegar uma storage ela nao sai, ou so ai em interval ja da?
  22. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Olá gostaria de saber como faço uma quest que pode ser feito 1x por dia? Queria que fosse compativel com o horario do servidor, tipo das 00 as 00, e não com o player. Tipo hora que ele clicar, vai ser 24hrs apartir do momento em que ele adquire a storage? NÃO. Quero que a storage zere para todos exatamente as 00i00 e assim qualquer pessoa pode fazer denovo!
  23. Gostei e se conseguir vou aproveitar o embalo '-' rs principalmente da parte do item temporario rs' boa sorte
  24. falling postou uma resposta no tópico em Suporte Tibia OTServer
    yalaharcrate.lua local items = {7620, 7618, 2148, 2148, 9808, 9811, 2671, 2666, 2789, 2213, 2145, 2145, 5710} local count = {1, 1, 50, 80, 1, 1, 5, 8, 5, 1, 1, 2, 1} local countable = {2148, 2789, 2145} local uncountable = {2666, 2671} function onUse(cid, item, fromPosition, itemEx, toPosition) local compareTime = 3600 local currentValue = getPlayerStorageValue(cid, 65000) if currentValue == -1 then setPlayerStorageValue(cid, 65000, os.time()) end if (os.time() - currentValue) >= compareTime then setPlayerStorageValue(cid, 65000, os.time()) local myItem = math.random(1, #items) doPlayerAddItem(cid, items[myItem], count[myItem]) if isInArray(countable, item[myItem]) and count[myItem] > 1 then doCreatureSay(cid, "You have found " .. count[myItem] .. " " .. getItemName(items[myItem]) .. "s.", TALKTYPE_ORANGE_1) elseif count[myItem] == 1 then doCreatureSay(cid, "You have found a " .. getItemName(items[myItem]) .. ".", TALKTYPE_ORANGE_1) end else doCreatureSay(cid, "You found nothing useful.", TALKTYPE_ORANGE_1) end return TRUE end
  25. falling postou uma resposta no tópico em Suporte Tibia OTServer
    up~

Informação Importante

Confirmação de Termo