
wedyhiu2
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
wedyhiu2 deu reputação a Etherious em Tirar Exhausted de Spell.cppBoa noite a todos, me deparo com um problema um pouco chato e queria a ajuda de vocês, arrumando os Exhausted do meus servidor me deparei com um problema, em que uma spell de heal, não se utiliza com uma spell de combo, etcc.. logo percebi que estavam separados em groups, mesmo editando o xml , uma não consegue ser usada junto com a outra, então comecei a pesquisar na minha source e me deparei com algumas linhas que poderiam solucionar o meu problema, que é usar as 3 spells ao mesmo tempo, para isso tenho que tirar a verificação que separa os 3 grupos para fazer ignorar os mesmos de forma, as 3 trabalhe em conjunto. Alguém poderia me ajudar ?
Spell.cpp
void Spell::postSpell(Player* player) const { if(!player->hasFlag(PlayerFlag_HasNoExhaustion) && exhaustion > 0) player->addExhaust(exhaustion, isAggressive ? EXHAUST_COMBAT : EXHAUST_HEALING); if(isAggressive && !player->hasFlag(PlayerFlag_NotGainInFight)) player->addInFightTicks(false); postSpell(player, (uint32_t)getManaCost(player), (uint32_t)getSoulCost()); }
o que eu quero fazer aqui, e retirar a verificação e fazer os 3 tipos diferentes trabalhar junto.
-
wedyhiu2 recebeu reputação de Celulose em Vocation-Id sendo trocada!ALGUÉM SABE O POR QUE DAS VOCAÇÕES FICAREM TROCANDO NA TFS 0.4 QUE JÁ CONSEGUIU RESOLVER ?
-
wedyhiu2 deu reputação a KotZletY em Vocation-Id sendo trocada!@wedyhiu2 transformar:
if voc then if getPlayerLevel(cid) >= voc[1] then doPlayerSetVocation(cid, voc[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Transformou!") local outfit = {lookType = voc[3]} doCreatureChangeOutfit(cid, outfit) doSendMagicEffect(getCreaturePosition(cid), voc[4]) setPlayerStorageValue(cid, storage, os.time()+time) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para transformar.") end else doPlayerSendCancel(cid, "Voce nao pode se Transformar!") end
doPlayerSetVocation(cid, voc[2])
Reverter:
if voc then if getPlayerLevel(cid) >= voc[1] then doPlayerSetVocation(cid, voc[2]) local outfit = {lookType = voc[3]} doCreatureChangeOutfit(cid, outfit) doSendMagicEffect(getCreaturePosition(cid), voc[4]) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para transformar.") end else doPlayerSendCancel(cid, "Voce nao pode Reverter") end
Ambos estão trocando de vocações, "os todos os ids" são usados nesse script e na spell.xml, agora me diga você.
Pra quê 30 vocações goku ?
1 já basta, " a mas tens as spells que usa todas as vocações", ué, coloca a "vocação goku" nas spells de goku, sem precisar de tantas vocações, ou seja vai limpar o servidor.
Meu narutibia também usava esses scripts, apaguei e criei um própio.
O narutibia do autor do tópico da talkactions também passou por isso foi ae que ele pediu que criassem essa talk que usa só 1x vocação, pra não precisar de várias.
Faça o que eu lhe indiquei e faça um backup, se não gostar, é só voltar para o que estava antes!!
-
wedyhiu2 recebeu reputação de Mathias Kenfi em Vocation-Id sendo trocada!e complicado cara esse problema persiste a mais de 1 ano e nunca consegui resolver, sim e de Dragon ball, se o servidor crasha ele troca as vocaçoes embaralha tudo, falarem que e staorage mais e algo mais
-
wedyhiu2 recebeu reputação de Mathias Kenfi em Vocation-Id sendo trocada!ALGUÉM SABE O POR QUE DAS VOCAÇÕES FICAREM TROCANDO NA TFS 0.4 QUE JÁ CONSEGUIU RESOLVER ?
-
wedyhiu2 recebeu reputação de Hadggar em Vocation-Id sendo trocada!ALGUÉM SABE O POR QUE DAS VOCAÇÕES FICAREM TROCANDO NA TFS 0.4 QUE JÁ CONSEGUIU RESOLVER ?
-
wedyhiu2 deu reputação a KotZletY em Map Tracker 8.6Cabei de fazer o upload:
Download: https://www.sendspace.com/file/tvugrt
Scan: https://www.virustotal.com/#/file/6add57455292d27694462501523a98afce240f386d6fe34384c52f6cb03ff86c/detection
-
wedyhiu2 deu reputação a Vodkart em Bless Para players premiumlocal config = { -- [bless] = preços [5] = {"Blessing", 500000} } 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 local premium = true for k, v in pairs(config) do if v[1]:lower():find(msg:lower()) then selfSay("You are sure?", cid) talkState[talkUser] = k end if msgcontains(msg:lower(), "yes") then if talkState[talkUser] == k then if premium and isPremium(cid) then if not getPlayerBlessing(cid, k) then if doPlayerRemoveMoney(cid, v[2]) then doPlayerAddBlessing(cid, k) selfSay("You received the bless " .. v[1]:gsub("The ", "", 1) .. "!", cid) doSendMagicEffect(getThingPos(cid), 10) else selfSay("You no have money.", cid) end else selfSay("You have " .. v[1] .. ".", cid) end else selfSay("You need premium account.", cid) end talkState[talkUser] = 0 end end end if msgcontains(msg:lower(), "no") and talkState[talkUser] >= 1 then selfSay("Bye!!", cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
wedyhiu2 deu reputação a Zanrix em Bless Para players premiumlocal config = { -- [bless] = preços [5] = {"Blessing", 500000} } 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 for k, v in pairs(config) do if v[1]:lower():find(msg:lower()) then selfSay("You are sure?", cid) talkState[talkUser] = k end if msgcontains(msg:lower(), "yes") then if talkState[talkUser] == k then if getPlayerPremiumDays(cid) > 0 then if not getPlayerBlessing(cid, k) then if doPlayerRemoveMoney(cid, v[2]) then doPlayerAddBlessing(cid, k) selfSay("You received the bless " .. v[1]:gsub("The ", "", 1) .. "!", cid) doSendMagicEffect(getThingPos(cid), 10) else selfSay("You no have money.", cid) end else selfSay("You have " .. v[1] .. ".", cid) end else selfSay("You do not have premmium account.", cid) end talkState[talkUser] = 0 end end end if msgcontains(msg:lower(), "no") and talkState[talkUser] >= 1 then selfSay("Bye!!", cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
wedyhiu2 deu reputação a MaTTch em Modificar scripttext = text .. line .. " - " .. spell.name .. " | Mana: " .. spell.mana .. ":\n" -->
text = text .. line .. " - " .. spell.name .. " | Mana: " .. spell.mana .. " ML: " .. spell.mlevel .. "\n"
-
wedyhiu2 deu reputação a gabirucola em (Resolvido)[RESOLVIDO] healar mana em area PZ@wedyhiu2
tbm estou começando com meu DBO, infelizmente n consigo deixar o mizeravi Online, kk
vou fazer um Upload de um executavel sem muitas modificações, pra testar em seu servidor
ele funcionando as Effects até 255 e healando em area pz. ai vc testa pra ver se funciona.
Obs: pode demorar um pouco pois minha net é ruim
@wedyhiu2
este executavel está com o minimo possivel de modificações.
tendo a capacidade de 255 Effects ativada nas Sources
Healando em Protect Zones.
Obs: use está por enquanto até conseguir arrumar as suas Sources.
aqui está o download do executavel
http://www.mediafire.com/file/svoq0drc69qpk1r/DBO+2.0.exe
Scan do arquivo 15:12:2016
https://virustotal.com/pt/file/e3244b59a24c36b41c8f7e8b5e0103c6d6e45967b75e1643ff5a4cff53a290b7/analysis/1481838806/
-
wedyhiu2 deu reputação a gabirucola em (Resolvido)[RESOLVIDO] healar mana em area PZeu já tinha resolvido este problema, más deixei o topico aberto para ajudar outros players.
e era essa função msm que precisava.
REP+ pela ajuda
@wedyhiu2
sim, tem que editar nas Sources msm. não cheguei a editar minhas Sources pois foi um amigo que compilou pra min,
então só troquei o velho executavel pelo novo compilado e funcionou.
provavelmente é está função ai citada no poste acima, pois me lembro de ver uma similar a está quando meu amigo estava arrumando minhas Sources.
-
wedyhiu2 recebeu reputação de gabirucola em (Resolvido)Trocar premium points no tradeachei um script similar :
pelo que eu intendi através de um comando o player transfere os pontos para outro players, porém queria usar um "X" item por "trade" para efetuar a troca dos points se alguém puder ajudar..
Adicione em 050-function :
function getPlayerVipPoints(cid) local Info = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. "") if Info:getID() ~= LUA_ERROR then local Points= Info:getDataInt("premium_points") Info:free() return Points end return LUA_ERROR end function doPlayerAddVipPoints(cid, points) local dif = getPlayerVipPoints(cid) + points if dif >= 0 then db.query("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. points .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";") return TRUE end return FALSE end function doPlayerRemoveVipPoints(cid, points) local dif = getPlayerVipPoints(cid) - points if dif >= 0 then db.query("UPDATE `accounts` SET `premium_points` = `premium_points` - " .. points .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";") return TRUE end return FALSE end depois crie um aquivo .lua chamado transfer.lua em Talkactions/scripts
function onSay(cid, words, param, channel) local t = param:explode(",") local player = getPlayerByName(t[1]) local m = tonumber(t[2]) if param == "" then return doPlayerSendCancel(cid, "Command requires param.") elseif not isPlayer(player) then return doPlayerSendCancel(cid, "Sorry, not possible.") end if(not m) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Valor nao Digitado.\n Ex: /transfer "..getPlayerName(cid)..", 20") return TRUE end if getPlayerVipPoints(cid) < m then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Voce nao tem pontos suficiente!!") end doPlayerRemoveVipPoints(cid, m) doPlayerAddVipPoints(player, m) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce Transferiu "..m.." pontos para "..getPlayerName(player)..".") f = io.open("data/logs/Pontos.txt", "a+") f:write("Player: "..getPlayerName(cid).." transferiu "..m.." pontos para "..getPlayerName(player).."\n\n----------------------------------------------------------\n") f:close() return true end
em talkaction.xml adicione a tag :
<talkaction words="/transfer" event="script" value="transfer.lua"/>
bom, achei interessante e estou postando aqui no fórum se alguém quiser nós ajudar analisar o script.
pois o que eu queria era que fosse usado um "X" item para efetuar a troca dos pontos com um pré valor definido ex: 10 15 20 45 50 Scroll Points , que usando este "Scroll Points, com seu respectivo valor" ele efetuasse a troca dos points. colocando isso o script ficaria perfeito " bom pelo menos pra min" rsr
-
wedyhiu2 deu reputação a Rusherzin em Não perdendo Aol após morrerTu comprou esse AoL ou criou ele com o /i ? Quando tu cria com comando, ele vem com várias cargas.
-
wedyhiu2 deu reputação a The King of Madness em Contar segundos do exhaustedlogo abaixo de
coloque
na linha exhaustion.set(cid, 23000, 12 -- O tempo que vai levar para usar a magia novamente)
-
wedyhiu2 deu reputação a Sanieg em Monstros Pararam De atacarOpah... Boa noite.
Então amigo, se o caso é que alguns monstros te causam dano e outros não, mesmo com você no target, seu equipamento pode estar absorvendo o damage.
Mas, dependendo de ser um monstro especifico, pode ser que algum script onCombat() esteja com erros. Dessa forma, você recebe o target, mas sem nenhum damage. (Vale lembrar que pode ser o script o próprio monstro*)..
Espero ter ajudado.