
Tudo que Muvuka postou
-
Recovery Exp
ta funcionando porem quando pego level 22500 e morro volto pro 22400 nao pega O QUE PODE SER?
-
[RESOLVIDO] - [SQLite] -=[TFS]=- 0.4 8.60 Problema com npc Scrutinon
Vodkart nao funciona morri 8x e nao volto meu level 11236 to 11102
-
[SQLite] -=[TFS]=- 0.4 8.60 endvip.lua (REVSCRIPT) VIP PERFECT VIP SYSTEM 2.O NÃO TA PEGANDO
POREM DA DEBUG QUANDO EU LOGO ACCOUNT MANAGER E LOGO CHAR VIP NO MESMO CLIENT 1 SÓ SEM MC EU APERTO CTRL + G LOGO ACCOUNT MANAGER DEPOIS ESCOLHO E LOGO CHAR VIP E DA DEBUG NESSE 1 - SCRIPT: FUNCIONA MAIS DA DEBUG function onLogin(cid) local vipStorage = getPlayerStorageValue(cid, 13545) if vipStorage > 0 then local currentTime = os.time() if vipStorage <= currentTime then setPlayerStorageValue(cid, 13545, -1) doPlayerPopupFYI(cid, "Sua [VIP] Acabou.") if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then addEvent(EddyHavoc, 3 * 1000, cid) end else local daysLeft = math.ceil((vipStorage - currentTime) / (24 * 60 * 60)) local pos = {x = 154, y = 51, z = 7} doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Voce Tem " .. daysLeft .. " Dia de [VIP].") end end return true end 2- NÃO FUNCIONA: function onLogin(cid) local vipStorage = getPlayerStorageValue(cid, 13545) if vipStorage > 0 then local daysLeft = math.ceil((vipStorage - currentTime) / (24 * 60 * 60)) -- Calcula os dias restantes if vipStorage - os.time() <= 0 then setPlayerStorageValue(cid, 13545, -1) doPlayerPopupFYI(cid, "Sua [VIP] Acabou.") if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then addEvent(EddyHavoc, 3 * 1000, cid) end else local pos = {x = 154, y = 51, z = 7} doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Sua [VIP] Acabou.") setPlayerStorageValue(cid, 13545, -1) if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then addEvent(EddyHavoc, 3 * 1000, cid) doPlayerPopupFYI(cid, "Voce ainda tem " .. daysLeft .. " dias de VIP restantes.") end end end return true end [24/09/2023 14:43:47] [VIP] ADM has logged in. [24/09/2023 14:43:47] [Error - CreatureScript Interface] [24/09/2023 14:43:47] data/creaturescripts/scripts/endvip.lua:onLogin [24/09/2023 14:43:47] Description: [24/09/2023 14:43:47] data/creaturescripts/scripts/endvip.lua:5: attempt to perform arithmetic on global 'currentTime' (a nil value) [24/09/2023 14:43:47] stack traceback: [24/09/2023 14:43:47] data/creaturescripts/scripts/endvip.lua:5: in function <data/creaturescripts/scripts/endvip.lua:1> [24/09/2023 14:43:47] [VIP] ADM has logged out.
-
[SQLite] -=[TFS]=- 0.4 8.0 Vip System quando eu faço /addvip ADM, 1 ele ganha 1 dia de vip e desloga com [VIP] prefixo do nick o problema é no endvip
Porem quando eu deslogo e escolho character na lista escolho o char [VIP] as vezes da debug Talkaction: Systemvip.lua function onSay(cid, words, param) if words == "!buyvip" then local price = 20000 if doPlayerRemoveItem(cid, 2159, 20000) == TRUE then local days = 31 local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13545) local timenow = os.time() local time if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end if string.find(tostring(getCreatureName(cid)), "[[VIP]]") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados " .. days .. " dias de VIP no seu character.") setPlayerStorageValue(cid, 13545, time) local quantity = math.floor((getPlayerStorageValue(cid, 13545) - timenow) / (24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem " .. (quantity < 0 and 0 or quantity) .. " dias de VIP restantes.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados " .. days .. " dias de VIP no seu character.") setPlayerStorageValue(cid, 13545, time) local name = getCreatureName(cid) db.executeQuery("UPDATE `players` SET `name` = '[VIP] " .. name .. "' WHERE `id` = " .. getPlayerGUID(cid) .. ";") doRemoveCreature(cid) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de " .. price .. " [Donate] Coin's para colocar VIP.") end elseif words == "!vipdays" then local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 13545) - timenow) / (24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem " .. (quantity < 0 and 0 or quantity) .. " dias de VIP no seu character.") elseif words == "/checkvip" then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") else local player = getPlayerByName(param) if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.") else local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 13545) - timenow) / (24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem " .. (quantity < 0 and 0 or quantity) .. " dias de VIP no character.") end end end elseif words == "/addvip" then if getPlayerAccess(cid) == 5 then local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") else local playerName = t[1] local player = getPlayerByName(playerName) local name = getCreatureName(player) local days = tonumber(t[2]) local pid = getPlayerByNameWildcard(playerName) if not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn't exist or is offline.") return TRUE end local daysvalue = days * 3600 * 24 local storageplayer = getPlayerStorageValue(player, 13545) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) if string.find(tostring(getCreatureName(pid)), "[[VIP]]") then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados " .. days .. " dias de VIP no seu character.") setPlayerStorageValue(player, 13545, time) local quantity = math.floor((getPlayerStorageValue(player, 13545) - timenow) / (3600 * 24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem " .. quantity .. " dias de VIP restantes.") else setPlayerStorageValue(player, 13545, time) db.executeQuery("UPDATE `players` SET `name` = '[VIP] " .. name .. "' WHERE `id` = " .. getPlayerGUID(player) .. ";") doRemoveCreature(player) end end end elseif words == "/delvip" then if getPlayerAccess(cid) == 5 then local dec = MESSAGE_INFO_DESCR if param == "" then return TRUE, doPlayerSendTextMessage(cid, 18, "Command param required.") end local C, t = {}, string.explode(param, ",") C.pos = getPlayerPosition(cid) C.uid = getCreatureByName(t[1]) C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2])) * 3600 * 24 -- Tempo da VIP por dia. C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) -- Dias de VIP. if getPlayerStorageValue(C.uid, 13545) < C.time then doPlayerSendTextMessage(cid, dec, 'O jogador ' .. t[1] .. ' não possui ' .. C.days .. ' dias de VIP.') else doPlayerSendTextMessage(cid, dec, 'Você removeu ' .. C.days .. ' dias de VIP do player ' .. t[1] .. '.') setPlayerStorageValue(C.uid, 13545, getPlayerStorageValue(C.uid, 13545) - C.time) end doSendMagicEffect(C.pos, math.random(28, 30)) end end return TRUE end Creaturescript: endvip.lua function onLogin(cid) local vipStorage = getPlayerStorageValue(cid, 13545) if vipStorage > 0 then local currentTime = os.time() if vipStorage <= currentTime then setPlayerStorageValue(cid, 13545, -1) doPlayerPopupFYI(cid, "Sua [VIP] Acabou.") if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then addEvent(EddyHavoc, 3 * 1000, cid) end else local daysLeft = math.ceil((vipStorage - currentTime) / (24 * 60 * 60)) -- Calcula os dias restantes local pos = {x = 154, y = 51, z = 7} doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Voce ainda tem " .. daysLeft .. " dias de VIP restantes.") end end return true end
-
[SQLite] -=[TFS]=- 0.4 8.60 Food Infinito como faço pra esse food hela HP & Mana SEM MECHER NO vocation.xml
local FOODS, MAX_FOOD = { [11130] = {18, "~|Delicia|~"} }, 1200 function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.itemid == 6280) then if(fromPosition.x == CONTAINER_POSITION) then fromPosition = getThingPosition(cid) end doCreatureSay(cid, getPlayerName(cid) .. " blew out the candle.", TALKTYPE_MONSTER) doTransformItem(item.uid, item.itemid - 1) doSendMagicEffect(fromPosition, CONST_ME_POFF) return true end local food = FOODS[item.itemid] if(food == nil) then return false end local size = food[1] if(getPlayerFood(cid) + size > MAX_FOOD) then doPlayerSendCancel(cid, "You are full.") return true end doPlayerFeed(cid, size) doCreatureSay(cid, food[2], TALKTYPE_MONSTER) return true end SÓ FALTA TIRA EXAUSTED VOCE ESTA CANSADO E O SOUL DEIXA COM EFFECT OUTFIT DO BOLO E DA CURA HP/MANA playerOriginalOutfit = nil skill = nil magic = nil local function bloodCall (cid, times) if isPlayer (cid) then if times == 0 then doCreatureChangeOutfit(cid, playerOriginalOutfit) return true else doCreatureAddHealth(cid,(12*getCreatureMaxHealth(cid)/100)+(skill*6)+(magic*2)) doCreatureAddMana(cid,(12*getPlayerMaxMana(cid)/100)+(skill*6)+(magic*2)) doSendMagicEffect(getCreaturePosition(cid), 51) addEvent (bloodCall, 1 * 2000, cid, times - 1) end end end local Speed = createConditionObject(CONDITION_HASTE) setConditionParam(Speed, CONDITION_PARAM_TICKS, 30000) setConditionFormula(Speed, 0, 6000, 0, 6000) function onUse(cid, item, frompos, item2, topos) chronos = { lookType = 251,lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons } hazus = { lookType = 194,lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons } kazard = { lookType = 262,lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons } skill = getPlayerSkill(cid,0) magic = getPlayerMagLevel(cid) Blood = math.random(1,3) -- Exhausted Settings -- local exhausted_seconds = 0 -- Segundos que o blood vai demorar para usar denovo local exhausted_storagevalue = 4850 -- Storage Value do exhausted local exhausted_seconds2 = 0 -- How many seconds local exhausted_storagevalue2 = 9893 -- Storage Value local exhausted_seconds3 = 0 -- How many seconds local exhausted_storagevalue3 = 8162 -- Storage Value local exhausted_seconds4 = 0 -- How many seconds local exhausted_storagevalue4 = 6245 -- Storage Value local exhausted_seconds5 = 0 -- How many seconds local exhausted_storagevalue5 = 15555 -- Storage Value -- Exhausted Settings END -- if getPlayerSoul(cid) <= 49 then doPlayerSendTextMessage(cid,20,'Desculpe, você não tem Souls suficiente.') return true end if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then doPlayerSendTextMessage(cid,20,'Você não pode usar um blood of gods durante o efeito de outro.') return true end if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue2)) then doPlayerSendCancel(cid,"Você está muito cansado.") return true end if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue3)) then doPlayerSendCancel(cid,"Você está muito cansado.") return true end if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue4)) then doPlayerSendCancel(cid,"Está esgotado.") return true end if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue5)) then doPlayerSendCancel(cid,"Você está muito cansado.") return true end blood_configs = { [1] = { addHealth = 15 * getCreatureMaxHealth (cid) / 100, addMana = 15 * getCreatureMaxHealth (cid) / 100, creatureOutfit = chronos, creatureName = "Chronos", say = "~|Delicia|~!", }, [2] = { addHealth = 10 * getCreatureMaxHealth (cid) / 100, addMana = 10 * getCreatureMaxHealth (cid) / 100, creatureOutfit = kazard, creatureName = "Kazard", say = "~|Delicia|~", }, [3] = { addHealth =10 * getCreatureMaxHealth (cid) / 100, addMana = 10 * getCreatureMaxHealth (cid) / 100, creatureOutfit = hazus, creatureName = "Hazus", say = "~|Delicia|~", }, } if (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue2)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue3)) and (os.time() >= getPlayerStorageValue(cid, exhausted_storagevalue4)) then doCreatureAddHealth (cid, blood_configs[Blood].addHealth) doCreatureAddMana (cid, blood_configs[Blood].addMana) playerOriginalOutfit = getCreatureOutfit(cid) doCreatureChangeOutfit(cid, blood_configs[Blood].creatureOutfit) doSendMagicEffect (getCreaturePosition(cid), 12) doPlayerSendTextMessage (cid, 20, "Voce usou um Food e se transformou em um ".. blood_configs[Blood].creatureName .. ". (Revitalization Ativado).") doSendAnimatedText (getCreaturePosition(cid), blood_configs[Blood].say, TALKTYPE_ORANGE_1) end addEvent (bloodCall, 1 * 2000, cid, 15) setPlayerStorageValue (cid, exhausted_storagevalue, os.time() + exhausted_seconds) doPlayerAddSoul(cid,-50) doRemoveItem(item.uid,1) return true end
-
[SQLite] -=[TFS]=- 0.4 8.60 Tem como faze script /checkpa player name checa quantos premium voce tem
[SQLite] -=[TFS]=- 0.4 8.60 Tem como faze script /checkpa player name checa quantos premium player tem
-
[SQLite] -=[TFS]=- 0.4 8.60 Quando acaba a VIP ele desloga automaticamente mais quando digito /delvip player name, 31 days ele não kick in-game
--[[ by EddyHavoc Tibiaking.com ]]-- function onLogin(cid) if getPlayerStorageValue(cid, 13545) - os.time() > 0 then setPlayerStorageValue(cid, 9898, 1) end local pos = {x = 157, y = 51, z = 7} -- posiçao do templo. function EddyHavoc(cid) if isPlayer(cid) then db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) end end if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13545) - os.time() < 1 or getPlayerStorageValue(cid, 13545) - os.time() == 0 then doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) if string.find(tostring(getCreatureName(cid)),"[[VIP]]") then addEvent(EddyHavoc, 3*1000, cid) end end return TRUE end
-
[SQLite] -=[TFS]=- 0.4 8.60 EU NÃO SEI ONDE INSTALA A STORAGE NA PORTA NPC HERICUS INQUISA
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'permision') then selfSay('You want to Acquire Permissions for The Inquisition Quest? If you want to say {inquisition}?', cid) talkState[talkUser] = 2 elseif msgcontains(msg, 'rules') then selfSay('What do you want to know? Something about the three different {GENERAL} rules or the {PRICES}? Maybe you also want to know what happens when you die?', cid) talkState[talkUser] = 1 elseif talkState[talkUser] == 1 then if msgcontains(msg, 'çopopo') then selfSay('We have three difficulty. The hardest are warlord.', cid) talkState[talkUser] = 0 elseif msgcontains(msg, 'general') then selfSay('Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse and your backpack.If you enter in inquisition or you win or you go to temple.', cid) talkState[talkUser] = 0 elseif msgcontains(msg, 'prices') then selfSay('A great Inquisition cost 1000000000kkk golds.', cid) talkState[talkUser] = 0 end elseif talkState[talkUser] == 2 then if msgcontains(msg, 'kiukiukiu') then selfSay('The fee is 1000000000kkk gold for one try. Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse andyour backpack. Do you really want to participate in the arena in the easiest difficulty?', cid) talkState[talkUser] = 3 elseif msgcontains(msg, 'koikoikoi') then selfSay('The fee is 1000000000kkk gold for one try. Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse and your backpack. Do you really want to participate in the arena in the medium difficulty?', cid) talkState[talkUser] = 4 elseif msgcontains(msg, 'inquisition') then selfSay('You really want to pay 1000000000kkk in the Permissions Inquisition Quest, Knowing You Back there dead?', cid) talkState[talkUser] = 5 end elseif talkState[talkUser] == 3 then if msgcontains(msg, 'yes') then if getPlayerStorageValue(cid,50066) == -1 then if(doPlayerRemoveMoney(cid, 1000000000) == TRUE) then setPlayerStorageValue(cid,5066,1) selfSay('As you wish! You can pass the door now and enter the teleporter to the pits.', cid) end else selfSay('You already win this arena!', cid) end else selfSay('Then not. Get away and don\'t waste my time!', cid) end elseif talkState[talkUser] == 5 then if msgcontains(msg, 'yes') then if getPlayerStorageValue(cid,500677) == -1 then if(doPlayerRemoveMoney(cid, 1000000000) == TRUE) then setPlayerStorageValue(cid,500677,1) selfSay('As you wish! You can pass the door now and enter the teleporter to the pits.', cid) end else selfSay('You already win this arena!', cid) end else selfSay('Then not. Get away and don\'t waste my time!', cid) end elseif talkState[talkUser] == 5 then if msgcontains(msg, 'yes') then if getPlayerStorageValue(cid,5076) == -1 then if(doPlayerRemoveMoney(cid, 1000000000) == TRUE) then setPlayerStorageValue(cid,5074,1) selfSay('As you wish! You can pass the door now and enter the door to the pits.', cid) end else selfSay('As you wish! You can pass the door now and enter the door to the pits.', cid) end else selfSay('Then not. Get away and don\'t waste my time!', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then talkState[talkUser] = 0 selfSay('Ok then.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
[SQLite] -=[TFS]=- [Talkaction] 0.4 8.60 ERRO /checkvip
Erro só nesta parte do systemvip perfect vip system 2.0 elseif(words == "/checkvip") then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(param) if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 13545) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") return TRUE end [19/09/2023 23:23:03] [Error - TalkAction Interface] [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:onSay [19/09/2023 23:23:03] Description: [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:47: attempt to concatenate local 'player' (a nil value) [19/09/2023 23:23:03] stack traceback: [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:47: in function <data/talkactions/scripts/systemvip.lua:3> ALGUEM CONSEGUE ARRRUMA ESSE SCRIPT AQUI EM BAIXO --[[ by vodkart ]]-- function onLogin(cid) if getPlayerStorageValue(cid, 13540) - os.time() > 0 then setPlayerStorageValue(cid, 9898, 1) end local pos = {x = 157, y = 50, z = 7} -- posiçao do templo. function Vodka(cid) if isPlayer(cid) then db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) end end if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13540) - os.time() < 1 or getPlayerStorageValue(cid, 13540) - os.time() == 0 then doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then addEvent(Vodka, 3*1000, cid) end end return TRUE end
-
[SQLite] -=[TFS]=- 0.4 8.60 Perfect VIP System erro
Erro só nesta parte do systemvip perfect vip system 2.0 elseif(words == "/checkvip") then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(param) if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 13545) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") return TRUE end [19/09/2023 23:23:03] [Error - TalkAction Interface] [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:onSay [19/09/2023 23:23:03] Description: [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:47: attempt to concatenate local 'player' (a nil value) [19/09/2023 23:23:03] stack traceback: [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:47: in function <data/talkactions/scripts/systemvip.lua:3>
-
[SQLite] -=[TFS]=- 0.4 8.60 Perfect System VIP 2.0
Não funciona /delvip /addvip alguem pode arruma elseif(words == "/addvip") then if getPlayerAccess(cid) == 5 then local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local name = getCreatureName(player) local days = t[2] local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end local daysvalue = days*3600*24 local storageplayer = getPlayerStorageValue(player, 13540) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) if string.find(tostring(getCreatureName(pid)),"[[Vip]]") then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.") setPlayerStorageValue(player, 13540, time) local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.") else setPlayerStorageValue(player, 13540, time) db.executeQuery("UPDATE `players` SET `name` = '[Vip] "..name.."' WHERE `id` = "..getPlayerGUID(player)..";") doRemoveCreature(player) end end elseif(words == "/delvip") then if getPlayerAccess(cid) == 5 then local dec = MESSAGE_INFO_DESCR if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end local C,t = {},string.explode(param, ",") C.pos = getPlayerPosition(cid) C.uid = getCreatureByName(t[1]) C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia. C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip. if(getPlayerStorageValue(C.uid,13540) < C.time)then doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.') else doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.') setPlayerStorageValue(C.uid,13540,getPlayerStorageValue(C.uid,13540)-C.time) end doSendMagicEffect(C.pos, math.random(28,30)) end end return TRUE end
-
[SQLite] -=[TFS]=- 0.4 8.60 Problema com Stamina & Canal Abri Automaticamente.
@Reds meu servidor usa distro GUI 0.4 8.60
-
[SQLite] -=[TFS]=- 0.4 8.60 COMO EU TIRO [VIP] NO PREFIXO DO SQLITE STUDIO DO PLAYERS?
[SQLite] -=[TFS]=- 0.4 8.60 COMO EU TIRO [VIP] NO PREFIXO DO SQLITE STUDIO DO PLAYERS?
-
[SQLite] -=[TFS]=- 0.4 8.60 Cria um Script Creaturescript Share Experience Baseado no Script Abaixo
A descrição é se alguem cria criaturescript com party share experiencia pegando
-
[SQLite] -=[TFS]=- 0.4 8.60 Cria um Script Creaturescript Share Experience Baseado no Script Abaixo
[SQLite] -=[TFS]=- 0.4 8.60 Cria um Script Creaturescript Share Experience Baseado no Script Abaixo experienceShareRadiusX = 65000 experienceShareRadiusY = 65000 experienceShareRadiusZ = 15 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 99999 extraPartyExperiencePercent = 100 experienceShareActivity = 2 * 60 * 1000
-
[SQLite] -=[TFS]=- 0.4 8.60 Abri Channel a Força Script.lua Creaturescript Ja Tentei login.lua if(lastLogin > 0) then e não da Sem Meche na Source
não funciono quando eu logo não aparece o canal @sanjao7
-
[SQLite] -=[TFS]=- 0.4 8.60 Problema com Stamina & Canal Abri Automaticamente.
Não Desce a Stamina: rateStaminaLoss = 1 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 40 * 60 staminaRatingLimitBottom = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true Abri canal automatico somente 2 sem meche na source usando somente creaturescript <channel id="9" name="HELP" logged="yes"/> <channel id="15" name="Death Channel"/>
-
[SQLite] -=[TFS]=- 0.4 8.60 Abri Channel a Força Script.lua Creaturescript Ja Tentei login.lua if(lastLogin > 0) then e não da Sem Meche na Source
Não tem como cria um creaturescript 100% funcional que abri os canais citados no topico tirando base da source e usa creaturescript como plataforma e usa o creaturescript como emulador?
-
[SQLite] -=[TFS]=- 0.4 8.60 Abri Channel a Força Script.lua Creaturescript Ja Tentei login.lua if(lastLogin > 0) then e não da Sem Meche na Source
Abri canal a força creaturescript acho que funcione no creaturescript cria script creaturescript <channel id="9" name="HELP" logged="yes"/> <channel id="12" name="Report Bugs" logged="yes"/> <channel id="13" name="Loot" logged="yes"/> <channel id="14" name="Report Character Rules Tibia Rules" logged="yes"/> <channel id="15" name="Death Channel"/> <channel id="6548" name="DexSoft" level="1"/> <channel id="7" name="Reports" logged="yes"/> antes de if(lastLogin > 0) then adicione isso: doPlayerOpenChannel(cid, CHANNEL_HELP) doPlayerOpenChannel(cid, 1, 2, 3) = 1,2 ,3 Channels, entendeu? NÃO FUNCIONA EU QUERO UM MEIO DE ABRI SEM USA A SOURCE EU NÃO CONSEGUI ABRI EU NÃO TENHO SOURCE
-
(Resolvido)[SQLite] -=[TFS]=- 0.4 8.60 Combat Weapon
eu coloco pra attack fica quadrado vermelho e nao faz nada
-
(Resolvido)[SQLite] -=[TFS]=- 0.4 8.60 Combat Weapon
ele trava a mira e nao ataca
-
(Resolvido)[SQLite] -=[TFS]=- 0.4 8.60 Combat Weapon
ele não reconhece os damage combat só ataca com ultimo combat COMBAT_HOLYDAMAGE
-
(Resolvido)[SQLite] -=[TFS]=- 0.4 8.60 Combat Weapon
ME AJUDA POR FAVOR COLOCA OS ELEMENTOS setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
-
(Resolvido)[SQLite] -=[TFS]=- 0.4 8.60 Combat Weapon
CONSEGUI LEKOT O PROBLEMA AGORA É OS ELEMENTOS DAMAGE local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDSWORD) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -5.0, -1000000000, -5.0, -1000000000) local area = createCombatArea( { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0} } ) setCombatArea(combat, area) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end
-
(Resolvido)[SQLite] -=[TFS]=- 0.4 8.60 Combat Weapon
Eu tentei mata demon e não consegui mata nenhuma criatura com esse aqui eu consegui e da dano area local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDSWORD) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -5.0, -1000000000, -5.0, -1000000000) local area = createCombatArea( { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } ) setCombatArea(combat, area) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end