Ir para conteúdo

ricktw

Membro
  • Registro em

  • Última visita

Tudo que ricktw postou

  1. Bom dia luangop, eu ganhei de um amigo, obrigado pela resposta, vou fazer e testar, mais uma pergunta, porque todos me perguntam como eu arrumei a TFS 0.5X
  2. Gostaria de saber se eu posso colocar essa script no meu servidor TFS 0.5X sou novo nessa area, esse codigo abaixo é TFS 0.4 Se sim, e só eu copiar e colar? alguem pode me ajudar? Script globalevents/scripts/age.lua function onThink(interval) if #getPlayersOnline() >= 1 then for i = 1,#getPlayersOnline() do doPlayerSetStorageValue(getPlayersOnline()[i],6723, getPlayerStorageValue(getPlayersOnline()[i],6723) + 1) end end return true end globalevents.xml <globalevent name="age" interval="60000" event="script" value="age.lua"/> game.cpp, procure por: if(player->hasCustomFlag(PlayerCustomFlag_CanSeePosition)) { ss << std::endl << "Position: [X: " << thingPos.x << "] [Y: " << thingPos.y << "] [Z: " << thingPos.z << "]"; if(Tile* tile = getTile(thingPos)) { if(House* house = tile->getHouse()) ss << " [House: " << house->getId() << "]"; } ss << "."; } Acima disso adicione: std::string year; if (const Creature* creature = thing->getCreature()) { if (const Player* destPlayer = creature->getPlayer()) { destPlayer->getStorage("6723", year); int32_t YearSay = atoi(year.c_str()) / 60; int32_t MonthSay = ((atoi(year.c_str()) / 5) % 12)+1; if (MonthSay > 0 || YearSay > 0) { if (thing != player) ss << std::endl << "He is " << std::floor(YearSay) << " Years, " << std::floor(MonthSay) << " Months old."; else ss << std::endl << "You are " << std::floor(YearSay) << " Years, " << std::floor(MonthSay) << " Months old."; } else { if (thing != player) ss << std::endl << "He Was Just Born."; else ss << std::endl << "You Were Just Born"; } } }

Informação Importante

Confirmação de Termo