Ir para conteúdo
  • Cadastre-se

Noob II

Membro
  • Total de itens

    254
  • Registro em

  • Última visita

  • Dias Ganhos

    2

Tudo que Noob II postou

  1. Poste aqui o dropstone.lua e se necessario o some functions tbm
  2. Fiquei sem internet por 1 dia e não deu tempo ajudar, mas vi que o membro acima já lhe passou um script. Mas se quiser usar o seu próprio script olha ai, testei e tá funcionando normal function onSay(cid, words, param) if getPlayerTown(cid) == 24 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You cannot withdraw money while being in Rookgaard.") return true end if isPlayer(cid) == TRUE and param ~= nil then if getTilePzInfo(getPlayerPosition(cid)) == TRUE then if tonumber(param) ~= nil then par
  3. function onUse(cid, item, item2, frompos, topos, pos) local config = { ["Magic Plate Armor"] = {t1=2177,t2=2178,t3=2195}, } local r1 = {x = 189, y = 131, z = 7, stackpos= 1} local r2 = {x = 191, y = 131, z = 7, stackpos= 2} local r3 = {x = 190, y = 131, z = 7} local q1 = getThingfromPos(r1) local q2 = getThingfromPos(r2) for i, x in pairs(config) do if (q1.itemid == x.t1 and q2.itemid == x.t2) or (q1.itemid == x.t2 and q2.itemid == x.t1) then doRemoveItem(q1.uid, 1) doRemoveItem(q2.uid, 1) addEvent(doCreateItem, 1000, x.t3, 1, r3) doSendMagicEffect(r3, 47) addEvent(doSendMagicEffect, 900,
  4. Faz assim use os scripts originais do seu servidor e adicione o system de loot que uso... Vá na pasta > Data > Creaturescripts > Scripts Crie o arquivo levelprotection.lua e adicione dentro: function onDeath(cid, corpse, deathList) local config = { skills = true, -- se ao morrer vai perder skills magic = false, -- se vai perder magic level level = 1000 -- até que level irá proteger o player } if isPlayer(cid) and getPlayerLevel(cid) <= config.level then doCreatureSetDropLoot(cid, true) if config.magic == false then doPlayerSetLossPercent(cid, false) end if confi
  5. Tenta function onSay(cid, words, param) if getPlayerTown(cid) == 24 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You cannot withdraw money being in Rookgaard.") return end if isPlayer(cid) == TRUE and param ~= "" then if getTilePzInfo(getPlayerPosition(cid)) == TRUE then if getPlayerBalance(cid) == param then doPlayerSetBalance(cid, getPlayerBalance(cid) - param) doPlayerAddMoney(cid, param) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Here yo
  6. Ultima vez: local config = { deathListEnabled = getBooleanFromString(getConfigInfo('deathListEnabled')), sqlType = getConfigInfo('sqlType'), maxDeathRecords = getConfigInfo('maxDeathRecords') } config.sqlType = config.sqlType == "sqlite" and DATABASE_ENGINE_SQLITE or DATABASE_ENGINE_MYSQL function onDeath(cid, corpse, lastHitKiller, mostDamageKiller) if(config.deathListEnabled ~= TRUE) then return end local hitKillerName = "field item" local damageKillerName = "" if(lastHitKiller ~= FALSE) then if(isPlayer(lastHitKiller) == TRU
  7. PlayerDeath local config = { deathListEnabled = getBooleanFromString(getConfigInfo('deathListEnabled')), sqlType = getConfigInfo('sqlType'), maxDeathRecords = getConfigInfo('maxDeathRecords') } config.sqlType = config.sqlType == "sqlite" and DATABASE_ENGINE_SQLITE or DATABASE_ENGINE_MYSQL function onDeath(cid, corpse, lastHitKiller, mostDamageKiller) if(config.deathListEnabled ~= TRUE) then return end local hitKillerName = "field item" local damageKillerName = "" if(lastHitKiller ~= FALSE) then if(isPlayer(lastHitKiller) == TRUE) then
  8. Mudando o stackpos para 1 dar erro nos dois scripts? o que eu passei e o que já tinha?
  9. Tá usando qual PlayerDeath? O que já tinha no servidor ou oque o Joaovettor postou? Troca o deathBroadcast por esse: local config = { affected = 10, -- how many players (deathAssits) from table deathList should this script be executed for? killStorageValue = 3943, deathStorageValue = 3944, -- commands for the texts (those inside of ||, example: |KILLS| to show skills): KILLS, KILLERNAME, TARGETNAME rewardItem = { use = true, itemid = 5953, minLevel = false, -- false if you don't want any level req minLevelDiff = false, -- false if you don't want any level diff req (negativ
  10. Esse script que alterei é o deathBroadcast.lua e não o playerdeath.lua, você substituiu pelo playerdeath? apenas fiz oque você pediu ao cara acima >
  11. Se quiser pode adicionar, mas olha ai o seu script alterado com loot
  12. Eu uso esse no meu servidor (mais fácil de configurar) function onDeath(cid, corpse, deathList) local config = { onlypremium = false, -- se precisa ser premium para não perder nada skills = true, -- se ao morrer vai perder skills magic = false, -- se vai perder magic level loot = true, -- se ao morrer o jogador irá perder o loot level = 1000 -- até que level irá proteger o player } if isPlayer(cid) and getPlayerLevel(cid) <= config.level then if config.onlypremium == true and not isPremium(cid) then return TRUE end if config.loot == false then doCreatureSetDropLoot(cid, false)
  13. local config = { ["Magic Plate Armor"] = {t1 = 2177, t2 = 2178, t3 = 2195, qnt1 = 1, qnt2 = 1}, } function onUse(cid, item, item2, frompos, topos, pos) local r1 = {x = 189, y = 131, z = 7, stackpos= 2} local r2 = {x = 191, y = 131, z = 7, stackpos= 2} local r3 = {x = 190, y = 131, z = 7} local q1 = getThingfromPos(r1) local q2 = getThingfromPos(r2) for i, x in pairs(config) do if q1.itemid == x.t1 and q2.itemid == x.t2 then if q1.type >= x.qnt1 and q1.type >= x.qnt2 then doRemoveItem(q1.uid, x.qnt1) doR
  14. Falta registrar o evento no login.lua! adicione: registerCreatureEvent(cid, "PlayerDeath")
  15. @tirso teste ai: dofile("./_woe.lua") local config = woe_config local reward = 200000 -- 200k local function EndWoe() Woe.getInfo() setGlobalStorageValue(stor.Started, 0) setGlobalStorageValue(stor.WoeTime, 0) Woe.expulsar(infoLua[2], Castle.salas.a.fromx, Castle.salas.a.tox, Castle.salas.a.fromy, Castle.salas.a.toy, Castle.salas.a.z, Castle._exit) Woe.expulsar(infoLua[2], Castle.salas.b.fromx, Castle.salas.b.tox, Castle.salas.b.fromy, Castle.salas.b.toy, Castle.salas.b.z, Castle._exit) Woe.expulsar(infoLua[2], Castle.salas.c.fromx, Castle.s
  16. é porque comecei com essas coisas de scripting agora e não sabia disso, obg Ficaria certo assim? function onAdvance(cid, oldLevel, newLevel) if getPlayerStorageValue(cid, 9555) < 1 and getPlayerLevel(cid) == 50 then setPlayerStorageValue(cid, 9555, 1) doPlayerPopupFYI(cid, "Você atingiu o nível 50 e agora pode fazer tal quest, fale com o npc 'tal' para ter permissão.") end return TRUE end
  17. Script upnoob.lua : function onAdvance(cid, oldLevel, newLevel) if getPlayerLevel(cid) >= 50 then doPlayerPopupFYI(cid, "Você atingiu o nível 50 e agora pode fazer tal quest, fale com o npc 'tal' para ter permissão.") end return TRUE end tag creaturescripts.xml: <event type="advance" name="upnoob" event="script" value="upnoob.lua"/> registra esse evento no login.lua: registerCreatureEvent(cid, "upnoob")
  18. Recomendo você usar uma database com todas tabelas adicionadas, isso é falta da tabela otserver.reports
  19. Só traduzindo você já sabe o porque do erro "Tabela de base ou exibição não encontrada: 1146 Tabela 'otserver.reports' não existe 'em C: \ xampp \ htdocs \ layouts \ tibiacom \ layout.php: 653", tente adicionar essa tabela na database. E poste aqui o layouy.php da pasta C:\xampp\htdocs\layouts\tibiacom
  20. Esse erro aconteceu dps ou já tinha dps de adicionar o script do facebook?
  21. vai em data/lib/050-function.lua e verifica se tem isso dentro se não tiver adiciona: function getTileZoneInfo(pos) local tmp = getTileInfo(pos) if(tmp.pvp) then return 2 end if(tmp.nopvp) then return 1 end return 0 end Depois vai em data/lib/somefunctions.lua e procura por essa função: function canAttackOther(cid, pid) abaixo disso: local master2 = isSummon(pid) and getCreatureMaster(pid) or pid coloca isso: if getTileInfo(getThingPos(cid)).pvp then return "Can" end
  22. Qual base? Se for PDA já tentou alterar a velocidade no configuration.lua da pasta lib? Se não abra ele e procure por essa parte flys = { ai embaixo vai está mais ou menos assim flys = { ["Moltres"] = {229, 2300}, -- moltres ["Articuno"] = {230, 2100}, -- artic ["Zapdos"] = {224, 2600}, -- zapdos ["Mew"] = {232, 2200}, -- 1000 ["Mewtwo"] = {233, 2200},-- two ["Dragonite"] = {221, 1300},-- nite ["Pidgeot"] = {222, 900}, -- geot ["Fearow"] = {226, 800}, -- fearow ["Aerodactyl"] = {227, 1100}, -- aero ["Charizard"] = {216, 1000}, -- chari ["Porygon"] = {316, 600}, -- p
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo