Ir para conteúdo

Luzetti

Membro
  • Registro em

  • Última visita

Tudo que Luzetti postou

  1. funcionou, porem agr a parede n volta, alguem ? local uniqueids = {8049, 8050} local passwords = { ["deus do mal e do caos"] = {doorpos = {x = 16740, y = 16431, z = 7}, doorid = 5128, blackboardpos = {x = 16740, y = 16432, z = 7}, blackboardid = 1818, uniqueid = 8049, doorclosetime = 2}, ["TK"] = {doorpos = {x = 1000, y = 1000, z = 7}, doorid = 1213, blackboardpos = {x = 1000, y = 1000, z = 7}, blackboardid = 1811, uniqueid = 8050, doorclosetime = 10} } function onTextEdit(cid, item, newText) local x = passwords[newText] local function onCloseDoor() if(getTileItemById(x.doorpos,x.doorid+1).uid) > 0 then doTransformItem(getTileItemById(x.doorpos,x.doorid+1).uid, x.doorid) doSendMagicEffect(x.doorpos, CONST_ME_MAGIC_RED) end end for _, check in pairs(uniqueids) do if item.uid == check then if x and item.uid == x.uniqueid then if(getTileItemById(x.doorpos,x.doorid).uid) > 0 then doTransformItem(getTileItemById(x.doorpos,x.doorid).uid, x.doorid + 1) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Sua Senha "'..newText..'" esta correta, voce pode entrar.') addEvent(onCloseDoor,x.doorclosetime*1000) doRemoveItem(item.uid, 1) local blackboard = doCreateItem(x.blackboardid,1,x.blackboardpos) doItemSetAttribute(blackboard, "uid", x.uniqueid) else doRemoveItem(item.uid, 1) local blackboard = doCreateItem(x.blackboardid,1,x.blackboardpos) doItemSetAttribute(blackboard, "uid", x.uniqueid) doPlayerSendCancel(cid, 'A porta ja esta aberta, feche-a ou espera ela se fechar.') end else doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, 'Sua senha "'..newText..'" esta incorreta.') end end end return true end
  2. blza o erro paro, mas nao nenhum erro na interface, e alem disso o sistema nao funciona. oq seria: eu escrever no quadro uma senha, e o quadro sumir e abrir a porta, mas isso nao ocorre.
  3. Galera tenho esse sistema: local uniqueids = {8049, 8050} local passwords = { ["deus do mal e do caos"] = {doorpos = {x = 16740, y = 16431, z = 7}, doorid = 5128, blackboardpos = {x = 16740, y = 16432, z = 7}, blackboardid = 1818, uniqueid = 8049, doorclosetime = 10}, ["TK"] = {doorpos = {x = 1000, y = 1000, z = 7}, doorid = 1213, blackboardpos = {x = 1000, y = 1000, z = 7}, blackboardid = 1811, uniqueid = 8050, doorclosetime = 10} } function onTextEdit(cid, item, newText) local x = passwords[newText] local function onCloseDoor() if(getTileItemById(x.doorpos,x.doorid+1).uid) > 0 then doTransformItem(getTileItemById(x.doorpos,x.doorid+1).uid, x.doorid) doSendMagicEffect(x.doorpos, CONST_ME_MAGIC_RED) end end for _, check in pairs(uniqueids) do if item.uid == check then if x and item.uid == x.uniqueid then if(getTileItemById(x.doorpos,x.doorid).uid) > 0 then doTransformItem(getTileItemById(x.doorpos,x.doorid).uid, x.doorid + 1) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Sua Senha "'..newText..'" esta correta, voce pode entrar.') addEvent(onCloseDoor,x.doorclosetime*1000) doRemoveItem(item.uid, 1) local blackboard = doCreateItem(x.blackboardid,1,x.blackboardpos) doItemSetAttribute(blackboard, "uid", x.uniqueid) else doRemoveItem(item.uid, 1) local blackboard = doCreateItem(x.blackboardid,1,x.blackboardpos) doItemSetAttribute(blackboard, "uid", x.uniqueid) doPlayerSendCancel(cid, 'A porta ja esta aberta, feche-a ou espera ela se fechar.') end else doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, 'Sua senha "'..newText..'" esta incorreta.') end end end return true end <event type="text" name="Senha" event="script" value="senhaporta.lua"/> login.lua local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) accountManager = "Account Manager" managerCounter = 0 for i, player in ipairs(getOnlinePlayers()) do if accountManager:lower() == player:lower() then managerCounter = managerCounter + 1 end end if managerCounter >= 3 then return false end local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "A ultima vez que voce fez login foi em " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "demonOakLogout") registerCreatureEvent(cid, "demonOakDeath") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "VipReceive") registerCreatureEvent(cid, "PlayerKill") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "onPrepareDeath2") registerCreatureEvent(cid, "KillingInTheNameOf") registerCreatureEvent(cid, "exp_pmob") registerCreatureEvent(cid, "forever amulet") if (InitArenaScript ~= 0) then InitArenaScript = 1 for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) end setPlayerStorageValue(cid, 42350, 0) setPlayerStorageValue(cid, 42352, 0) local txt = [[ Pegue seu item inicial no andar de cima. PS Para saber sobre os aols leia o Log no client Att: Kevintwo ]] doPlayerPopupFYI(cid, txt) registerCreatureEvent(cid, "Senha") return true end ja tentei mover a tag de senha mas da esse erro [27/12/2016 20:15:19] [Error - CreatureEvent::configureEvent] No valid type for creature event.text [27/12/2016 20:15:19] [Warning - BaseEvents::loadFromXml] Cannot configure an event se puderem me ajudar.
  4. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    resolvido pode senar
  5. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    Galera, estava eu pensando em o que fazer pra hje, bom eu pensei em fazer 3 npc's, um tile e um comando...mas nao deu muito certo, se puderem me dar um help...dou rep+...segue la: NPC [ADM Kevintwo] NPC [GM] Kesse NPC [GM] ? isso mesmo o npc chama ? bom o player iria falar com o 1 npc, ele contaria a historia de um gm que foi banido ao exilio por motivo de fraude, e ele iria falar que estava desconfiado de um gm antigo do server, e iria falar se voce poderia o ajudar, vc falaria yes ele te daria um item e te levaria ate o 2 npc. O item seria retirado no tile deste lugar. 2 npc, ele te falaria que foi banido por injustiça que o verdadeiro culpado é o [GM] ?, e falaria que vc poderia provar ao kevintwo que ele era inocente, vc falaria ajudar e ele te levaria ao 3 npc. 3 npc, ele falaria a vdde e que se sente culpado pelo exilio do 2 npc, mas que queria salvar ele, ele te pediria ajuda e vc responderia que sim, ele te daria um item e te levava ao 1 npc, ai ele falaria obrigado por ter descoberto a vdde, e te daria 1 item especial. isso seria os npcs tile: para remover o 1 item do 1 npc: comando: vc escrver !cityVip: ele mostrar uma janela com nome da cidade e te levar até lá. Bom é isso galera, espero que e ajudem, obrigado a todos. Deixarei os sistemas a disponibilidade de quem quiser usar ( se houver respostas claro) kkkkkk bye Alguem?
  6. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    Galera, eu tava vendo uns fóruns ai e tipo, muitos a maior parte é poketibia, e o que me lembrei em poketibia tem a pokedex, entao fiquei pensando...porque nao criar um item de informação para tibia...seria assim mais ou menos. Acho que seria interessante e "inovador"
  7. passa seu face? pra vc me ajudar? quero mostra pra vc o bug...me ajuda ai
  8. testei no meu sv, ele nao da erro nada, mas no ganha a exp bonus
  9. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    sendo assim n adiantaria, vc ja viu sistema autoloot por talactions? olha ai
  10. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    e saberia fazer em C++? tem mais alguma solução?
  11. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    entao vc acha q n vai dar certo?
  12. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    até amanha cedo n consegue?
  13. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    exato 10 vzs por dia, tipo assim, imagina vc ta em uma quest que precisa x item, e vc esqueceu no dp, vc usaria o !duat pra pegar ele e colocar ele no duat para ser removido, e ser posto na bag. TUDO QUE TIVER NO DP PODE SER COLOCADO NO DUAT, E TUDO QUE TIVER NA BAG TBM, LRMBRANDO LIMITE 5.
  14. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    level n, exaust n,a max 10 vzs por dia, quantidade de 100 por item.
  15. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    vc conseguiria fazer as talkactions pra mim ( o sistema)?
  16. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    entendeu mano? entao a versao pelo que consta no exe é: Imagem no link...OBS versao File version: 1.0.2 Product version: 0.1.7 Vc acha que seria bacana fazer com janela ou só o comando ficaria bom? Aceito opiniões.
  17. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    Galera bom dia, eu tentei fazer muito esse sistema mas não consegui, não era minha intenção pedir pq seria uma coisa nova, bom vamos lá. Imagina voce ta no meio de uma quest e acaba suas potions, tenso né? Bom vc falaria !duat e iria aparecer tudo que voce tem no dp E COM VC (VC TERIA OS ITENS DO DP PARA COLOCAR NO DUAT, E OS ITENS QUE VC TEM COM VC, CASO ESTEJA RED SKULL NAO PERDE POS ESTARA NO DUAT), e de la conseguiria retirar do DP para o "duat". como funcionaria: !duat add, adiciona o item (limite 5) !duat aparece tudo o que voce tem pra tirar !duat remove great mana potion Depois de retirada ela sai do dp e vai com vc, (se tinha 5 fica 4 e assim sucessivamente) É um sistema diferente, eu tentei fazer, mas me compliquei e apaguei tudo, quem me ajudar, darei 3 rep. OBG
  18. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    pelo que eu vi...quando ta 1=1,2,3,4,5,6,7,8 quando ta 2=9,10,11... as vocs ta 5 e 6
  19. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    cara vc n pode me ajudar? vc n pode me ajudar?
  20. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    Galera, desculpa eu de novo, bom eu tenho um npc Promotion, mas ele n reconhece o id da vocation. Vocations.xml <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Sadie Kane" description="a sadie kane" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.1" attackspeed="700" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Carter Kane" description="a carter kane" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.1" attackspeed="900" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Master Maga Sadie Kane" description="Master Maga Sadie Kane" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="10" gainmanaticks="1" gainmanaamount="40" manamultiplier="1.4" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.3" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Master Mago Carter Kane" description="Master Mago Carter Kane" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="35" manamultiplier="3.0" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="9" name="Semideus Sadie Kane" description="Semideus Sadie Kane" needpremium="1" gaincap="35" gainhp="30" gainmana="15" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="35" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30"> <formula meleeDamage="2.4" distDamage="1.0" wandDamage="3.0" magDamage="1.0" magHealingDamage="1.0" defense="3.0" magDefense="1.0" armor="4.0"/> <skill fist="5.1" club="3.1" sword="3.1" axe="3.1" distance="4.4" shielding="4.1" fishing="2.1" experience="5.0"/> </vocation> <vocation id="10" name="Semideus Carter Kane" description="Semideus Carter Kane" needpremium="1" gaincap="35" gainhp="30" gainmana="15" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="35" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <formula meleeDamage="2.4" distDamage="1.0" wandDamage="3.0" magDamage="1.0" magHealingDamage="1.0" defense="3.0" magDefense="1.0" armor="4.0"/> <skill fist="5.1" club="3.1" sword="3.1" axe="3.1" distance="4.4" shielding="4.1" fishing="2.1" experience="5.0"/> </vocation> </vocations> NPC local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 2, text = 'Congratulations! You are now promoted.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) --[[ local node2 = keywordHandler:addKeyword({'high'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can high promote you for 200000 gold coins. Do you want me to high promote you?'}) node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 120, promotion = 2, text = 'Congratulations! You are now high promoted.'}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) ]]-- npcHandler:addModule(FocusModule:new()) Ja tentei mudar tudo no NPC, com promotion 2 ele da isso: 16:59 You see yourself. You are. Eu ja tenho um NPC promotion ele funciona normal, ai quando chego nesse ele fala que ja to promote. Por favor novamente, me ajudem se puderem.
  21. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    Galera resolvi o bug. Vá em: creaturescripts>scripts>e crie um arquivo chamado preparedeath, dentro coloque. function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then if (getPlayerSlotItem(cid, 2).itemid == 2173) then doPlayerRemoveItem(cid, 2173, 1) doCreatureSetDropLoot(cid, false) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return TRUE end end return TRUE end em creaturescrpts.xml coloque: <event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/> ainda em creaturescript vá ate scripts>login e adicione essa tag la registerCreatureEvent(cid, "onPrepareDeath") E assim... se quiserem fazer mais de 1 aol, refaça tudo o que ta acima, mudando os nomes. Ex: em login registerCreatureEvent(cid, "onPrepareDeath2") (poe o 2 na frente) na tag xml: <event type="preparedeath" name="onPrepareDeath2" event="script" value="preparedeath2.lua"/> (2 no nome do arquivo e onPrepareDeath) e o nome do arquivo ponha 2 tbm, e o ID do item tipo amulet of loss é 2173> então ponha o ID do novo. Foi a solução que encontrei. obg a todos que tentaram me ajudar
  22. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    ainda perde a bag como arruma isso?
  23. Luzetti postou uma resposta no tópico em Suporte Tibia OTServer
    ta assim: <item id="2173" article="an" name="amulet of loss"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="1" /> <attribute key="preventDrop" value="1" /> </item> testei o seu e da a mesma coisa

Informação Importante

Confirmação de Termo