Ir para conteúdo

PedroSTT

Banido
  • Registro em

  • Última visita

Tudo que PedroSTT postou

  1. local outfit = 123 -- Id da outfit da bike if getCreatureOutfit(cid) == outfit then doPlayerSendCancel(cid, "Dismount to surf.") doTeleportThing(cid, fromPosition, false) return false end Tenta por pela outfit da bike ... se não der certo tente trocar de return false para return true
  2. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    Faça um backup e faça testes com uma nova database.
  3. if not getPlayerStorageValue(cid, 32001) <= 0 then doPlayerSendCancel(cid, "Dismount to surf.") doTeleportThing(cid, fromPosition, false) return true end Tenta assim , se não der certo é porque ao sair da bike o player continua com a storage da bike.
  4. local function getTop() local query = db.getResult("SELECT `name`, `level` FROM `players` WHERE `id` > 2 AND `group_id` < 2 ORDER BY `level` DESC, `name` ASC;") if (query:getID() ~= -1) then return {query:getDataInt("level")} end return false end function onLogin(cid, skill, oldLevel, newLevel) local top = getTop() if getPlayerLevel(cid)== top[1] then doBroadcastMessage("{ O PLAYER TOP LVL ["..getCreatureName(cid).."] ACABOU DE ENTRAR NO SERVIDOR }",MESSAGE_STATUS_DEFAULT) return true end end
  5. Poste o código para que alguém possa te ajudar
  6. Faça um backup caso não dê certo , não sei se o erro foi solucionado pois não entendo muito de database.
  7. Você não precisa resetar , basta você criar um servidor de testes em seu próprio computador e trocar a Database e usar uma nova Database para ver se o bug é na sua Database
  8. Então talvez o problema seja na database , se for Sqlite , tente trocar a database.
  9. Cheque se você adicionou alguma script com relações a House. Cheque se no config.lua :: houseCleanOld = 0 Uma pergunta ... Quando da CleanMap os itens também somem ?
  10. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    Bom , pode ser sua VPS que não está suportando o servidor e também pode ser alguma script adicionada recentemente. Sugiro que você faça uma limpeza em sua VPS e cheque scripts adicionadas recentemente.
  11. Sim , funciona em todas as versões 0.X.
  12. Faaala galera , hoje vou trazer pra vocês o sistema do Edo tensei do nto Ultimate , para saber como o sistema funciona , basta ir ao SITE do nto ultimate Crie um novo item com essa linha ; <item id="4856" article="an" name="edo pergaminho"> <attribute key="description" value="Neste pergaminho foi selado um [VAZIO]" /> <attribute key="weight" value="7000" /> </item> Agora vamos a spell para criar o pergaminho ; XML ; <instant name="Edo Tensei" words="edo tensen no jutsu" lvl="55" mana="770" prem="1" exhaustion="2000" needlearn="0" event="script" value="edopergaminho"> </instant> 2. Script ; local id = 4856 -- Id do edo pergaminho local count = 1 -- Quantos pergaminhos serão adiciondos ao usar o comando function onCastSpell(cid, var) doPlayerAddItem(cid, id, count) doPlayerSendTextMessage(cid, 18, "Voce recebeu um pergaminho EDO") end Agora , em ACTIONS, adicione essas 2 scripts Em seguida , adicione os XML <action itemid="4856" event="script" value="vai.lua"/> <action itemid="4856" event="script" value="pega.lua"/> Não se esqueça que são dois itens diferentes Não se esqueça de criar os monstros com os respectivos nomes ao Edo Tensei Créditos BananaFight LuckOake MaXwElldEn Gears PsyMcKenzie ManoTobira NtoUltimate PedroSTT -- Correção de bugs , magia do pergaminho edo e reestruturação dos códigos
  13. local config = { diamond = 100, -- Diamonds necessarios small = 2344, -- id do small diamond item = 11192, -- ID do item que vai vender count = 1, -- Quantidade } function onUse(cid, item, fromPosition, itemEx, toPosition) pos = getCreaturePosition(cid) if item.itemid == 1945 then if getPlayerItemCount(cid, config.small) >= config.diamond then doPlayerAddItem(cid, config.item, config.count) doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você acaba de comprar "..config.count.." "..getItemNameById(config.item)..".") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) doPlayerRemoveItem(cid, config.small, config.diamond) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Desculpe, mais você nao tem small diamonds suficiente.Custa 100 deles") doSendMagicEffect(pos, CONST_ME_POFF) end end end CORRIGIDO
  14. Não , apenes troque o ID.
  15. small = , -- id do small diamond Só substituir a linha.
  16. Pode me mandar um print do erro na distro ?
  17. local config = { diamond = 100, -- Diamonds necessarios small = 2344, -- id do small diamond item = 11192, -- ID do item que vai vender count = 1, -- Quantidade } function onUse(cid, item, fromPosition, itemEx, toPosition) pos = getCreaturePosition(cid) if item.itemid == 1945 then if getPlayerItemCount(cid, config.small) >= config.diamond then doPlayerAddItem(cid, config.item, config.count) doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você acaba de comprar "..config.count.." "..getItemNameById(config.item)..".") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Desculpe, mais você nao tem small diamonds suficiente.Custa 100 deles") doSendMagicEffect(pos, CONST_ME_POFF) end end end Teste a script por favor.
  18. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_HITCOLOR, COLOR_RED) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -50.2, 1, -65.8, 1) function onCastSpell(cid, var) local waittime = 1.5 -- Tempo de exhaustion -- Lembre-se de na spells.xml deixar exhaustion = 0 local storage = 250002 local effect = 77 local PosTarget = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z} if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "You are exhausted") return false end doSendMagicEffect(PosTarget, effect) exhaustion.set(cid, storage, waittime) return doCombat(cid, combat, var) end
  19. local function deSpawnOne(toPosition) if isCreature(toPosition) then doRemoveCreature(toPosition) doSendMagicEffect(toPosition, 225) doSendAnimatedText(toPosition, "FLW!!!", 210) key_uid = doCreateItem(10325, 1, toPosition) --ID da chave que voce recebe (crystal, woode, cooper, etc...) doItemSetAttribute(key_uid, "uid", 10760) --action ID da key que vc ganha na quest end end function onUse(cid, item, frompos, item2, toPosition) local min = 5 -- minutos que a creature vai sumir if item.uid == 10760 then doSendAnimatedText(toPosition, "HAAAAA!!!", 210) doSendMagicEffect(toPosition, 225) doRemoveItem(item.uid,1) doSummonCreature("Rato", toPosition) addEvent(deSpawnOne, min * 60000, cid) end end Testa ai
  20. È só pegar a script do big regeneration e aumentar o valor do heal ...
  21. Storage armazena um numero , coloque um numero aleatório que nao seja usado em outras scripts.
  22. -- Mecha somente aqui. local config = { voc = 4, -- voc que precisa ter pra transformar na nova voc newVoc = 5, -- voc que irá virar str = 12345, -- storage time = 1 -- em minutos que o player ficara com a vocation } function onCastSpell(cid, var) if getPlayerVocation(cid) == config.voc then if getPlayerStorageValue(cid, str) == -1 then doPlayerSendTextMessage(cid, 24, "msg qnd virar a voc nova") doPlayerSetVocation(cid, config.newVoc) setPlayerStorageValue(cid, str, 1) addEvent(normal, 60000 * time) else doPlayerSendTextMessage(cid, 24, "msg se tiver no tempo de recarga da spell") end else doPlayerSendTextMessage(cid, 24, "msg se n tiver na voc certa pra se transformar") end end function normal() doPlayerSendTextMessage(cid, 24, "msg qnd virar a voc antiga") doPlayerSetVocation(cid, config.voc) setPlayerStorageValue(cid, str, -1) end
  23. -- A script só podera usar o comando novamente depois que o Shield do comando sumir. function onSay(cid, words, default) local price = 10 -- Quantidade de dinheiro necessário. local count = 1 -- Quantidade que irá substituir. -- preste bastante atencao \/ \/ \/ local item = 5937 -- ID do SHIELD QUE PRECISA local new = 1234 -- ID DO NOVO ITEM QUE SERA ADD local need = 9971 -- ID do dinheiro necessário. local alavancaStr = 5352 -- Storage para salvar e checar o tempo local time = 180 -- Tempo em minutos de espera para usar novamente o comando quando shield voltar ao normal local vocation= 4 -- se for knight vai substituir pelo ID tal if getPlayerItemCount(cid, item) >= count then if getPlayerVocation(cid) == vocation then if getPlayerItemCount(cid, need) >= price then if getPlayerStorageValue(cid, alavancaStr) == -1 then doPlayerAddItem(cid, new, 1) doPlayerRemoveItem(cid, item, count) doPlayerRemoveItem(cid, need, price) setPlayerStorageValue(cid, alavancaStr, 1) addEvent(normal, 60000 * time) else doPlayerSendTextMessage(cid, 24, "msg se tive a storage") end else doPlayerSendTextMessage(cid, 24, "msg se n tiver grana") end else doPlayerSendTextMessage(cid, 24, "msg se n for knight") end else doPlayerSendTextMessage(cid, 24, "msg se n tiver o shield") end return true end function normal() local item = 5937 -- ID do SHIELD QUE PRECISA PRA USAR O COMANDO local new = 1234 -- ID DO SHIELD QUE SERA ADD COM COMANDO local alavancaStr = 5352 -- Storage para salvar e checar o tempo doPlayerAddItem(cid, item, 1) doPlayerRemoveItem(cid, new, 1) setPlayerStorageValue(cid, alavancaStr, -1) return true end Teste.
  24. function onUse(cid, item, frompos, item2, topos) local item = 12608 -- id do item que precisa local qnt = 100 -- quantidade que precisa local new = 124 -- id do novo item if getPlayerItemCount(cid, item) >= qnt then doPlayerSendTextMessage(cid, 24, "msg aqui") doPlayerAddItem(cid, new, 1) else doPlayerSendTextMessage(cid, 24, "msg se n tiver o item e sua qntidade") end end
  25. O problema é o client .

Informação Importante

Confirmação de Termo