Tudo que Fir3element postou
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
Secure Mode Pvp não funciona
locked seria true ou false eu acho
-
(Resolvido)Fail Compilation TFS 0.4 com nova function
troca LuaScriptInterface por LuaInterface
-
Dúvida com pairs e ipairs
pega bons scripts prontos e procura entender o que cada linha faz
- [BUG EM TODOS OS OTS] TFS 1.X, FIXED!
-
Exausted cast channel
por isso eu disse "no tfs 0.4" esse ai é otx n é?
-
Item de recuperação de HP e MP param de funcionar ao deslogar
se alguém souber arrumar me avisa.. pq ta tenso achar onde é esse bug aheuhea
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
[8.60] Baiak Source (exclusivo)
base top, gostei rep+
-
Exausted cast channel
no tfs 0.4 eu uso assim: bool Game::playerSay(uint32_t playerId, uint16_t channelId, SpeakClasses type, const std::string& receiver, const std::string& text, ProtocolGame* pg) { Player* player = getPlayerByID(playerId); if(!player || player->isRemoved()) return false; if (pg != NULL && pg->getIsCast() && !player->isAccountManager()) { if(player->hasCondition(CONDITION_EXHAUST, 64597)) return false; if(Condition* conditionchannel = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, 2000, 0, false, 64597)) player->addCondition(conditionchannel); if(g_talkActions->onPlayerSay(player, type == SPEAK_SAY ? (unsigned)CHANNEL_DEFAULT : channelId, text, false, pg)) return true; PlayerCast pc = player->getCast(); for(std::list<CastBan>::iterator it = pc.muted.begin(); it != pc.muted.end(); ++it) if(it->ip == pg->getIP()) { pg->publicSendMessage(player, SPEAK_PRIVATE, "You are muted on this cast."); return false; } if(playerTalkToChannel(player, type, text, channelId, pg)) return true; else return false; } uint32_t muted = 0; bool mute = player->isMuted(channelId, type, muted); if(muted && mute) { char buffer[75]; sprintf(buffer, "You are still muted for %d seconds.", muted); player->sendTextMessage(MSG_STATUS_SMALL, buffer); return false; } ..........
-
(Resolvido)Modificar Reset System
player.cpp, função getDescription coloca pra ler um storage na descr, + fácil q query
-
(Resolvido)Modificar Reset System
fiz em 5 min aq, nem testei local config = { minlevel = 150, --- level inical para resetar price = 10000, --- preço inicial para resetar newlevel = 20, --- level após reset priceByReset = 0, --- preço acrescentado por reset percent = 100, ---- porcentagem da vida/mana que você terá ao resetar (em relação à sua antiga vida total) maxresets = 50, levelbyreset = 0 --- quanto de level vai precisar a mais no próximo reset } --- end config local function getResets(uid) local resets = getPlayerStorageValue(uid, 378378) if resets < 0 then resets = 0 end return resets end local function addReset(cid) local resets = getResets(cid) setPlayerStorageValue(cid, 378378, resets+1) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) local hp = getCreatureMaxHealth(cid) local resethp = hp*(config.percent/100) setCreatureMaxHealth(cid, resethp) local differencehp = (hp - resethp) doCreatureAddHealth(cid, -differencehp) local mana = getCreatureMaxMana(cid) local resetmana = mana*(config.percent/100) setCreatureMaxMana(cid, resetmana) local differencemana = (mana - resetmana) doCreatureAddMana(cid, -differencemana) local guid = getPlayerGUID(cid) doRemoveCreature(cid) local description = resets+1 db.executeQuery("UPDATE `players` SET `description` = ' [Reset: "..description.."]' WHERE `players`.`id`= ".. guid) db.executeQuery("UPDATE `players` SET `level`="..config.newlevel..",`experience`= 0 WHERE `players`.`id`= ".. guid) return true end function onSay(cid, words, param, channel) local newPrice = config.price + (getResets(cid) * config.priceByReset) local newminlevel = config.minlevel + (getResets(cid) * config.levelbyreset) if param == "quantity" then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have a total of '..getResets(cid)..' reset(s).') end if getResets(cid) < config.maxresets then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,'You want to reset your character? It will cost '..newPrice..' gp\'s!') elseif getPlayerMoney(cid) < newPrice then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,'Its necessary to have at least '..newPrice..' gp\'s for reseting!') elseif getPlayerLevel(cid) < newminlevel then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,'The minimum level for reseting is '..newminlevel..'!') end doPlayerRemoveMoney(cid,newPrice) addEvent(function() if isPlayer(cid) then addReset(cid) end end, 3000) local number = getResets(cid)+1 local msg ="---[Reset: "..number.."]-- You have reseted! You'll be disconnected in 3 seconds." doPlayerPopupFYI(cid, msg) return true end
-
Exausted cast channel
vc tem que achar a função q fala no channel do cast, no caso do tfs 0.4: função Game::playerSay, arquivo game.cpp dai adiciona isso aqui: if(player->hasCondition(CONDITION_EXHAUST, 64597)) return false; if(Condition* conditionchannel = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, 2000, 0, false, 64597)) player->addCondition(conditionchannel);
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
Error ao compilar tfs 1.3
https://github.com/otland/forgottenserver vc tem que dizer pro compilador onde tá as libs, tem uns tutoriais bons aqui no tk
-
Por onde devo começar?
comece aprendendo a ligar um servidor -> utilizar banco de dados (mysql) -> configurar um acc maker -> compilar um servidor
-
(Resolvido)Critical E Dodge no LOOK
como funciona seu sistema de critical/dodge? storage? database?
-
Gesior não consegue criar accounts, nem guilds (DONATO R$50,00 PARA QUEM RESOLVER MEU PROBLEMA)
o gesior tem um método de checagem, só diz que a conta foi criada se realmente executou a query, então tem alguma config errada ai
-
War System 8.54
tem, já fiz um bucado de vezes... só desfazer o commit "8.6 update": https://github.com/Fir3element/0.3.6pl1/commits/master
- [showoff] Coin manager
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)