Ir para conteúdo

Pedro.

Membro
  • Registro em

  • Última visita

Tudo que Pedro. postou

  1. baixando um servidor que tenha, recomendo do maluco gitlab.com/malucooo/Otxserver-Global
  2. tudo que você editar nos samples quando criarem já vai ter, se tu adicionar os sample skill 40, qndo eu criar um char já vai tá igual.
  3. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    em actions, vê o storage que ta no bau, vê no XML qual é o lua, e edita lá.
  4. somente elas poderão equipar o item.
  5. não entendo de derivados, mas isso é o que? items, movements, weapons? se for movements só você setar no xml por exemplo <movevent type="DeEquip" itemid="11410" slot="feet" level="1" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="11410" slot="feet" level="1" event="function" value="onEquipItem"> <vocation id="22"/> <vocation id="23"/> <vocation id="24"/> <vocation id="25" showInDescription="0"/> <vocation id="26 showInDescription="0"/> </movevent>
  6. você setou em o string em core.lua?
  7. adicionou corretamente? nao to podendo testar o script
  8. adiciona ai string.split = function(str, sep) local res = {} for v in str:gmatch("([^" .. sep .. "]+)") do res[#res + 1] = v end return res end string.trim = function(str) return str:match'^()%s*$' and '' or str:match'^%s*(.*%S)' end string.starts = function(str, substr) return string.sub(str, 1, #substr) == substr end string.titleCase = function(str) return str:gsub("(%a)([%w_']*)", function(first, rest) return first:upper() .. rest:lower() end) end
  9. Cara, genial pra eu que estou aprendendo lua agora, muitas vezes vejo outros scripts pois não sei ainda aonde usar CID, type, target, essas coisas se um dia vocês quiserem adaptar um pra tfs 1x
  10. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    postei ai, troca esse por aquele eu já adicionei, ou então você mesmo adiciona.
  11. tenta usar outro php, qual a versão do teu site? 0.36, 2012 etc.
  12. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    troca lá 100-compat.lua
  13. cola aqui p mim data/lib/core/string.lua
  14. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    vai em lib/100-compat.lua procura por db.executeQuery ou db.query ou então cola i compat aqui para eu ver.
  15. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    posta ai o record.
  16. tem que registrar o evento registerCreatureEvent(cid, "ProtectLevel") <event type="death" name="ProtectLevel" event="script" value="levelprotection.lua"/>
  17. local config = { onlypremium = true, -- se precisa ser premium para não perder nada exp = true, -- se ao morrer o jogador irá perder exp skills = true, -- se ao morrer vai perder skills magic = true, -- se vai perder magic level loot = false, -- se ao morrer o jogador irá perder o loot level = 700000 -- até que level irá proteger o player } function onDeath(cid, corpse, deathList) if isPlayer(cid) and getPlayerLevel(cid) <= config.level then if config.onlypremium == true and isPremium(cid) then if config.loot == false then doCreatureSetDropLoot(cid, false) end if config.magic == false then doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end if config.skills == false then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) end if config.exp == false then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end end end return true end adiciona em creaturescript, e registra em login
  18. config.lua deathLostPercent = 0 ML function onDeath(cid, corpse, deathList) if isPlayer(cid) and getPlayerMagLevel(cid) >= 1 then doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end return true end
  19. 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
  20. 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.
  21. só criar um xml na pasta mods.
  22. 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 "-"
  23. 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
  24. 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" />

Informação Importante

Confirmação de Termo