Ir para conteúdo
  • Cadastre-se

Pedro.

Membro
  • Total de itens

    1311
  • Registro em

  • Última visita

  • Dias Ganhos

    58

Tudo que Pedro. postou

  1. local config = { -- base vocationId [1] = { -- skillId [SKILL_FIST] = { -- [{skillLevel}] = skillRate [{10, 19}] = 10, [{20, 29}] = 5 }, [SKILL_CLUB] = { [{10, 19}] = 10, [{20, 29}] = 5 }, [SKILL_SWORD] = { [{10, 19}] = 10, [{20, 29}] = 5 }, [SKILL_AXE] = { [{10, 19}] = 10, [{20, 29}] = 5 }, [SKILL_DISTANCE] = { [{10, 19}] = 10, [{20, 29}] = 5 }, [SKILL_SHIELD] = { [{10, 19}] = 10, [{20, 29}] = 5 }, [SKILL_FISHING] = { [{10, 19}] = 10, [{20, 29}] = 5 }, [SKILL_MAGLEVEL] = { [{10, 19}] = 10, [{20, 29}] = 5 }
  2. testa esse aqui, é que uso no meu servidor 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 -- Travel local function addTravelKeyword(keyword, cost, destination) local travelKeyword = keywordHandler:addKeyword({keyword}, Std
  3. [Frags: 25 - Deaths: 52]. que era pra ser Frags: 25 - Deaths: 52]. ???????????????????
  4. baixando um servidor que tenha, recomendo do maluco gitlab.com/malucooo/Otxserver-Global
  5. 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.
  6. em actions, vê o storage que ta no bau, vê no XML qual é o lua, e edita lá.
  7. 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>
  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. 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. vai em lib/100-compat.lua procura por db.executeQuery ou db.query ou então cola i compat aqui para eu ver.
  13. tem que registrar o evento registerCreatureEvent(cid, "ProtectLevel") <event type="death" name="ProtectLevel" event="script" value="levelprotection.lua"/>
  14. 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.magi
  15. 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
  16. 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 pla
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo