Tudo que poko360 postou
-
(Resolvido)MAX de magic lvl 156 como aumentar?
tem mts players com ml 156, pra tirar 1 por 1 vai demorar mt , só tem dessa forma?
-
(Resolvido)MAX de magic lvl 156 como aumentar?
eu achei isso aki em player.cpp mas nao sei editar =\ ajuda pf { if(!amount) return; uint64_t currReqMana = vocation->getReqMana(magLevel), nextReqMana = vocation->getReqMana(magLevel + 1); if(currReqMana > nextReqMana) //player has reached max magic level return; if(useMultiplier) amount = uint64_t((double)amount * rates[SKILL__MAGLEVEL] * g_config.getDouble(ConfigManager::RATE_MAGIC)); bool advance = false; while(manaSpent + amount >= nextReqMana) { amount -= nextReqMana - manaSpent; manaSpent = 0; magLevel++; char advMsg[50]; sprintf(advMsg, "You advanced to magic level %d.", magLevel); sendTextMessage(MSG_EVENT_ADVANCE, advMsg); advance = true; CreatureEventList advanceEvents = getCreatureEvents(CREATURE_EVENT_ADVANCE); for(CreatureEventList::iterator it = advanceEvents.begin(); it != advanceEvents.end(); ++it) (*it)->executeAdvance(this, SKILL__MAGLEVEL, (magLevel - 1), magLevel); currReqMana = nextReqMana; nextReqMana = vocation->getReqMana(magLevel + 1); if(currReqMana > nextReqMana) { amount = 0; break; } } if(amount) manaSpent += amount; uint32_t newPercent = Player::getPercentLevel(manaSpent, nextReqMana); if(magLevelPercent != newPercent) { magLevelPercent = newPercent; sendStats(); } else if(advance) sendStats(); }
-
(Resolvido)MAX de magic lvl 156 como aumentar?
MAX de magic lvl 156 como aumentar? vi em outro post que era nas sources, mas queria saber qual o local que fika obrigado desde ja
-
GUILD COM BUG
eu crio uma guild, e quero sair dela pra criar outra (2) , só que quando vou criar outra (2), nao posso , pq eu to na guild (1) e nao tem como sair da guild(1) mesmo com !disband,
-
GUILD COM BUG
Ajuda, as guilds do meu ot tao bugadas 1 player cria uma guild chamada "Fulano" ai ele resolve sair dessa guild (!disband) e cria uma guild chamada "Ciclano" so que quando ele vai invitar um cara, ele diz que eh da guild de "Fulano" ( dai nao tem como sair dessa primeira guild ) entenderam? ajuda se possivel ;x
-
Existe War system por SQL?
é 8.60 =\
-
Existe War system por SQL?
Existe War system por SQL? (aquele com os escudinhos) se sim pode me informar o link? obrigado,
-
Donate por SMS, existe algum site?
Donate por SMS, existe algum site? mandando uma sms (gastando credito do cell) e eu entrego os pontos manualmente depois que for pago tem como fazer isso?
-
(Resolvido)Barra de VIDA/MANA por % (Porcento) ajuda
Resolvido, baixei um distro que ja vem com as porcentagem tudo pronto ja, obg x)
-
(Resolvido)Barra de VIDA/MANA por % (Porcento) ajuda
@up
-
Effect no premium Ajuda eu? :3
@up
-
(Resolvido)Barra de VIDA/MANA por % (Porcento) ajuda
tenho nao =\ se voce souber pode me ensinar? REP+ =x
-
(Resolvido)Barra de VIDA/MANA por % (Porcento) ajuda
eu achei um topico em outro forum, que bota a barra de mana/vida por % só que nao sei onde coloca esse script alguem ajuda? segue abaixo o script: --Remove health/mana by percentages: Evil Hero(Zeriikler:Changed few things) function doPlayerAddManaPercent(cid, percent) local mana = getPlayerMaxMana(cid) doPlayerAddMana(cid, (mana / 100) * percent) return TRUE end function doPlayerAddHealthPercent(cid, percent) local health = getCreatureMaxHealth(cid) doCreatureAddHealth(cid, (health / 100) * percent) return TRUE end function doPlayerRemoveManaPercent(cid, percent) local mana = getPlayerMaxMana(cid) doPlayerRemoveMana(cid, (mana / 100) * percent) return TRUE end function doPlayerRemoveHealthPercent(cid, percent) local health = getCreatureMaxHealth(cid) doPlayerRemoveHealth(cid, (health / 100) * percent) return TRUE end --Remove HP/MANA function doPlayerRemoveHealth(cid, hp) doCreatureAddHealth(cid, -hp) return TRUE end function doPlayerRemoveMana(cid, mana) doPlayerAddMana(cid, -mana) return TRUE end onde coloca isso? void ProtocolGame::AddPlayerStats(NetworkMessage_ptr msg) { msg->AddByte(0xA0); msg->AddU16((uint16_t)std::ceil(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH))); msg->AddU16((uint16_t)100); msg->AddU32(uint32_t(player->getFreeCapacity() * 100)); uint64_t experience = player->getExperience(); if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp msg->AddU32(0x7FFFFFFF); else msg->AddU32(experience); msg->AddU16(player->getPlayerInfo(PLAYERINFO_LEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT)); msg->AddU16((uint16_t)std::ceil(player->getMana() * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA))); msg->AddU16((uint16_t)100); msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVELPERCENT)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_SOUL)); msg->AddU16(player->getStaminaMinutes()); }
-
Effect no premium Ajuda eu? :3
augustomeneghetti obg pela tentativa nazesaria sim, isso mesmo
-
Effect no premium Ajuda eu? :3
Nao funcionou =\ eu tenho esse Globalevents que solta MagicEffect e TextMsg [VIP] function onThink(interval, lastExecution) for _, name in ipairs(getOnlinePlayers()) do local cid = getPlayerByName(name) if getPlayerStorageValue(cid, 9899) >= 1 then doSendMagicEffect(getPlayerPosition(cid), 35) doSendAnimatedText(getPlayerPosition(cid), "[VIP]", 180) end end return true end dai queria trocar de MagicEffect para Distance effect nesse script tlg? =\ (era tipo, juntar os 2 script)
-
Effect no premium Ajuda eu? :3
tipo, jogadores premium tem essa storage : 9899 queria que o script fosse funcionar pra essa storage (globalevent) que a cada 3 segundos um distance effect girasse em torno ao player. so isso o script que postei acima ele fika por 400 segundos ativado, dai eu queria tirar esse tempo e colocar so pra quem tem a storage 9899 Edit: @xWhitewolf Event onThink not found =/
-
Effect no premium Ajuda eu? :3
teria como pegar esse script só pra funcionar com essa storage: 9899 eu queria remover o tempo do script abaixo so que eu nao sei editar, se eu editar eu bugo tudo ajudem pf local tempo = 400 function sendEffect(pos1, pos2) return doSendDistanceShoot(pos1, pos2, 37) end function executeEffect(cid) setPlayerStorageValue(cid, 101518, 2) local pos = getCreaturePosition(cid) if type(pos) == "table" then addEvent(sendEffect, 0 * tempo, { x=pos.x-1, y=pos.y-1, z=pos.z }, { x=pos.x+1, y=pos.y-1, z=pos.z }) addEvent(sendEffect, 1 * tempo, { x=pos.x+1, y=pos.y-1, z=pos.z }, { x=pos.x+1, y=pos.y+1, z=pos.z }) addEvent(sendEffect, 2 * tempo, { x=pos.x+1, y=pos.y+1, z=pos.z }, { x=pos.x-1, y=pos.y+1, z=pos.z }) addEvent(sendEffect, 3 * tempo, { x=pos.x-1, y=pos.y+1, z=pos.z }, { x=pos.x-1, y=pos.y-1, z=pos.z }) addEvent(executeEffect, 4 * tempo, cid) end return true end function onCastSpell(cid, var) if getPlayerStorageValue(cid, 101518) == 1 then executeEffect(cid) end return TRUE end
- Evento War Castle
- Evento War Castle
-
(Resolvido)BroadCast (Player)
local config = { storage = 19400, -- storage em que será salvo o tempo cor = "green", -- de acordo com o constant.lua da lib tempo = 1, -- em minutos price = 100000, -- preço pra usar o broadcast level = 500 -- level pra poder utilizar o broadcast } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end if getPlayerLevel(cid) >= config.level then if getPlayerStorageValue(cid, config.storage) - os.time() <= 0 then if doPlayerRemoveMoney(cid, config.price) then setPlayerStorageValue(cid, config.storage, os.time() + (config.tempo*60)) doBroadcastMessage("[/all] "..getCreatureName(cid)..": "..param.."", config.cor) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You have successfully sent a broadcast, now you'll have to wait " ..config.tempo.. " minute(s) until you broadcast again.") else doPlayerSendCancel(cid, "You don't have " ..config.price.. " gp's for broadcasting.") return true end else doPlayerSendCancel(cid, "You have to wait " ..(getPlayerStorageValue(cid, config.storage) - os.time()).. " seconds until you can broadcast again.") return true end else doPlayerSendCancel(cid, "You have to be level " ..config.level.. " or more in order to use broadcast.") end end
-
[ERROR] !frags
quando um player com muitos frags fala !frags no meu ot, o ot cai quando um player com poucos frags nao acontece nada, aparece a quantidade de frags certa me ajudem pf,gostaria de saber se tem como arrumar esse bug, ou colocar frags no look que reseta todo dia, ajudem pf meu frags.lua [Talkaction] 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 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce tem " .. size.day .. " frags hoje!,Com [15 frags] por dia sera punido com [redskull]") if(size.day > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Last frag at " .. os.date("%d %B %Y %X", contents.day[1].date) .. " on level " .. contents.day[1].level .. " (" .. contents.day[1].name .. ").") end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd)) end end return true end
-
[DUVIDA] Eu posso abrir 2 Server em um VPS?
exemplo: eu solicito um IP novo na empresa, dai eu logo com o IP novo que eles vao me dar e abro o server 2? é isso?
-
[DUVIDA] Eu posso abrir 2 Server em um VPS?
Eu posso abrir 2 Server em um VPS? solicitando outro IP para empresa, teria como abrir? pra nao pagar outro VPS
-
[Pedido] Distance effect arrudiando o player com full addon (cada addon com 1 distance effect diferente do outro)
@UP
-
[PEDIDO] Efeito no BLESS
@Absolute, nao funcionou , eu falei !bless nao acontece nada, so gasta os 50k e eu falei denovo , gastou os 50k dnv =/ @EDIT Absolute, eu achei um aqui por distance effect, mas ele so solta 1 distance effect de mort em cada sqm, exemplo 0,0,0 0,1,0 0,0,0 0 = onde o distance vai parar 1= player doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x+2,y=getCreaturePosition(cid).y-2,z=getCreaturePosition(cid).z}, 10) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x+2,y=getCreaturePosition(cid).y,z=getCreaturePosition(cid).z}, 10) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x+2,y=getCreaturePosition(cid).y+2,z=getCreaturePosition(cid).z}, 10) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x-2,y=getCreaturePosition(cid).y-2,z=getCreaturePosition(cid).z}, 10) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x-2,y=getCreaturePosition(cid).y,z=getCreaturePosition(cid).z}, 10) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x-2,y=getCreaturePosition(cid).y+2,z=getCreaturePosition(cid).z}, 10) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x,y=getCreaturePosition(cid).y-2,z=getCreaturePosition(cid).z}, 10) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x,y=getCreaturePosition(cid).y+2,z=getCreaturePosition(cid).z}, 10) tem como colocar esse script pra ficar girando em torno do player? tipo: a cada 1 segundo o [X-1,Y-1] Vai pro [X-0,Y-1] , depois o effect vai pro [X+1,Y-1]... e assim por diante até fazer 360 graus no player eu vi isso em um ot axei muito foda, queria tentar fazer isso na bless, pra tipo ser uma "benção" que todos possam ver, me ajuda se possivel =/