Ir para conteúdo

Kemmlly

Membro
  • Registro em

  • Última visita

Tudo que Kemmlly postou

  1. db.executeQuery("UPDATE `player_skills` SET `value` = 10 WHERE `skillid` = 0 AND `player_id` = " ..getPlayerGUID(cid).. ";")
  2. Kemmlly respondeu ao post em um tópico de Pirlo em Suporte Tibia OTServer
    Aonde você colocou essa parte que te mandei? Em que parte do script? Manda ele aí pra mim
  3. Mande seu script QUERO.LUA para eu dar uma olhada.
  4. Se for só do Rotworm, manda o xml dele pra ver, e as tags do wand em itens e weapons
  5. Seu banco de dados é MYSQL pelo PHPMYADMIN ou S3DB pelo sqllite?
  6. Kemmlly respondeu ao post em um tópico de Pirlo em Suporte Tibia OTServer
    Troque isso: doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) por isso: local tab = { pos = {x = 1017, y = 1020, z = 7} -- posição x, y, z do seu templo doTeleportThing(cid, tab.pos) em data/lib/battlelib.lua
  7. actions/scripts/ crie um tpespelho.lua function onUse(cid, item, frompos, topos) local tab = { pos = {x = 1017, y = 1020, z = 7} -- posição x, y, z do local a teleportar o player } if isPlayer(cid) then doTeleportThing(cid, tab.pos) doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) doCreatureSay(cid, "Voce foi teleportado!", TALKTYPE_ORANGE_1) end end actions.xml <action actionid="ACTION QUE VOCE ESCOLHER" event="script" value="tpespelho.lua"/> E não esqueça de adicionar a ACTIONID que você escolher no actions.xml no espelho que você quer.
  8. local tps = { pos = {x=1017, y=1020, z=7}, -- Local onde vai aparecer o TP toPos = {x=1019, y=1022, z=7}, -- Local para onde o TP leva } local function removeTp(tps) local t = getTileItemById(tps.pos, 5023).uid return t > 0 and doRemoveItem(t) and doSendMagicEffect(tps.pos, CONST_ME_POFF) end function onStepIn(cid, item, frompos, item2, topos) if getTileItemById(tps.pos, 5023).uid < 1 then doCreateTeleport(5023, tps.toPos, tps.pos) doCreatureSay(cid, "O teleport foi criado!", TALKTYPE_ORANGE_1) addEvent(removeTp, 10*1000, tps) else doCreatureSay(cid, "Ja existe um teleporte!", TALKTYPE_ORANGE_1) end return true end
  9. Como assim?
  10. Kemmlly respondeu ao post em um tópico de Magalhaes92 em Suporte Tibia OTServer
    Sua vip é Premium account, vip time ou stotage ? E seu servidor é 0.4 ou 1.x?
  11. Verifica no movements.xml se os itens estão declarados lá, se n tiver n funciona os atributos, e esse shield tá adicionando skill sword, mas n ta absorvendo nada, tem q adicionar outra tag para absorver.
  12. Posta o script pra eu dar uma olhada
  13. Na verdade aí ta da seguinte forme; POSITION é o lugar que ele vai caso TENHA os storages, e POSITION2 é para onde ele será kikado caso não tenha os storages, não era isso que queria?
  14. Tem que adicionar msg3 , msg4, e assim por diante, e a condição é : if getPlayerLevel(cid) == tab.msg3[2] and getPlayerStorageValue(cid, tab.msg3[3]) < 1 then doPlayerPopupFYI(cid, ""..tab.msg3[1].."") doSendMagicEffect(getCreaturePosition(cid), 10) setPlayerStorageValue(cid, tab.msg3[3], 1) end if getPlayerLevel(cid) == tab.msg4[2] and getPlayerStorageValue(cid, tab.msg4[3]) < 1 then doPlayerPopupFYI(cid, ""..tab.msg4[1].."") doSendMagicEffect(getCreaturePosition(cid), 10) setPlayerStorageValue(cid, tab.msg4[3], 1) end
  15. Da para descobrir pelo seu ACTIONS.XML e CREATURESCRIPTS.XML, mande eles pra eu ver...
  16. Não sei se é possível adicionar um looktype aos outfits por script, acredito que seja por sprite, mas, um item que mude o outfit para o que você quer toda vez q ele der use é fácil criar, mata o boss e ganha o item, serve?
  17. creaturescripts/scripts function onAdvance(cid, skill, oldlevel, newlevel) local tab = { msg = {"Mensagem aqui", 50, 6000}, -- Mensagem, level, storage msg1 = {"Mensagem aqui", 100, 6001}, msg2 = {"Mensagem aqui", 150, 6002} } if getPlayerLevel(cid) == tab.msg[2] and getPlayerStorageValue(cid, tab.msg[3]) < 1 then doPlayerPopupFYI(cid, ""..tab.msg[1].."") doSendMagicEffect(getCreaturePosition(cid), 10) setPlayerStorageValue(cid, tab.msg[3], 1) end if getPlayerLevel(cid) == tab.msg1[2] and getPlayerStorageValue(cid, tab.msg1[3]) < 1 then doPlayerPopupFYI(cid, ""..tab.msg1[1].."") doSendMagicEffect(getCreaturePosition(cid), 10) setPlayerStorageValue(cid, tab.msg1[3], 1) end if getPlayerLevel(cid) == tab.msg2[2] and getPlayerStorageValue(cid, tab.msg2[3]) < 1 then doPlayerPopupFYI(cid, ""..tab.msg2[1].."") doSendMagicEffect(getCreaturePosition(cid), 10) setPlayerStorageValue(cid, tab.msg2[3], 1) end return true end creaturescripts.xml <event type="advance" name="msglevel" event="script" value="msglevel.lua"/> login.lua registerCreatureEvent(cid, "msglevel")
  18. Tem um ( sobrando aí, tira ele, deixa: if getPlayerStorageValue(cid, 10274, 10275, 10276, 10277, 10278, 10279, 10280) == 1 then Se não der, use o and: if getPlayerStorageValue(cid, 10274) == 1 and getPlayerStorageValue(cid, 10275) == 1 and getPlayerStorageValue(cid, 10276) == 1 getPlayerStorageValue(cid, 10277) == 1 getPlayerStorageValue(cid, 10278) == 1 getPlayerStorageValue(cid, 10279) == 1 getPlayerStorageValue(cid, 10280) == 1 then O primeiro script é .LUA, você coloca em /data/npc/scripts/ o segundo é XML, você coloca em /data/npc/, copia e cola um arquivo qualquer dentro dessas pastas, renomeia e cola o conteúdo postado aqui no tópico. Depois disso vá no RME e IMPORTAR NPC, aí procura o arquivo XML dele e importa, aperta F5 e procura ele na lista de NPC e coloca no mapa. em creaturescripts/scripts crie um arquivo lua vipeffect.lua e cole isso: local tempo = 15 --tempo em segundos function onLogin(cid) if isPremium(cid) then VipEffect(cid) else return true end return true end function VipEffect(cid) if isPlayer(cid) then doSendAnimatedText(getCreaturePosition(cid), "[VIP]", TEXTCOLOR_LIGHTBLUE) doSendMagicEffect(getCreaturePosition(cid), 30) addEvent(VipEffect, tempo*1000, cid) end return true end depois em creaturescripts.xml cole essa tag: <event type="login" name="VipEffect" event="script" value="vipeffect.lua"/> depois em login.lua que fica dentro de creaturescripts/scripts adicione essa tag antes do ultimo return true: registerCreatureEvent(cid, "VipEffect")
  19. Um piso que vira outro piso? Ou aparece um item em cima dele?
  20. Premium acount msm ou algum tipo de VIP, tipo vip por storage ou time?
  21. local tab = { level = 100, pos = {x = 1071, y = 1135, z = 10}, storage = 6666 -- Storage } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if (not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if (msgcontains(msg, 'challenge')) then talkState[talkUser] = 1 selfSay('You are sure you want to go? You can not return.', cid) elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if (getPlayerLevel(cid) >= tab.level) and getPlayerStorageValue(cid, tab.storage) < 1 then talkState[talkUser] = 0 doTeleportThing(cid, tab.pos) setPlayerStorageValue(cid, tab.storage, 1) doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) elseif getPlayerStorageValue(cid, tab.storage) == 1 then selfSay('Voce ja matou o BOSS!', cid) elseif (getPlayerLevel(cid) < tab.level) then talkState[talkUser] = 0 selfSay('I can only challenge players with level '..tab.level..' or more.', cid) end elseif (msgcontains(msg, 'no') and talkState[talkUser] == 1) then talkState[talkUser] = 0 selfSay('Come back when you are ready learner.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Subir efeito no player ou [VIP] atrás do nome do jogador?
  22. Kemmlly respondeu ao post em um tópico de Mathwsz em Formação de Equipe
    @Luccaw, realmente são poucos os que ajudam, porque para ajudar tem que gostar de programar, caso contrario irão cobrar por isso. Se eu pudesse ajudaria a todos, mas tenho pouco tempo devido ao trabalho. o @Vodkart e o @xWhiteWolf sem duvida são os melhores do TK, aprendi grande parte do que sei fuçando os scripts postados por eles. @Mathwsz Pra você ter sucesso nessa sua ideia, tem que fazer igual eu, faça um mapa do zero, começando pelo templo, daí as ideias vão surgindo. Há dois meses atrás comecei assim, fui ligando um coisa com a outra e já tenho um server bem extenso com task, reputação, quests unicas, mapa próprio, reset, npc market, site com pagseguro automático, tudo adaptado. É um desafio, você trava muitas vezes, mas tudo que você precisar, estarei a disposição, tanto quanto os artigos do TK e o resto da internet que tem TUDO que você precisa ou pelo menos um caminho para você encontrar. Abraços.
  23. Se o script estiver funcionando corretamente, troque o isMonster por isPlayer.
  24. Como assim? Itens de onde? Dos players? N entendi mt bem
  25. Coloca pra o spell da uma stotage quando usar ele, e usa esse stotage pra abrir a porta, criando um script e colando a uniqueid no rme

Informação Importante

Confirmação de Termo