Ir para conteúdo

Pedro.

Membro
  • Registro em

  • Última visita

Tudo que Pedro. postou

  1. para alterar a mana de usar paralize vá até em spells.xml altera essa linha aqui <rune name="Paralyze" id="2278" allowfaruse="1" charges="1" lvl="54" maglv="18" exhaustion="2000" mana="1400" needtarget="1" blocktype="solid" event="script" value="support/paralyze rune.lua"> agora pra abrir um chat-channel toda vez que o player loga, você tem que adicionar em creaturescript/scripts/login.lua if table.contains({"Rookgaard", "Dawnport"}, player:getTown():getName())then --player:openChannel(7) -- help channel player:openChannel(3) -- world chat player:openChannel(6) -- advertsing rook main else --player:openChannel(7) -- help channel player:openChannel(3) -- world chat player:openChannel(5) -- advertsing main end você altera o numero do channel entre (), se tiver duvidas só olhar em chatchannel. n
  2. Até entendo tua boa vontade de querer ajudar, PORÈM o erro que voê se referiu, é quando aparece "Duplicated ActionID bla bla bla" e o erro dele estava especificando uma { faltando inclusive a linha.
  3. só criar um xml na pasta mods.
  4. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    saquei, provavelmente não é dessa script, no teu action antes de por já acontecia isso? as vezes é algum script antigo que ainda tá na tag com "event" ou então com "-"
  5. local cfg = { kina= {2421, idsword}, pala = 2421, sorc = 2421, drui = 2421, } function onUse(cid, item) if getPlayerStorageValue(cid, 38493) ~= 1 then if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then doPlayerAddItem(cid, cfg.kina[1], 1) doPlayerAddItem(cid, cfg.kina[2], 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) elseif getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then doPlayerAddItem(cid, cfg.sorc, 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then doPlayerAddItem(cid, cfg.drui, 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then doPlayerAddItem(cid, cfg.pala, 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) end else doPlayerSendCancel(cid, "It's empty.") end return true end
  6. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    tenta assim <action actionid="22221" script="bauquestion.lua" /> <action actionid="22222" script="alavancaquestion.lua" />
  7. otx usa a função, então seu servidor tá faltando coisa, ou desatualizado, vê se nas sources tem a função, se tiver só adicionar nos mosntros ;p https://gitlab.com/malucooo/Otxserver-Global/blob/master/data/monster/Amazons/amazon.xml
  8. não dá erro no distro? estranho seu char tem vocação? ou é no-vocation?
  9. INSERT INTO `players` (`id`, `name`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `lastlogout`, `blessings`, `onlinetime`, `deletion`, `balance`, `offlinetraining_time`, `offlinetraining_skill`, `stamina`, `skill_fist`, `skill_fist_tries`, `skill_club`, `skill_club_tries`, `skill_sword`, `skill_sword_tries`, `skill_axe`, `skill_axe_tries`, `skill_dist`, `skill_dist_tries`, `skill_shielding`, `skill_shielding_tries`, `skill_fishing`, `skill_fishing_tries`, `deleted`, `description`, `comment`, `create_ip`, `create_date`, `hide_char`, `cast`, `castViewers`, `castDescription`) VALUES (525, 'Rook Sample', 1, 450, 8, 0, 185, 185, 4200, 44, 98, 15, 76, 136, 0, 0, 35, 35, 0, 100, 2, 0, 0, 0, '', 420, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 43200, -1, 2520, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, '', '', 0, 1429651876, 0, 0, 0, 0), (526, 'Knight Sample', 1, 450, 8, 4, 185, 185, 4200, 44, 98, 15, 76, 136, 0, 0, 35, 35, 0, 100, 2, 0, 0, 0, '', 420, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 43200, -1, 2520, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, '', '', 0, 1429651876, 0, 0, 0, 0), (527, 'Paladin Sample', 1, 450, 8, 3, 185, 185, 4200, 44, 98, 15, 76, 136, 0, 0, 35, 35, 0, 100, 2, 0, 0, 0, '', 420, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 43200, -1, 2520, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, '', '', 0, 1429651876, 0, 0, 0, 0), (528, 'Druid Sample', 1, 450, 8, 2, 185, 185, 4200, 44, 98, 15, 76, 136, 0, 0, 35, 35, 0, 100, 2, 0, 0, 0, '', 420, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 43200, -1, 2520, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, '', '', 0, 1429651876, 0, 0, 0, 0), (529, 'Sorcerer Sample', 1, 450, 8, 1, 185, 185, 4200, 44, 98, 15, 76, 136, 0, 0, 35, 35, 0, 100, 2, 0, 0, 0, '', 420, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 43200, -1, 2520, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, '', '', 0, 1429651876, 0, 0, 0, 0); tenta executar na database, se der erro é porque tem valores diferentes da sua database, dai tu vai ter que criar 1 por 1, e editar hp/mana/exp/level/vocation etc.
  10. eles n existem? se n tiver, vai ter que criar
  11. vai na database vê se os samples estão lá, verifica o worldID, town, as cordenadas, muda a senha deles, tenta entrar com eles in-game, faz esses testes. Vai eliminando as coisas. Sem ver, é dificil.
  12. na pasta que tem o ot, tem uma pasta chamada MODS, cria um xml lá firstitems.xml por exemplo, e adiciona <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" enabled="yes"> <description><![CDATA[ Custom Fist Items ]]></description> <config name="firstitems_config"><![CDATA[ config = { storage = 40046, items = {} } ]]></config> <event type="login" name="FirstItems" event="buffer"><![CDATA[ domodlib('firstitems_config') if(getPlayerStorageValue(cid, config.storage) > 0) then return end for _, id in ipairs(config.items) do doPlayerAddItem(cid, id, 1) end -- All Vocation -- BackPack -- Rope -- in Backpack doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 5710, 1) -- Brass Armor -- Body doPlayerAddItem(cid, 2465, 1) -- Steel Helmet -- Head doPlayerAddItem(cid, 2457, 1) -- Bonelord Shield -- Right Hand doPlayerAddItem(cid, 2518, 1) -- Sorcerer (Weapon) -- Hand if isSorcerer(cid) then doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." seje muito bem vindo. welcome..") -- Druid (Weapon) -- Hand elseif isDruid(cid) then doPlayerAddItem(cid, 2182, 1) -- Snake Bite Rod -- Left Hand doPlayerAddItem(cid, 2167, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." seje muito bem vindo. welcome..") -- Paladin - Warrior (Weapon) -- Hand elseif isPaladin(cid) then doPlayerAddItem(cid, 2389, 20) -- Spear -- Left Hand doPlayerAddItem(cid, 2167, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." seje muito bem vindo. welcome..") -- Knight (Weapon) -- Hand elseif isKnight(cid) then doPlayerAddItem(cid, 8602, 1) -- Jagged Sword -- Left Hand doPlayerAddItem(cid, 2168, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." seje muito bem vindo. welcome..") end -- All Vocation -- Brass Legs -- in Feet doPlayerAddItem(cid, 2478, 1) -- Leather Boots -- in Boots doPlayerAddItem(cid, 2643, 1) -- Scarf -- in Necklacke doPlayerAddItem(cid, 2661, 1) -- Platinum Coin -- in Arrows doPlayerAddItem(cid, 2152, 1) -- Health Potion -- in Backpack doPlayerAddItem(cid, 7618, 10) -- Shovel -- in Backpack doPlayerAddItem(cid, 2554, 1) -- Mana Potion -- in Backpack doPlayerAddItem(cid, 7620, 15) -- ITENS -- in Backpack doAddContainerItem(doPlayerAddItem(cid, 1998, 1), 5080, 1) doAddContainerItem(doPlayerAddItem(cid, 1998, 1), 9019, 1) doAddContainerItem(doPlayerAddItem(cid, 1998, 1), 8188, 1) doAddContainerItem(doPlayerAddItem(cid, 1998, 1), 2152, 10) -- Knight (Weapon) -- in Backpack if isKnight(cid) then doPlayerAddItem(cid, 2207, 1) -- sword ring end setPlayerStorageValue(cid, config.storage, 1) ]]></event> </mod> em creaturecript tu remove esse que tá ai, só o XML, pra gente testar.
  13. tu consegue logar os samples normais? se tu entrar na acc 1/ que eles estão.
  14. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    qual a versão do teu tfs?
  15. estranho, vê se no xml do monstro tá com a tag "canwalkonenergy"
  16. qual id da bp que ta vindo?
  17. você é louco? lol
  18. em config.php vê se tá dessa maneira. # Create Character Options $config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
  19. firstitems.lua em creaturescript.
  20. sim, hahaha usa esse pra testa https://github.com/Fir3element/3777
  21. depende qual criptografia você tá usando plain ou sha1 é aqui que se altera, config.lua passwordType = "sha1"
  22. Confere o ID do outfits xml vê se tá correto o outfit. Confere o Sample se tá setado com o outfit correto. Se for Znote ou algum AAC, da uma olhada se tem algo setando o outfit, cor essas coisas.
  23. Pedro. postou uma resposta no tópico em Suporte OTServer Derivados
    Cara, derivado são muito trabalhosos, de naruto então. 1º São muitos jutsus, muitas sprites, tem clientes que são limitados, você tem que entender, ajeitar muitas spells, corrigir efeitos, saber codar, porque na maioria das vezes você vai ter que fazer magias novas. 2º Você não vai conseguir nada de mão beijada, sai baixando as bases que tem, vê o que cada uma tem de melhor, procura um cliente bom, onde você possa usufluir melhor das sprites. Confesso que eu desisti, um amigo começou um projeto de nto, e é muito complicado.
  24. da um ls na pasta aonde ta o restart, vê se tá verde, se não, dê um chmod. dentro do script tem que tá o nome correto do teu TFS. SE ainda não for, limpe os cache. sed -i -e 's/\r$//' restarter.sh

Informação Importante

Confirmação de Termo