Ir para conteúdo

Nightstar

Campones
  • Total de itens

    12
  • Registro em

  • Última visita

Tudo que Nightstar postou

  1. Está dando esse erro em um MOD que possuo, alguém sabe como solucionar esse problema? <?xml version="1.0" encoding="UTF-8"?> <mod name="Vipsystem" version="1.0" author="Aco" contact="http://otland.net/members/acordion" enabled="yes"> <!--- Information Vip Item = 10503 set action id 11223 to the tile you want to be vip tile set action id 2112 to the door you want to be vip door MYSQL TABLE ........................................................ ALTER TABLE `accounts` ADD `vipdays` int(11) NOT NULL DEFAULT 0; ........................................................ --> <config name="VipFuctions"><![CDATA[ --- Vip functions by Kekox function getPlayerVipDays(cid) local Info = db.getResult("SELECT `vipdays` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. " LIMIT 1") if Info:getID() ~= LUA_ERROR then local days= Info:getDataInt("vipdays") Info:free() return days end return LUA_ERROR end function doAddVipDays(cid, days) db.executeQuery("UPDATE `accounts` SET `vipdays` = `vipdays` + " .. days .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";") end function doRemoveVipDays(cid, days) db.executeQuery("UPDATE `accounts` SET `vipdays` = `vipdays` - " .. days .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";") end ]]></config> <globalevent name="VipDaysRemover" time="00:01" event="script"><![CDATA[ --- Script by Kekox. function onTime() db.executeQuery("UPDATE accounts SET vipdays = vipdays - 1 WHERE vipdays > 0;") return true end ]]></globalevent> <globalevent name="vipEffect" interval="2" event="script"><![CDATA[ domodlib('VipFuctions') --- Script By Kekox. function onThink(interval, lastExecution) for _, name in ipairs(getOnlinePlayers()) do local cid = getPlayerByName(name) if getPlayerVipDays(cid) >= 1 then doSendMagicEffect(getPlayerPosition(cid), 27) doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED) end end return true end]]></globalevent> <event type="login" name="Vip" event="script"><![CDATA[ --- Script by Kekox. function onLogin(cid) registerCreatureEvent(cid, "VipCheck") return true end]]></event> <event type="login" name="VipCheck" event="script"><![CDATA[ domodlib('VipFuctions') --- Script by Kekox. function onLogin(cid) if getPlayerVipDays(cid) >= 1 then doPlayerSendTextMessage(cid, 19, "You have ".. getPlayerVipDays(cid) .." vip days left.") end return true end ]]></event> <movevent type="StepIn" actionid="11223" event="script"><![CDATA[ domodlib('VipFuctions') --- Script by Kekox. function onStepIn(cid, item, position, fromPosition) if getPlayerVipDays(cid) == 0 then doTeleportThing(cid, fromPosition, FALSE) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only VIP Account can go there.") end return true end ]]></movevent> <action actionid="13500" event="script"><![CDATA[ domodlib('VipFuctions') --- Script by Kekox. function onUse(cid, item, frompos, item2, topos) if getPlayerVipDays(cid) >= 1 then pos = getPlayerPosition(cid) if pos.x == topos.x then if pos.y < topos.y then pos.y = topos.y + 1 else pos.y = topos.y - 1 end elseif pos.y == topos.y then if pos.x < topos.x then pos.x = topos.x + 1 else pos.x = topos.x - 1 end else doPlayerSendTextMessage(cid,22,"Stand in front of the door.") return true end doTeleportThing(cid,pos) doSendMagicEffect(topos,12) else doPlayerSendTextMessage(cid,22,'Only VIP Account can go there.') end return true end ]]></action> <action itemid="11111" event="script"><![CDATA[ domodlib('VipFuctions') --- Script by Kekox. function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVipDays(cid) > 365 then doPlayerSendCancel(cid, "You can only have 1 year of vip account or less.") else doAddVipDays(cid, 30) doCreatureSay(cid, "Vip", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "We have added 30 vip days to your account.") doRemoveItem(item.uid) end return true end ]]></action> </mod>
  2. Eu tava buscando um script para colocar um bloqueio em upar de nível que só é liberado se tiver uma certa storage. Buscando em foruns, encontrei esse script que estará logo a seguir, porém ele é para tfs 1.x, mas gostaria que fosse para tfs 0.4. Como fazer? -- Put this in data/global.lua function getExpForLevel(level) level = level - 1 return ((50 * level * level * level) - (150 * level * level) + (400 * level)) / 3 end -- Put this in data/events/scripts/player.lua before Player:onGainExperience (outside of function) local level_tiers = { {level = 20, storage = 50000, value = 1}, -- level, quest_storage, value_required {level = 40, storage = 50001, value = 1}, {level = 60, storage = 50002, value = 1}, } -- Put this in data/events/scripts/player.lua within Player:onGainExperience before "return exp" for _, array in pairs(level_tiers) do if self:getStorageValue(array.storage) < array.value then local current_exp, level_exp = self:getExperience(), getExpForLevel(array.level) if (current_exp + exp) > level_exp then exp = math.max(0, level_exp - current_exp) break end end end
  3. Quando tento entrar no site, fica dando esse erro que está no anexo. Como se arruma isso?
  4. Pelo meu pouco entendimento, está faltando essa tabela "abw.news", mas como crio ela? ainda sou leigo em mysql A Database Error Occurred Error Number: 1146 Table 'abw.news' doesn't exist SELECT * FROM (`news`) ORDER BY `id` desc LIMIT 100
  5. Nightstar

    OTC 0.6.7 erro

    Alguém sabe o motivo de estar dando esse erro? e como resolver?
  6. Então, busquei por algum tempo (acho que uns 3 dias de busca ou mais) um script de quest para o baú entregar uma recompensa aleatória. Os que encontrei no forum é sempre de recompensa diária, mas não encontrei de ser algo único. Pegar recompensa uma única vez por persoangem. Uso tfs 0.4 tibia 8.6
  7. Eu tenho esse script e gostaria de saber o que eu faria para bloquear a armadura nos slots. Exemplo: Da use no bracelete e a armadura é equipada em seus respectivos de slot, porém não terá como o jogador retirar essas partes do set ou trocar, até dar use de novo no bracelete que é quando a armadura "volta" pra dentro do bracelete
  8. Existe alguma forma de fazer as armas unirem dois tipo de skill? Exemplo, tem uma arma que pega o valor de Sword Skill e Axe skill para dar o dano final no alvo
  9. Tem algum modo de fazer as armas dar mais dano de acordo com suas skills? Exemplo, sword dar 5% de dano extra por o jogador ter 10 de sword fighting. Uso tfs 0.4/tibia 8.6
  10. Gostaria de saber onde eu mecho pra retirar axe fighting do client, já que não irei utilizar para nada
  11. Tenho um scripting (mais precisamente um mod) de elo que recebe de acordo com seu frag. Queria saber se uma alma bondosa poderia me ajudar a adicionar bônus de acordo com o titulo que a pessoa tem. Exemplo: Titulo Calamidade +5 de ML Titulo Lord Demônio +10 de ML e etc Segue o mod:
  12. No server que tô editando, o skill fist não sobe por nenhum meio, independente do que eu faça ele continua no 10. O server que tô usando como base é o GTA beddy, TFS 0.4, tibia 8.6. Alguém sabe onde solucionar esse problema do fist não subir?
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...