Tudo que Pedro. postou
-
TFS 1.3
não sei se vai funcionar, testa ai local vocQ = { ["1-5"] = {item = {7365, itemid}}, ["2-6"] = {item = {7365, itemid}}, ["3-7"] = {item = {7365, itemid}}, ["4-8"] = {item = {7365, itemid}}, } function onUse(cid, item, toPosition, itemEx, fromPosition) if getPlayerStorageValue(cid, 7365) ~= 1 then for voc, items in pairs(vocQ) do local v = param:split(voc, "-") if getPlayerVocation(cid) == tonumber(v[1]) or getPlayerVocation(cid) == tonumber(v[2]) then doPlayerAddItem(cid, items.item[1], 1) doPlayerAddItem(cid, items.item[2], 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") setPlayerStorageValue(cid, 7365, 1) break end end else doPlayerSendCancel(cid, "It's empty.") end return true end
-
[Show OFF] - Shopping Modal
Você pode por as informações inclusive no seu sistema também, uma vez eu vi um sistema de crafting em modal, e lá tinha um botão "details" que aparecia os items que precisava pra fazer tal item. Eu acho interessante, você poderia usar modal pra diversas coisas, não só tibia coins. Como meu exemplo, usar outro tipo de moeda ou coins. Muito bom meninão, faz um historico SIM, e também 1 botão de confirmação, quando você escolher o item aparecer "você está comprando X% item você tem certeza? as vezes a pessoa pode apenas clicar e comprar um item sem querer. Tá muito bom zézin
-
Magnus Task System 1.2
- ITEM bugando ao relogar [Object Builder]
Então, to tentando criar umas sprites, eu ja criei elas, ja adicionei até em items, weapons, elas estão funcionando, SENDO QUE, toda vez que eu relogo ou renicio o servidor elas viram estatuas e no itemeditor ele fica desse jeito ô- Npc de Missões Diferente...
se ninguém fizer, tem um script que ele é de missões também, mas tipo tu faz a 1º e só pode fazer a 2º depois que liberar a primeira. Criado em / data / npc arquivo mission.xml e cole isto: <?xml version="1.0" encoding="UTF-8"?> <npc name="Mission" script="mission.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="325" head="29" body="4" legs="20" feet="96" addons="3" corpse="2212"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|. What brings you to me? You want start the {quest}?"/> </parameters> </npc> Em seguida, criado em / data / npc / scripts file mission.lua e cole isto: 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, 'quest')) then selfSay('To start this quest tell {mission}', cid) --This is just an example, In this script added 4 mission for you ;) end if(msgcontains(msg, 'mission')) then if(getPlayerStorageValue(cid,700) < 1) then selfSay('Your first mission will be to get 100 {tarantula egg}.', cid) talkState[talkUser] = 1 elseif (getPlayerStorageValue(cid,701) < 1) then selfSay('Your next mission will be to get 150 {strands of medusa hair}.', cid) talkState[talkUser] = 1 elseif (getPlayerStorageValue(cid,702) < 0) then selfSay('Your next mission will be to get 300 {red dragon scales}.', cid) talkState[talkUser] = 1 elseif (getPlayerStorageValue(cid,703) < 0) then selfSay('Your next mission will be to get 400 {green dragon scales}.', cid) talkState[talkUser] = 1 elseif (getPlayerStorageValue(cid,703) == 1) then --zmieniac w zaleznosci od ostatniego storage!! selfSay('You have done all missions.', cid) talkState[talkUser] = 1 end --------------------------------------- elseif(msgcontains(msg, 'tarantula egg') and talkState[talkUser] == 1 and (getPlayerStorageValue(cid,700) < 1)) then if(doPlayerRemoveItem(cid, 11198, 100) == TRUE) then setPlayerStorageValue(cid,700,1) doPlayerAddPercentLevel(cid, 5) selfSay('Thank you.', cid) talkState[talkUser] = 0 else selfSay('To end mission you need have 100 {tarantula egg}.', cid) end --------------------------------------- elseif(msgcontains(msg, 'strands of medusa hair') and talkState[talkUser] == 1 and (getPlayerStorageValue(cid,701) < 1) and (getPlayerStorageValue(cid,700) == 1)) then if(doPlayerRemoveItem(cid, 11226, 150) == TRUE) then setPlayerStorageValue(cid,701,1) doPlayerAddPercentLevel(cid, 7) selfSay('Thank you.', cid) talkState[talkUser] = 0 else selfSay('To end mission you need have 150 {strands of medusa hair}.', cid) end --------------------------------------- elseif(msgcontains(msg, 'red dragon scales') and talkState[talkUser] == 1 and (getPlayerStorageValue(cid,702) < 1) and (getPlayerStorageValue(cid,701) == 1)) then if(doPlayerRemoveItem(cid, 5882, 300) == TRUE) then setPlayerStorageValue(cid,702,1) doPlayerAddPercentLevel(cid, 6) selfSay('Thank you.', cid) talkState[talkUser] = 0 else selfSay('To end mission you need have 300 {red dragon scales}.', cid) end --------------------------------------- elseif(msgcontains(msg, 'green dragon scales') and talkState[talkUser] == 1 and (getPlayerStorageValue(cid,703) < 1) and (getPlayerStorageValue(cid,702) == 1)) then if(doPlayerRemoveItem(cid, 5920, 400) == TRUE) then setPlayerStorageValue(cid,703,1) doPlayerAddPercentLevel(cid, 5) selfSay('Thank you.', cid) talkState[talkUser] = 0 else selfSay('To end mission you need have 400 {green dragon scales}.', cid) end ------------------------------------------ end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Vá para data / lib / 050-function.lua e cole: (function by Oskar1121 ) function doPlayerAddPercentLevel(cid, percent) local player_lv, player_lv_1 = getExperienceForLevel(getPlayerLevel(cid)), getExperienceForLevel(getPlayerLevel(cid)+1) local percent_lv = ((player_lv_1 - player_lv) / 100) * percent doPlayerAddExperience(cid, percent_lv) end créditos: kawon- Telara Baiak Futuristico.
Valeu dani, claro que sim, tu é brabo, muito coerente, tenho que ouvir sempre, vou vê esse lance do menu.- Telara Baiak Futuristico.
- (Resolvido)Remover Walls após boss morto TFS 1.2
Funcionou 100% vou nem falar de como esse código tá bonito, só não mais do que eu.- (Resolvido)Remover Walls após boss morto TFS 1.2
olá, to precisando de 1 script que após a morte de X monstro, remova uma wall em X posição, e que essa parede volte em uns 600segs. o script que eu tenho como base, é por teleport. local tps = { ["Ortheus"] = {pos = {x=1944, y=1046, z=10}, toPos = {x=1942, y=1046, z=10}, time = 120}, } local function removeTp(tp) local t = getTileItemById(tp.pos, 5023).uid return t > 0 and doRemoveItem(t) and doSendMagicEffect(tp.pos, CONST_ME_POFF) end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(5023, tp.toPos, tp.pos) doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, tp.time*1000, tp) end return true end- (Resolvido)Leve Monster TFS 1.3
você é muito meu meninão- (Resolvido)Leve Monster TFS 1.3
Preciso de um script que o player clique na avalanca e sumone um monstro, e que tenha um exhaustion de 12h Eu tentei fazer assim mas não deu n. local config = { storage = 60233, -- storage exhausttime = 1*30*30, -- time exhauststorage = 2300 monster = {name = 'Teste', position= Position(747, 1602, 10)}, message = "It's too quiet here...", } function onUse(cid, item, frompos, item2, topos) local player = creature:getPlayer() if not player then return true end if player:getStorageValue(config.exhauststorage) > os.time() then local time = player:getStorageValue(config.exhauststorage) - os.time() local hours, minutes, seconds = math.floor (time / 3600), math.floor ((time - ((math.floor (time / 3600)) * 3600))/ 60), time - ((math.floor (time/60)) * 60) if time >= 3600 then text = hours.." "..(hours == 1 and "hour" or "hours")..", "..minutes.." "..(minutes == 1 and "minute" or "minutes").." and "..seconds.." "..(seconds == 1 and "second" or "seconds") elseif time >= 60 then text = minutes.." "..(minutes == 1 and "minute" or "minutes").." and "..seconds.." "..(seconds == 1 and "second" or "seconds") else text = seconds.." "..(seconds == 1 and "second" or "seconds") end doSendMagicEffect(pos, CONST_ME_POFF) player:sendTextMessage(MESSAGE_INFO_DESCR, "You need to wait "..text.." before you can get a reward again.") return true end local globalStorage = Game.getStorageValue(config.storage) return true end local monster = Game.createMonster(config.monster.name, config.monster.position, false, true) if not monster then return true end player:say(config.message, TALKTYPE_SAY) Game.setStorageValue(config.storage) player:setStorageValue(config.exhauststorage, os.time() + 1*30*30) return true end- Host para ligar otserv
eu recomendo mil vezes linux, você tem grande facilidade pra compilar sources, é mais leve, mais barato, mais seguro. 4youstart.com- TFS 1x Necronia
tava sem nada pra fazer e comecei a editar um layoutzinho, no intuito de praticar. Aproveitarei e vim disponibilizar aqui, qualquer erro ou bug que acharem podem reportar que irei arrumar. Necronia Version: Gesior2012 Download: https://github.com/pedrogiampietro/Necronia Images:- (Resolvido)Erro ao tentar enviar e-mail "lost account"
Cara, eu não sei se hotmail funciona, geralmente usam gmail.- !online AREA?
isso.- [CLOSED]
lol? você tá sendo totalmente incoerente cara, primeiro você cria um tópico pedindo ajuda para aumentar a cap, e agora você diz que tá tentando aumentar a quantidade de pokes? minha nossa senhora, ainda marcou como tibia clássico, sendo que tem derivados. INFORMAÇÂO È TUDO. não é no banco de dados então, eu nunca mexi com derivados, mas deve ser em config.lua, ou em libs.- Consertando script [SKill points system]
se eu não me engano tá por level, tem um level máximo.- Quests
é que eu me entendo melhor, esses baiaks de hoje em dia é tudo bagunçado, da pra entender nada. Tmj!- [CLOSED]
você tá mudando dos samples? e ta recriando o char? se você mudar agora não vai adiantar, você tem que criar um novo char, ou você modifica de todos players que já criaram.- [CLOSED]
mesma jogada, entra no banco e altera lá.- Consertando script [SKill points system]
rapaz, eu consgui resolver um tempão atrás, só não lembro como. mas eu postei ele finalizado aqui no servidor;- !online AREA?
sei não, só se alguém adaptar ai pra você, não tenho conhecimento lua pra isso. <talkaction words="!onlinetime" script="onlinetime.lua"/>- !online AREA?
adiciona em talkactions function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end local split = param:split(",") if not split[4] then player:sendCancelMessage("Insufficient parameters.") return false end local position = Position(tonumber(split[1]), tonumber(split[2]), tonumber(split[3])) if not position then player:sendCancelMessage("Invalid position.") return false end local radius = tonumber(split[4]) if not radius or radius < 1 then player:sendCancelMessage("Invalid radius.") return false end local count = #Game.getSpectators(position, false, true, radius, radius, radius, radius) player:sendTextMessage("This area has " .. count .. " players currently.") return false end exemplo de uso: !onlinetime x,y,z,10 -- - verifica se há jogadores em posição com raio de 10 xey créditos ao Nekiro, por ter criado o script ;d- [CLOSED]
no banco de dados, se teu servidor for mysql, acessa a sua db, vai em players/e edita a quantidade de cap que você quer, quando criarem o char, vai ter aquela X cap lá.- Quests
Olá, estou abrindo um baiak, se alguém tiver mapas para quests, apenas quests, curtas, longas, e quiserem me mandar, agradecido. Não pago por mapas, sinta-se livre para disponibilizar ou n :] - ITEM bugando ao relogar [Object Builder]
Informação Importante
Confirmação de Termo