-
Total de itens
3611 -
Registro em
-
Última visita
-
Dias Ganhos
60
Tudo que Roksas postou
-
[Encerrado] [DÚVIDA] Pokemon PDA By Slicer
tópico respondeu ao TraaNe de Roksas em Tópicos Sem Resposta
Você tentou utilizar o login.lua dele não? Devia ter feito backup do seu! -
Me passe o script da sua mana rune! Ou não tem? Se não tiver irei fazer.
-
Muito bom, espero ter ajudado realmente. Qualquer dúvida PM ou crie outro tópico! Disponha do XTibia!
-
[Encerrado] [DÚVIDA] Pokemon PDA By Slicer
tópico respondeu ao TraaNe de Roksas em Tópicos Sem Resposta
Tente assim: (Script feito por LuckOake) creaturescript.xml: <event type="login" name="LogSkull" script="logskull.lua"/> logskull.lua: function onLogout(cid) if isInArray({3,4,5}, getCreatureSkullType(cid)) then doPlayerSendCancel(cid, "Aguarde seu battle para poder logar.") return false end return true end login.lua: registerCreatureEvent(cid, "LogSkull") -
Editei meu último post, tente daquele jeito!
-
[Encerrado] [DÚVIDA] Pokemon PDA By Slicer
tópico respondeu ao TraaNe de Roksas em Tópicos Sem Resposta
Para adicionar os Diamonds no Site: http://www.xtibia.com/forum/topic/137431-gesior-aacshop-itens-com-categorias/ -
Para os addons, procure por: disableOutfitsForPrivilegedPlayers = Mude para: disableOutfitsForPrivilegedPlayers = false
-
[Encerrado] [DÚVIDA] Pokemon PDA By Slicer
tópico respondeu ao TraaNe de Roksas em Tópicos Sem Resposta
Para Fly,Ride,etc ser apenas para Premiums, não vai precisar de NPC algum. Basta adiciona a função "if isPremium(cid) then" nos scripts. Irei aguardar ele postar os scripts de Order dele e então basta arrumar! @EDIT Tente assim: local del = {'460', '1022', '1023', '1024'} function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) position.stackpos = 0 if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV if getPlayerStorageValue(cid, 17000) <= 0 then if isPremium(cid) then doTeleportThing(cid, fromPosition, false) doRemoveItem(getTileThingByPos(position).uid, 1) doPlayerSendCancel(cid, "You can't fly.") return true end end doAreaCombatHealth(cid, FLYSYSTEMDAMAGE, getThingPos(cid), splash, 0, 0, 255) local pos = getThingPos(cid) if pos.z == 7 then return true end pos.z = pos.z + 1 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, 3) or hasProperty(tile.uid, 7) or tile.itemid == 919 then doTransformItem(item.uid, 11677) end end end return true end function onStepOut(cid, item, position, lastPosition, fromPosition, toPosition, actor) if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV local effect = 2 if toPosition.z == fromPosition.z and getCreatureOutfit(cid).lookType ~= 316 and getCreatureOutfit(cid).lookType ~= 648 then doSendMagicEffect(fromPosition, effect) end local oldtpos = fromPosition oldtpos.stackpos = STACKPOS_GROUND if getTileThingByPos(oldtpos).itemid >= 1 then doRemoveItem(getTileThingByPos(oldtpos).uid, 1) end return true end -
Ok, se for a "telinha" tente esse script aqui: local config = { useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')), advancedFragList = getBooleanFromString(getConfigValue('advancedFragList')) } function onSay(cid, words, param, channel) if(not config.useFragHandler) then return FALSE end local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = { name = result:getDataString("name"), level = result:getDataInt("level"), date = result:getDataInt("date") } if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } if(config.advancedFragList) then local result = "Frags gained today: " .. size.day .. "." result = result .. "\nFrags gained this week: " .. (size.day + size.week) .. "." if(size.week > 0) then for _, content in ipairs(contents.week) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end result = result .. "\nFrags gained this month: " .. (size.day + size.week + size.month) .. "." if(size.month > 0) then for _, content in ipairs(contents.month) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then result = result .. "\nYour " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, result) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce tem:\n " .. size.day .. " frags hoje (" .. size.day .. "/10)\n " .. (size.day + size.week) .. " na semana (" .. (size.day + size.week) .. "/25)\n " .. (size.day + size.week + size.month) .. " frags no mes (" .. (size.day + size.week + size.month) .. "/70).") if(size.day > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua última vítima foi o jogador " .. contents.day[1].name .. " no level " .. contents.day[1].level .. ".") end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Pk " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " sairá: " .. os.date("%d %B %Y %X", skullEnd)) end end return TRUE end Caso não dê aconselho-te a trocar de servidor!
-
dúvida setCreatureName , funciona com players? como?
pergunta respondeu ao tonynamoral de Roksas em Scripts
Esta função serve apenas para Monstros! -
Editei meu post acima, tente agora!
-
[Encerrado] [DÚVIDA] Pokemon PDA By Slicer
tópico respondeu ao TraaNe de Roksas em Tópicos Sem Resposta
Isso é super fácil de fazer, as áreas VIP, você terá que baixar ou fazer o mapa, as quests também, já o Fly e os Diamonds, eu poderia ajudar! Me passe o seu script de Fly! -
Muito estranho, pois se o script dá os dias, e no config.lua está habilitado o Premium para todos..
-
Você quer que adicione storage 2124 com o valor 2. Poderia me passar o script, que você necessita da Storage?
-
Tente assim: 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 local node1 = keywordHandler:addKeyword({'chuunin'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso promover voce para chuunin por 20000 gold coins. Voce quer ser promovido?'}) node1:addChildKeyword({'sim'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 40, promotion = 1, text = 'Parabens! Voce e um Chuunin.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) --[[ local node2 = keywordHandler:addKeyword({'epic'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 200000 gold coins. Do you want me to epicize you?'}) node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 120, promotion = 2, text = 'Congratulations! You are now epicized.'}) setPlayerStorageValue(cid,2124,2) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) ]]-- npcHandler:addModule(FocusModule:new())
-
Tente assim: local config = { useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')), advancedFragList = getBooleanFromString(getConfigValue('advancedFragList')) } function onSay(cid, words, param, channel) if(not config.useFragHandler) then return FALSE end local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = { name = result:getDataString("name"), level = result:getDataInt("level"), date = result:getDataInt("date") } if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } if(config.advancedFragList) then local result = "Frags gained today: " .. size.day .. "." if(size.day > 0) then for _, content in ipairs(contents.day) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end result = result .. "\nFrags gained this week: " .. (size.day + size.week) .. "." if(size.week > 0) then for _, content in ipairs(contents.week) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end result = result .. "\nFrags gained this month: " .. (size.day + size.week + size.month) .. "." if(size.month > 0) then for _, content in ipairs(contents.month) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then result = result .. "\nYour " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd) end doPlayerPopupFYI(cid, result) else doPlayerPopupFYI(cid,"Voce tem:\n " .. size.day .. " frags hoje (" .. size.day .. "/10)\n " .. (size.day + size.week) .. " na semana (" .. (size.day + size.week) .. "/25)\n " .. (size.day + size.week + size.month) .. " frags no mes (" .. (size.day + size.week + size.month) .. "/70).") if(size.day > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua última vítima foi o jogador " .. contents.day[1].name .. " no level " .. contents.day[1].level .. ".") end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Pk " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " sairá: " .. os.date("%d %B %Y %X", skullEnd)) end end return TRUE end
-
Qual o problema com o Script? Pelo que eu vi está certo, quando adiciona os dias Vips, ao mesmo tempo adiciona dias Premium. No Character List, ficará os dias normalmente! Procure explicar o ocorrido. Caso também esteja cansado desse lhe recomendo este aqui: http://www.xtibia.co...lassic-premium/ BENÇA ) @EDIT Percebi! Tente assim: local config = { vip = "yes", storage = 13500 } function onSay(cid, words, param, channel) if words == "/buyvip" then local days = 30 local storageplayer = getPlayerStorageValue(cid, 13500) if doPlayerRemoveItem(cid, 8981, 1) then addVipDays(cid, days) doPlayerAddPremiumDays(cid, days) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você adicionou "..days.." dia(s) de vip, agora você possui "..getVipDays(cid).." dia(s) de vip.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem vip doll para ativar sua vip.") end elseif words == "/vipdays" then local duration = getVipDate(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você possui "..getVipDays(cid).." dia(s) de vip."..(duration and (" Ela irá durar até "..duration..".") or "")) end return TRUE end
-
Ai que gatinho hein!
-
Dúvida sanada, reportado!
-
Good Job! Good Luck )
-
Dúvida sanada, reportado!
-
Dúvida sanada, reportado! Disponha do XTibia.
-
poketibia [Encerrado] (Erro) Not valid packet size
tópico respondeu ao BrunooMaciell de Roksas em Tópicos Sem Resposta
Bom, creio que seja o mesmo erro daquela vez não Bruno? Procure experimentar a mesma solução! Irei anexar o meu "admin.xml" Procure não mexer nele novamente. Obrigado! @EDIT Bruno, para que não aconteça mais isso, evite mudar senhas ou deletar Characters pelo SQLITE, procure fazer o mesmo pelo Account Manager, provavelmente evitará por um bom tempo. BENÇA ) admin.xml- 4 respostas
-
- erro - poketibia
- tibia
-
(e 2 mais)
Tags:
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.