
Histórico de Curtidas
-
tavarb recebeu reputação de Bruxo Ots em [Pedido] Ganhar item ao upar um nível.Utilizo tfs 0.3.6, mas consigo dar uma adaptada nessa script sua! Muito obrigado amigo.
-
tavarb deu reputação a Bruxo Ots em [Pedido] Ganhar item ao upar um nível.Eu tenho esse que é usado pela otx.
Versão 1.3x otx-tfs
Explicando como colocar, tu pega e add as tags no script depois de then e se for adicionais mais leveis, mude a storage.
fiz aqui e funcionou, parada e simples linda e funciona, se for pra outra versão não deve ser dificil modificar.
Sempre que for adicionar mais leveis, veja a storage e muda pra nao ficar igual.
if getPlayerLevel(cid) >= 8 and getPlayerStorageValue(cid, 99963) ~= 1 then Se quiser que o player ganhe grana tbm. doPlayerSetBalance(cid, getPlayerBalance(cid) + 2000) Item doPlayerAddItem(cid, 5942) Item doPlayerAddItem(cid, 5942) Item doPlayerAddItem(cid, 5942) Item doPlayerAddItem(cid, 5942) Aqui e a storage setPlayerStorageValue(cid, 99963, 1) doPlayerSendTextMessage(cid, 19, "You have received 2000 gold in your bank for advancing to Level 8.")
function onAdvance(cid, skill, oldlevel, newlevel) if getPlayerLevel(cid) >= 8 and getPlayerStorageValue(cid, 99963) ~= 1 then doPlayerSetBalance(cid, getPlayerBalance(cid) + 2000) setPlayerStorageValue(cid, 99963, 1) doPlayerSendTextMessage(cid, 19, "You have received 2000 gold in your bank for advancing to Level 8.") elseif getPlayerLevel(cid) >= 40 and getPlayerStorageValue(cid, 99964) ~= 1 then doPlayerSetBalance(cid, getPlayerBalance(cid) + 10000) setPlayerStorageValue(cid, 99964, 1) doPlayerSendTextMessage(cid, 19, "You have received 10000 gold in your bank for advancing to Level 40.") elseif getPlayerLevel(cid) >= 50 and getPlayerStorageValue(cid, 99965) ~= 1 then doPlayerSetBalance(cid, getPlayerBalance(cid) + 30000) setPlayerStorageValue(cid, 99965, 1) doPlayerSendTextMessage(cid, 19, "You have received 30000 gold in your bank for advancing to Level 50.") elseif getPlayerLevel(cid) >= 75 and getPlayerStorageValue(cid, 99966) ~= 1 then doPlayerSetBalance(cid, getPlayerBalance(cid) + 60000) setPlayerStorageValue(cid, 99966, 1) doPlayerSendTextMessage(cid, 19, "You have received 60000 gold in your bank for advancing to Level 75.") elseif getPlayerLevel(cid) >= 100 and getPlayerStorageValue(cid, 99969) ~= 1 then doPlayerSetBalance(cid, getPlayerBalance(cid) + 100000) setPlayerStorageValue(cid, 99969, 1) doPlayerSendTextMessage(cid, 19, "You have received 10000 gold in your bank for advancing to Level 100.") elseif getPlayerLevel(cid) >= 150 and getPlayerStorageValue(cid, 99970) ~= 1 then doPlayerAddItem(cid, 5942) setPlayerStorageValue(cid, 99970, 1) doPlayerSendTextMessage(cid, 19, "You have received one blessed wooden stake because you reached level 150.") elseif getPlayerLevel(cid) >= 200 and getPlayerStorageValue(cid, 99971) ~= 1 then doPlayerAddItem(cid, 2195) setPlayerStorageValue(cid, 99971, 1) doPlayerSendTextMessage(cid, 19, "You have been awarded with 1 boots of haste for reaching level 200.") end return TRUE end
-
tavarb recebeu reputação de Hokograma em [DUVIDA] O que os Bots precisam crucialmente para funcionar dentro de um client?É complicado igual pokémon, eu recomendaria focar em sistemas de denuncias partindo dos jogadores
-
tavarb deu reputação a Crypter em (Resolvido)[ADAPTAÇÃO] Potion por %porcentagemEditado o copia de cima, testa agora
-
tavarb deu reputação a Crypter em (Resolvido)[AJUSTE] Fishing RodAbre o client com o object builder e marca a opção multi use no item
-
tavarb deu reputação a Crypter em [ADAPTAÇÃO] Não desequipar item caso esteja usando.function onDeEquip(cid, item, slot) local storage = x if getPlayerStorageValue(cid, storage) > 0 then doPlayerSendTextMessage(cid, 18, "Sorry, you cannot unequip this item.") return false end return true end
-
tavarb deu reputação a Djonga em (Resolvido)[AJUDA] Pokémon Iconlib/configuration.lua
procura uma linha parecida com isso
["makuhita"] = {effect = 188, on = 14950, use = 14951, off = 14951, all = {14950, 14951}}, on= sprite do pokémon vivo
use= sprite do pokémon vivo mas pra fora da pokeball
off= sprite do pokémon morto
-
tavarb deu reputação a
PedroSTTem (Resolvido)[CORREÇÃO] Não surfar enquanto usa bicicletalocal outfit = 123 -- Id da outfit da bike if getCreatureOutfit(cid) == outfit then doPlayerSendCancel(cid, "Dismount to surf.") doTeleportThing(cid, fromPosition, false) return false end Tenta por pela outfit da bike ... se não der certo tente trocar de return false para return true
-
tavarb deu reputação a Yokodededededexd em (Resolvido)[PEDIDO] Conexão entre database e servidorhttps://ibb.co/fLn7gw
-
tavarb deu reputação a Diego Rulez em (Resolvido)TFS para servidorEntão, é muito difícil você encontrar isso já pronto. Simplesmente porque é pesado já que é um executável e com dlls.. O que você precisa fazer é pegar as sources (que já vem com o servidor) e transforma-las no executável. Esse processo chama-se compilação. É um processo muito chato de ser feito em Windows, por isso quando eu desenvolvo algum OT eu já faço direto em um VPS barato de 15 reais, se um dia eu for abrir eu contrato um melhor.
Estou dizendo isso porque pra mim é uma perca de tempo instalar o Visual Studio e seus complementos para gerar o executável. Agora em Linux é 5 minutos.
O próprio cara que disponibilizou o servidor explica como compilar as sources:
-
tavarb deu reputação a L3K0T em (Resolvido)[AJUSTE] Jogar item fora enquanto usaadiciona isso no script da bike
if getPlayerSlotItem(cid, CONST_SLOT_RING).uid ~= item.uid then
return doPlayerSendCancel(cid, "Voce precisa por a (BIKE) no lugar correto.")
end
-
tavarb deu reputação a
Nazoem (Resolvido)[AJUSTE] Speed da bikeFiz corrido, testa aí:
function onUse(cid, item, fromPosition, itemEx, toPosition) local sBike = 2547 local speed = 20 -- speed que você quer extra local t = { [16689] = {article='a', name='Bike', text='', dtext='', s=9999, condition=bikeCondition}, } function BikeSpeedOn(cid,nSpeed) setPlayerStorageValue(cid,sBike,getCreatureSpeed(cid)) doChangeSpeed(cid,getCreatureSpeed(cid)+nSpeed) end function BikeSpeedOff(cid) doChangeSpeed(cid,-getCreatureSpeed(cid)) doChangeSpeed(cid,getPlayerStorageValue(cid,sBike)) end local v, r = getCreaturePosition(cid), t[item.itemid] local s = r.s local pos = {x = v.x, y = v.y, z = v.z} if r then if getPlayerStorageValue(cid, 25000) == 5 then return end if getPlayerStorageValue(cid, 23000) == 5 then return end if getPlayerStorageValue(cid, 17001) == 1 or getPlayerStorageValue(cid, 63215) == 1 or getPlayerStorageValue(cid, 17000) == 1 then doPlayerSendCancel(cid, "You can't use bike while ride/fly/surf.") return true end if getPlayerSlotItem(cid, CONST_SLOT_AMMO).uid == item.uid then doPlayerSendCancel("Não está no slot correto") return true end if getPlayerStorageValue(cid, s) <= 0 then doCreatureSay(cid, r.text, 19) setPlayerStorageValue(cid, s, 1) BikeSpeedOn(cid,speed) if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 2293, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, -1) ---Female else doSetCreatureOutfit(cid, {lookType = 2292, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, -1) --- Male end elseif getPlayerStorageValue(cid, s) == 1 then doCreatureSay(cid, r.dtext, 19) setPlayerStorageValue(cid, s, 0) BikeSpeedOff(cid) return doRemoveCondition(cid, CONDITION_OUTFIT) else return doPlayerSendCancel(cid, 'You can\'t do this.') end else return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'Report bugs in Bike system.') end end
-
tavarb deu reputação a Mono Singed em (Resolvido)[AJUSTE] Color looktypeSó mudar o if do teu script pra esse:
player_outfit = getCreatureOutfit(cid) if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 2293, lookHead = player_outfit.lookHead, lookAddons = 0, lookLegs = player_outfit.lookLegs, lookBody = player_outfit.lookBody, lookFeet = player_outfit.lookFeet}, -1) ---Female else doSetCreatureOutfit(cid, {lookType = 2292, lookHead = player_outfit.lookHead, lookAddons = 0, lookLegs = player_outfit.lookLegs, lookBody = player_outfit.lookBody, lookFeet = player_outfit.lookFeet}, -1) --- Male end -
tavarb deu reputação a
Nazoem (Resolvido)[PEDIDO] NPC que troca itens por dias premiumAqui, meu chapa:
config = { item = 2145, -- id do diamond min = 7 } 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, 'TROCAR') or msgcontains(msg, 'trocar')) then npcHandler:say("Quantos diamonds você deseja trocar por dias premium?", cid) talkState[cid] = 1 elseif talkState[cid] == 1 then msg = tonumber(msg) if(doPlayerRemoveItem(cid,config.item,msg) and isNumber(msg) and msg >= config.min)then doPlayerAddPremiumDays(cid, msg) str = "Agora você possui mais " .. msg .. " dia(s) premium." else str = "Você não possui essa quantia, ou ofereceu menos que "..config.min.." diamonds." end npcHandler:say(str, cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
tavarb deu reputação a
Nazoem (Resolvido)[PEDIDO] NPC que troca itens por dias premiumBasicamente, @tavarb, o querido player digita quantos diamonds ele quer trocar por premmy (onde cada diamond é um dia premmy), e o npc troca pra ele
-
tavarb deu reputação a
Nazoem (Resolvido)[PEDIDO] NPC que troca itens por dias premiumNa pasta npc adicione o seunpc.xml com o seguinte conteúdo:
<?xml version="1.0"?> <npc name="SeuNPC" script="data/npc/scripts/seunpc.lua" walkinterval="50000" floorchange="0"> <health now="100" max="100"/> <look type="63" head="0" body="0" legs="0" feet="0" addons="3"/> <parameters> <parameter key="message_greet" value="Olá! |PLAYERNAME|, deseja {trocar} seus diamonds por dias premium?..." /> </parameters> </npc>
Em npc/scripts/ adicione o seunpc.lua com o seguinte conteúdo:
config = { item = 2145 -- id do diamond } 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, 'TROCAR') or msgcontains(msg, 'trocar')) then npcHandler:say("Quantos diamonds você deseja trocar por dias premium?", cid) talkState[cid] = 1 elseif talkState[cid] == 1 then msg = tonumber(msg) if(doPlayerRemoveItem(cid,config.item,msg) and isNumber(msg) and msg > 0)then doPlayerAddPremiumDays(cid, msg) str = "Agora você possui mais " .. msg .. " dia(s) premium." else str = "Você não possui essa quantia." end npcHandler:say(str, cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
tavarb deu reputação a Djonga em [dxp] Trade center teleportsim
-
tavarb deu reputação a Leohige em [AJUSTE] NPC, certeza de trocaTesta este código, se der algum erro poste ele