Ir para conteúdo

Pedriinz

Membro
  • Registro em

  • Última visita

Tudo que Pedriinz postou

  1. C++

    Pedriinz postou uma resposta no tópico em Playground (Off-topic)
    Po cara, deu um loop infinito de "Não" na minha mente agora.
  2. C++

    Pedriinz postou uma resposta no tópico em Playground (Off-topic)
    Poderia explicar o motivo da alteração?
  3. C++

    Pedriinz postou uma resposta no tópico em Playground (Off-topic)
    while(zuera == "true") { If( 1==2) zuera="ends"; } Está errado?
  4. Sim, não digo que você está errado... também lembro de ter viso um servidor com esse arquivo, mas se não me falha a memoria o mesmo não funcionava ou funcionava e eu não sei... kkk Mas provavelmente a datapack que o guri ai está usando é uma baseada na do printer.
  5. Esta versão não possui data/xml/channels.xml Aqui substitua seu help.lua por este; local CHANNEL_HELP = 7 local muted = createConditionObject(CONDITION_CHANNELMUTEDTICKS) setConditionParam(muted, CONDITION_PARAM_SUBID, CHANNEL_HELP) setConditionParam(muted, CONDITION_PARAM_TICKS, 30000) local exhausted = createConditionObject(CONDITION_CHANNELMUTEDTICKS) setConditionParam(exhausted, CONDITION_PARAM_SUBID, CHANNEL_HELP) setConditionParam(exhausted, CONDITION_PARAM_TICKS, 30000) function onSpeak(cid, type, message) local playerAccountType = Player(cid):getAccountType() if(Player(cid):getLevel() == 1 and playerAccountType == ACCOUNT_TYPE_NORMAL) then Player(cid):sendCancelMessage("You may not speak into channels as long as you are on level 1.") return false end if(getCreatureCondition(cid, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)) then Player(cid):sendCancelMessage("You may only ask a question once every 30 seconds.") return false end if(playerAccountType < ACCOUNT_TYPE_TUTOR) then doAddCondition(cid, exhausted) end if(type == TALKTYPE_CHANNEL_Y) then if(playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) then type = TALKTYPE_CHANNEL_O end elseif(type == TALKTYPE_CHANNEL_O) then if(playerAccountType < ACCOUNT_TYPE_TUTOR and not getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) then type = TALKTYPE_CHANNEL_Y end elseif(type == TALKTYPE_CHANNEL_R1) then if(playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not getPlayerFlagValue(cid, PlayerFlag_CanTalkRedChannel)) then if(playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) then type = TALKTYPE_CHANNEL_O else type = TALKTYPE_CHANNEL_Y end end end return type end Puis 30 segundos de exausted, caso queira alterar é só mudar estas linhas; setConditionParam(exhausted, CONDITION_PARAM_TICKS, 30000) setConditionParam(muted, CONDITION_PARAM_TICKS, 30000) diga me se funcionou
  6. Ótimo tutorial, está funcionando corretamente. E sobre o link que quebrou, o pessoal pode entrar no link direto do site, e escolher a boost devida para seu sistema, 32x ou 64x http://boost.teeks99.com/ E como ele indicou a versão boost 1.55.0
  7. Muito bom! Ahh e sobre a opção de desistir de certa task, acho que seria uma boa. Afinal as vezes um jogador pede uma task longa, e acaba desistindo por ser chata, e não pode pegar outra e ai acaba desistindo de fazer tasks com certo NPC. Abraços, e boa sorte.
  8. Qual sera a versão de suporte do script?
  9. Eu e um amigo estávamos precisando deste sisteminha a uns dias atrás então resolvemos "tentar" fazê-lo. Com base em outros scripts chegamos a este script funcional. O que esse sistema faz ? Simples! Ele permite que um lider de uma guild "x" possa trocar os outifits de todos seus membros para o mesmo que ele estiver usando. Isso é útil em um servidor de guerras, ou custom mesmo para organização de quests etc. Especificações: O sistema só é capaz de repassar as cores do addon para os membros da guild, ou seja mesmo que o lider da guild tenha addon full e uma montaria, ao utilizar o comando, apenas "as cores" e o "outifit" do addon serão repassados. Os membros não irão ter o addon full ou montaria apartir deste comando. Instalação: abra seu /data/talkactions/talkactions.xml e adicione a seguinte tag; <talkaction words="!go" script="go.lua"/> Após isso, abra a pasta /data/talkactions/scripts/ crie um arquivo chamado go.lua e adicione o seguinte código dentro; --[[ outfit.lookMount = getField<uint16_t>(L, arg, "lookMount"); outfit.lookAddons = getField<uint8_t>(L, arg, "lookAddons"); outfit.lookFeet = getField<uint8_t>(L, arg, "lookFeet"); outfit.lookLegs = getField<uint8_t>(L, arg, "lookLegs"); outfit.lookBody = getField<uint8_t>(L, arg, "lookBody"); outfit.lookHead = getField<uint8_t>(L, arg, "lookHead");--]] function onSay(cid, words, param, channel) local player = Player(cid) local playerGuildLevel = getPlayerGuildLevel(cid) if(playerGuildLevel < GUILDLEVEL_LEADER) then doPlayerSendCancel(cid, "Você precisa ser lider de sua guild para utilizar este comando!") return TRUE end local playerGuild = getPlayerGuildId(cid) if(playerGuild == FALSE) then doPlayerSendCancel(cid, "Desculpe, você não possuí uma guild.") return TRUE end local outfit = getCreatureOutfit(cid) outfit.lookMount = 0 outfit.lookAddons = 0 local no = 0 local members = getOnlinePlayers() for i = 1,#members do if(getPlayerGuildId(members[i]) == playerGuild and cid ~= members[i]) then if canPlayerWearOutfit(members[i], outfit.lookType, addons) then outfit.lookAddons = outfit.lookAddons doCreatureChangeOutfit(members[i], outfit) else outfit.lookAddons = getCreatureOutfit(members[i]).lookAddons doCreatureChangeOutfit(members[i], outfit) end if player:hasMount(getCreatureOutfit(members[i]).lookMount) then outfit.lookMount = 0 doCreatureChangeOutfit(members[i], outfit) else outfit.lookMount = 0 doCreatureChangeOutfit(members[i], outfit) end no = no + 1 doPlayerSendCancel(cid, ""..no.." tiveram suas outifits mudadas com sucesso!") end end return true end Espero que ajude você que esteja lendo agora, e se ajudar... por favor não esqueça de avaliar abaixo e dar um rep+ não custa nada, e mostra que este conteúdo não está sendo postado em vão. See ya
  10. Crie um arquivo.html em seu gesior. E tente utilizar este: <html> <head> <title> Paypal Payment </title> <style> input {border:1px solid #000;background-color:#ffffff;padding:5px;} input:focus{box-shadow: 0px 0px 2px 1px #000;} button { border: 1px solid #999; background-color:#eee; padding: 5px; font-size:13px; font-weight: bold;} button:hover { border: 1px solid #000; background-color:#eee; padding: 5px;} </style> </head> <body style="width:430px; border-width:5px; border-style:solid; padding:10px;"> <h1> Payment Methods </h1> <!-- Título --> <hr /> <h2> <li> Payment Paypal </li> </h2> <form target="paypal" method="post" action="https://www.paypal.com/cgi-bin/webscr"> <input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="business" value="[email protected]" /> <!-- Seu email do paypal --> <input type="hidden" name="item_name" value="Zartha Donate"> <!-- Descrição do que você esta vendendo --> <input type="hidden" name="amount" value="100"/> <input type="hidden" name="currency_code" value="USD"/> <input type="hidden" name="no_note" value="0"/> <input type="hidden" name="no_shipping" value="1"/> <input type="hidden" name="rm" value="0"/> <input name="custom" type="text" value="" autocomplete="off" required="true" placeholder="Character:" size="15" maxlength="15"> USD <input name="amount" type="text" value="" autocomplete="off" required="true" placeholder="Value:" size="5" maxlength="5"> <button type="submit"> Donate </button> </form> <hr /> <font color="red"><b> Attention: </b></font> Making payment using paypal, please send us an email to <b>[email protected]</b> with all payment details with printscreen (.jpg .png). After this, we gonna give your points. <!-- Defina email para confirmar pagamento --> <p> <p> <p> <p> <hr /><center><b>Example payment:<br></b> <font color="red">1 US$ = 2 Points</center></b></font> <hr /> <font color="red"><b> Rules: </b></font><br><br> <b>Item 1:</b> The donator is aware that the donation can not be returned.<br> <b>Item 2:</b> Premium Points (Virtual Item) will be delivered within 24 hours in donor's account.<br> <b>Item 3:</b> The donator is aware that not is buying nothing, he is making one donate, and as a gratuity we will add Premium Points (virtual item) in your account. <br><center><b>If you accept the rules stated above, just continue your donation.</b></center><br><p> Zartha.com.br </body> </html> </html> Se te ajudar de alguma forma, rep+
  11. Resolvi após a ajuda de outro cara de outro fórum. E por mais louco que seja, eu apenas deletei o arquivo.lua do primeiro script e recriei o arquivo com os mesmo códigos e funcionou. Tipo magica! Que louco kkk
  12. <talkaction words="!addon" separator=" " script="alladdons.lua"/> <talkaction words="!mount" separator=" " script="allmounts.lua"/> function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["knight"]={139}, ["noblewoman"]={140}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={336},["wayfarer"]={366}, ["afflicted"]={431}, ["elementalist"]={433}, ["deepling"]={464}, ["insectoid"]={466}, ["red baron"]={471}, ["crystal warlord"]={513}, ["soil guardian"]={514}, ["demon"]={542} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["knight"]={131}, ["nobleman"]={132}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={335}, ["wayfarer"]={367}, ["afflicted"]={430}, ["elementalist"]={432}, ["deepling"]={463}, ["insectoid"]={465}, ["red baron"]={472}, ["crystal warlord"]={512}, ["soil guardian"]={516},["demon"]={541} } local player, param = Player(cid), string.lower(param) local addondoll_id = 9693 if player:getItemCount(addondoll_id) > 0 then if param ~= "" and maleOutfits[param] and femaleOutfits[param] then local outfit = player:getSex() == 0 and femaleOutfits[param][1] or maleOutfits[param][1] if not player:hasOutfit(outfit, 3) then player:removeItem(addondoll_id, 1) player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!") Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS) player:addOutfitAddon(outfit, 3) else player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem este addon") end else player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo esta errado!") end else player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce nao tem addon doll!") end end deixei o script assim, e o addon doll começou funcionar ._. não entendi. porém ainda to sem solução pro mount doll.
  13. Depois da atualização da TFS, esses scripts ficaram assim: [Warning - Event::checkScript] Can not load script: scripts/alladdons.lua data/talkactions/scripts/alladdons.lua:1: unexpected symbol near '�' [Warning - Event::checkScript] Can not load script: scripts/allmounts.lua data/talkactions/scripts/allmounts.lua:1: unexpected symbol near '�' Alguem poderia ajudar ? alladddons.lua function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["knight"]={139}, ["noblewoman"]={140}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={336},["wayfarer"]={366}, ["afflicted"]={431}, ["elementalist"]={433}, ["deepling"]={464}, ["insectoid"]={466}, ["red baron"]={471}, ["crystal warlord"]={513}, ["soil guardian"]={514}, ["demon"]={542} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["knight"]={131}, ["nobleman"]={132}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={335}, ["wayfarer"]={367}, ["afflicted"]={430}, ["elementalist"]={432}, ["deepling"]={463}, ["insectoid"]={465}, ["red baron"]={472}, ["crystal warlord"]={512}, ["soil guardian"]={516},["demon"]={541} } local player, param = Player(cid), string.lower(param) local addondoll_id = 9693 if player:getItemCount(addondoll_id) > 0 then if param ~= "" and maleOutfits[param] and femaleOutfits[param] then local outfit = player:getSex() == 0 and femaleOutfits[param][1] or maleOutfits[param][1] if not player:hasOutfit(outfit, 3) then player:removeItem(addondoll_id, 1) player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!") Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS) player:addOutfitAddon(outfit, 3) else player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem este addon") end else player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo esta errado!") end else player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce nao tem addon doll!") end end allmounts.lua function onSay(cid, words, param) local table = { -- ["mount"] = {price = x, id = x}, ["black sheep"] = {price = 0, id = 4}, ["crystal wolf"] = {price = 0, id = 16}, ["draptor"] = {price = 0, id = 6}, ["dromedary"] = {price = 0, id = 20}, ["gnarlhound"] = {price = 0, id = 32}, ["hellgrip"] = {price = 0, id = 39}, ["kingly deer"] = {price = 0, id = 18}, ["lady bug"] = {price = 0, id = 27}, ["manta ray"] = {price = 0, id = 28}, ["midnight panther"] = {price = 0, id = 5}, ["racing bird"] = {price = 0, id = 2}, ["rapid boar"] = {price = 0, id = 10}, ["scorpion king"] = {price = 0, id = 21}, ["panda"] = {price = 0, id = 19}, ["tiger slug"] = {price = 0, id = 14}, ["tin lizzard"] = {price = 0, id = 8}, ["titanica"] = {price = 0, id = 7}, ["uniwheel"] = {price = 0, id = 15}, ["widow queen"] = {price = 0, id = 1} } local player, param = Player(cid), string.lower(param) local mountdoll_id = 13030 -- id do addon doll local t = table[param] if player:getItemCount(mountdoll_id) > 0 then if param ~= "" and t then if not player:hasMount(t.id) then player:sendTextMessage(MESSAGE_INFO_DESCR, "Sua mount foi adicionada!") player:removeItem(mountdoll_id, 1) Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS) player:addMount(t.id) else player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem esta mount.") end else player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!") end else player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem um mount doll!") end end
  14. Em meu servidor os jogadores criam nick com muitas letraas e eu queria limitar isso. Queria tirar também para cria nick de monstro, e diminui as letras que criam char. Se alguem poder me ajudar por favor... Aqui está meu script
  15. To com o problema de pessoas entrarem no meu servidor e ligar antipush com 8 chares em stack. Isso acaba gerando CRASH no servidor. Alguem poderia me dizer como arrumar isso ? Acredito ser na source, mas alguem poderia ajudar ? obrgdo
  16. Pedriinz postou uma resposta no tópico em Suporte Tibia OTServer
    Estou com um problema nesse script: local config = { [35] = {15546, 1}, [31] = {15492, 1}, [32] = {9971, 1}, [33] = {7591, 2}, [34] = {7590, 2}, [30] = {2152, 2}, [36] = {15487, 10}, [37] = {5022, 1}, [38] = {2144, 2}, } function onUse(cid, item) local chance_growing = {} for chance, _ in pairs(config) do table.insert(chance_growing, chance) end table.sort(chance_growing, function(a, b) return a > b end) local chance = 0 for _, v in pairs(chance_growing) do if math.random(100) < v then chance = v break end end local item = config[chance] if item then doPlayerAddItem(cid, item[1]) doRemoveItem(item.uid, 15572,1) doSendMagicEffect(getThingPos(cid), 13) doRemoveItem(item.uid, 1) else end return true end O que aconcete é que o Gooey Mass está sendo usado e não está sumindo quando usado. Uso infinitas vezes e ele continua ali, de boas. Alguém pode me ajudar?
  17. Schiffert, você poderia me ajudar fazer isso ? Tenho um servidor 10.41 e queria atualizar também, os items pra não dar debug. Obrigado
  18. Não adianta, já tentei. Alguma solução a mais? =\
  19. Estou com um bug muito chatinho... já tentei de tudo mais não consigo resolver. Acontece que em meu servidor, eu consigo criar guild no gesior tudo normal. porém não aparece os botões de invitar jogador, SIMPLESMENTE não tem como invitar. é como se o criador da guild não tivesse permissão de invitar, seila. Já testei uns 2 gesior aqui do tibiaking e também já testei o gesior ORIGINAL direto do Github, e o erro permanece, então suponho que não seja o code guilds.php e sim alguma configuração no config.lua ou na database (mysql). Alguém pode me ajudar ? ;s
  20. Pedriinz postou uma resposta no tópico em Websites
    ana sabe dizer por que na pagina de GUILDS não aparece os botões para invitar players?/ mesmo quem cria a conta não aparece, nem nd ja tentei trocar de guilds.php mais não funciona nada.
  21. Pedriinz postou uma resposta no tópico em Códigos C++
    Alguem pode me ajudar? Quando tento compilar no Ubuntu 10.04 da esses erros; Configure complete, now you may type './build.sh'. root@melquiserv:/home/source# make make all-am make[1]: Entering directory `/home/source' g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 - fomit-frame-pointer -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextr a -Werror -Wno-strict-aliasing -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp cc1plus: warnings being treated as errors In file included from actions.cpp:23: player.h:185: error: type qualifiers ignored on function return type player.h:186: error: type qualifiers ignored on function return type player.h:188: error: type qualifiers ignored on function return type player.h:196: error: type qualifiers ignored on function return type player.h:205: error: type qualifiers ignored on function return type player.h:226: error: type qualifiers ignored on function return type player.h:238: error: type qualifiers ignored on function return type In file included from actions.cpp:23: player.h:247: error: type qualifiers ignored on function return type player.h:257: error: type qualifiers ignored on function return type player.h:268: error: type qualifiers ignored on function return type player.h:277: error: type qualifiers ignored on function return type make[1]: *** [actions.o] Error 1 make[1]: Leaving directory `/home/source' make: *** [all] Error 2 root@melquiserv:/home/source#
  22. Tirei a duvida, não funciona em 1.0 não nem a database, é atualizada para tal também... porém otimo site
  23. Quando tento não passa do config.lua :/ File config.lua loaded from /home/warking/config.lua and it's not valid TFS config.lua file. Go to STEP 1 - select other directory. If it's your config.lua file from TFS contact with acc. maker author.

Informação Importante

Confirmação de Termo