Ir para conteúdo
Banner com Efeitos

Kimoszin

Héroi
  • Registro em

  • Última visita

Tudo que Kimoszin postou

  1. Cria uma conta e um personagem, Com o personagem deslogado, você abre o SQL, vai na tabela players, procura o nome do seu personagem e no group_Id você bota 6. Salve e TCHARAN!
  2. Kimoszin postou uma resposta no tópico em Suporte Tibia OTServer
    Seria em um sqm exato?
  3. Quando o server vai iniciar, lá encima ele mostra a versão. E como o elfbot vai clonar itens na versão 9.6 se ele só funciona até a 8.6?
  4. Ele usa quantas vezes quiser e quando quiser, para bloquiar só uma vez, tem que editar.
  5. Adicione em cada SQM um actionid, por exemplo o 5231 pelo RME. \data\movements\movements.xml <movevent type="StepIn" actionid="5231" event="script" value="towns.lua"/> \data\movements\scripts\towns.lua local citys = { [5231] = {pos = {x=1020, y=1032, z=7}, id = 1}, } function onStepIn(cid, item, position, fromPosition) local city = citys[item.actionid] if not(city and isPlayer(cid)) then return false end return doPlayerSetTown(cid, city.id) and doTeleportThing(cid, city.pos) and doPlayerSendTextMessage(cid, 22, "You turned a resident of ".. getTownName(city.id)) end Adicione em cada SQM um actionid, por exemplo o 5233 pelo RME. \data\movements\movements.xml <movevent type="StepIn" actionid="5233" event="script" value="teleportVip.lua"/> \data\movements\scripts\teleportVip.lua local config = { toPos = {x=1018, y=1032, z=7}, } function onStepIn(cid, item, position, fromPosition) if not(vip.hasVip(cid) and isPlayer(cid)) then return doTeleportThing(cid, fromPosition) end doTeleportThing(cid, config.toPos) return doSendMagicEffect(position, CONST_ME_TELEPORT) end
  6. Kimoszin postou uma resposta no tópico em Playground (Off-topic)
    :/
  7. local config = { maxBlessing = 5, minLevel = 1, } function onUse(cid, item, fromPosition, itemEx, toPosition) if not(getPlayerLevel(cid) >= config.minLevel) then return doPlayerSendCancel(cid, "You do not have the necessary level.") and false end for i = 1, config.maxBlessing do if not(getPlayerBlessing(cid, i)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", COLOR_YELLOW) return doPlayerAddBlessing(cid, i) and false end doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return doPlayerSendCancel(cid, "You have already been blessed.") and false end end
  8. Kimoszin postou uma resposta no tópico em Playground (Off-topic)
    :/
  9. Não é possivel executar arquivos .exe nesse tipo de site.
  10. Você tem sistema vip?
  11. Nada, só pega o ultimo script que eu postei, copia denovo, eu modifiquei o post.
  12. Eu melhorei o script, tinha brisado. Agora está 100%.. por favor, copie o script novamente!
  13. local config = { removeItem = {id = {2671, 2666}, count = 1}, addItem = {id = {2401, 2045} , count = 1}, } function onUse(cid, item) for i = 1, #config.removeItem.id do if not(getPlayerItemCount(cid, config.removeItem.id[i]) > 0) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You dont have "..config.removeItem.count.." "..getItemNameById(config.removeItem.id[i])..".") end doPlayerRemoveItem(cid, config.removeItem.id[i], config.removeItem.count) end for i = 1, #config.addItem.id do doPlayerAddItem(cid, config.addItem.id[i], config.addItem.count) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You gained "..config.addItem.count.." "..getItemNameById(config.addItem.id[i])..".") end end Configurando Basta adicionar os items dentros dos { }. removeItem = {id = {2671, 2666}, count = 1}, addItem = {id = {2401, 2045} , count = 1}, Legenda Vermelho: IDs dos items que vão ser removidos ao usar a alavanca Azul: IDs dos items que vão ser adicionados.
  14. Você tem que adicionar o script em \data\actions\scripts\alavanca.lua Adicionar isso em actions.xml <action uniqueid="3331" script="alavanca.lua" /> Adicionar o uniqueid 3331 na alavanca pelo RME
  15. local config = { removeItem = {id = 2671, count = 1}, addItem = {id = 2401, count = 1}, } function onUse(cid, item) if not(doPlayerRemoveItem(cid, config.removeItem.id, config.removeItem.count)) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You dont have "..config.removeItem.count.." "..getItemNameById(config.removeItem.id)..".") end doPlayerAddItem(cid, config.addItem.id, config.addItem.count) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You gained "..config.addItem.count.." "..getItemNameById(config.addItem.id)..".") end
  16. O item que ele precisa vai ser removido?
  17. Kimoszin postou uma resposta no tópico em Playground (Off-topic)
    Vira homem primeiro.
  18. Kimoszin postou uma resposta no tópico em Playground (Off-topic)
  19. Ta, mas e os gemidos?
  20. O Vittu me disse uma vez, que só o paint basta.
  21. Kimoszin postou uma resposta no tópico em Playground (Off-topic)
    O meu skype é esse: "C:\Program Files\Skype\Phone\Skype.exe"
  22. Informações Oque é o Rent System? É um sistema feito para os jogadores poderem alugar alguns itens por uma quantia e por um certo tempo. Hmmm, legal... mas para que esse sistema seria util? Bom, para o jogador antes de comprar algum item vip, por exemplo. Ele poderia testar para ver seus hits. Ok, Mas como ele funciona? O sistema vai entregar para o player um item, depois do tempo configuravel ele irá remover, não importa onde esteja, ele vai remover. Instalação \mods\rent.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Rent System" version="1.0" author="Kimoszin" contact="tibiaking.com" enabled="yes"> <config name="rent_config"><![CDATA[ messages = { sucess = MESSAGE_INFO_DESCR, fail = MESSAGE_STATUS_WARNING, } warningStorage = 45768 items = { ["knight armor"] = {id=2476, time=1, price=3000, premium=true, cap=false}, ["demon legs"] = {id=2495, time=3, price=3000, premium=true, cap=true}, ["blue legs"] = {id=7730, time=2, price=3000, premium=true, cap=true}, ["demon shield"] = {id=2520, time=1, price=3000, premium=true, cap=true}, } function doWarningItemWasRemoved(cid) if (getCreatureStorage(cid, warningStorage) > -1) then local item = items[getItemNameById(getCreatureStorage(cid, warningStorage))] doPlayerSendTextMessage(cid, messages.sucess, "Ok, "..item.time..(item.time > 1 and " minutes" or " minute").." has passed, the rent of "..getItemNameById(item.id).." ended.") doCreatureSetStorage(cid, warningStorage, -1) end end ]]></config> <talkaction words="!rent" event="buffer"><![CDATA[ domodlib('rent_config') local item, itemuid = items[param:lower()], math.random(1000, 65535) if (param == "") then return doPlayerSendTextMessage(cid, messages.fail, "Sorry, you need to inform parameters.") end if (param == "list") then local str = "~* Rent System by Kimoszin *~\n\n" for name, iten in pairs(items) do str = str..string.sub(name, 0, 1):upper()..string.sub(name, 2):lower().." - "..iten.price.."gps \n" end str = str .."\n WWW.TIBIAKING.COM" return doPlayerPopupFYI(cid, str) end if not(item) then return doPlayerSendTextMessage(cid, messages.fail, "Sorry, but it is not possible to rent this item.") end if (item.premium and not(isPremium(cid))) then return doPlayerSendTextMessage(cid, messages.fail, "You need a premium account.") end if (item.cap and not(getPlayerFreeCap(cid) >= getItemWeightById(item.id, 1, 1))) then return doPlayerSendTextMessage(cid, messages.fail, "You don't have capacity.") end if not(doPlayerRemoveMoney(cid, item.price)) then return doPlayerSendTextMessage(cid, messages.fail, "Sorry, you do not have any money.") end doItemSetAttribute(doPlayerAddItem(cid, item.id, 1), "uid", itemuid) doPlayerSendTextMessage(cid, messages.sucess, "You rented a "..getItemNameById(item.id).." for "..item.time.. (item.time > 1 and " minutes" or " minute")..".") doCreatureSetStorage(cid, warningStorage, item.id) local player_id = getPlayerGUID(cid) addEvent(function() local player = getPlayerByGUID(player_id) if not(isPlayer(player)) then db.executeQuery("DELETE FROM `player_items` WHERE `player_items`.`player_id` = "..player_id.." AND `itemtype` = "..item.id..";") else doPlayerSendTextMessage(cid, messages.sucess, "Ok, "..item.time..(item.time > 1 and " minutes" or " minute").." has passed, the rent of "..getItemNameById(item.id).." ended.") doCreatureSetStorage(cid, warningStorage, -1) doRemoveItem(itemuid, 1) end end, item.time * 60 * 1000) ]]></talkaction> <creatureevent name="rentLogin" type="login" event="buffer"><![CDATA[ domodlib('rent_config') doWarningItemWasRemoved(cid) ]]></creatureevent> </mod> Explicações ♣ Comandos: !rent itemname: vai alugar o item !rent list: vai mostrar a lista dos item que são alugaveis. ♣ Variaveis id: id do item que vai ser alugado time: tempo do item que vai ser alugado price: preço do item que vai ser alugado premium: vai verificar se o player é premium cap: vai verificar se o player tem capacidade para alugar o item
  23. Liga pra ela e engrossa a voz, e pergunra se o beijo foi bom.

Informação Importante

Confirmação de Termo