-
Total de itens
254 -
Registro em
-
Última visita
-
Dias Ganhos
2
Tudo que Noob II postou
-
(Resolvido)Premium Scroll
Noob II respondeu ao tópico de Yago Blind. em Suporte Tibia OTServer (Resolvidos)
Posta teu config.lua ai -
Poste aqui o dropstone.lua e se necessario o some functions tbm
-
(Resolvido)[Pedido] Comando !withdraw
Noob II respondeu ao tópico de mateusmoretti em Suporte Tibia OTServer (Resolvidos)
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 -
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,
-
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
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 -
(Resolvido)[Pedido] Comando !withdraw
Noob II respondeu ao tópico de mateusmoretti em Suporte Tibia OTServer (Resolvidos)
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 -
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
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 -
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
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 -
Mudando o stackpos para 1 dar erro nos dois scripts? o que eu passei e o que já tinha?
-
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
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 -
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
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 > -
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
Se quiser pode adicionar, mas olha ai o seu script alterado com loot -
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
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) -
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
-
Normal Player quando morre não perde NADA!
Noob II respondeu ao tópico de tirso em Suporte Tibia OTServer
Falta registrar o evento no login.lua! adicione: registerCreatureEvent(cid, "PlayerDeath") -
@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
-
(Resolvido)[HELP] msg em certo level
Noob II respondeu ao tópico de Vagnerasdas em Suporte Tibia OTServer (Resolvidos)
é 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 -
Derivado habilitar pvp system
Noob II respondeu ao tópico de hian.araujo16 em Suporte Tibia OTServer
Precisando -
(Resolvido)[HELP] msg em certo level
Noob II respondeu ao tópico de Vagnerasdas em Suporte Tibia OTServer (Resolvidos)
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") -
Recomendo você usar uma database com todas tabelas adicionadas, isso é falta da tabela otserver.reports
-
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
-
Esse erro aconteceu dps ou já tinha dps de adicionar o script do facebook?
-
De nada, precisando
-
Derivado habilitar pvp system
Noob II respondeu ao tópico de hian.araujo16 em Suporte Tibia OTServer
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 -
Derivado Ajuda com dois erros simples
Noob II respondeu ao tópico de leleledf2016 em Suporte Tibia OTServer
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
TibiaKing
Open Tibia Server
Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia começando do zero.
Anuncie no TibiaKing
Precisa de mais visibilidade em seus projetos? Quer fazer um plano publicitário para o seu servidor? Anuncie no OTKing e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução!