Remove This line in spawns.cpp
to make it better so monsters can spawn even if there is player blocking the spawn.or you can change thisCode:findPlayer(sb.pos)
TOCode:bool Spawn::findPlayer(const Position& pos) { SpectatorVec list; g_game.getSpectators(list, pos); Player* tmpPlayer = NULL; for(SpectatorVec::iterator it = list.begin(); it != list.end(); ++it) { if((tmpPlayer = (*it)->getPlayer()) && !tmpPlayer->hasFlag(PlayerFlag_IgnoredByMonsters)) return true; } return false; }
And ofcourse edit the configmanager.cpp and the .h to add the boolCode:bool Spawn::findPlayer(const Position& pos) { SpectatorVec list; g_game.getSpectators(list, pos); Player* tmpPlayer = NULL; for(SpectatorVec::iterator it = list.begin(); it != list.end(); ++it) { if((!g_config.getBool(ConfigManager::PLAYER_BLOCK_SPAWN) && tmpPlayer = (*it)->getPlayer()) && !tmpPlayer->hasFlag(PlayerFlag_IgnoredByMonsters)) return true; } return false; }
It it just my idea if you want to add it then ok![]()
I thought that this proyect were based on 1.0 :O
Anyway, you did an amazing job with this project and I'm sure that the community will be happy with thisIt was originally going to be, but after using 1.0 for a few weeks I just hate every single thing about it.
It's my personal preference, but I don't like the way 1.0 was scripted.
Job just started xP.Anyway, you did an amazing job with this project and I'm sure that the community will be happy with thisthanks!
-- The Forgotten Server Config
-- New Features
capSpeedLoss = true
levelGainSpeed = false
defenseMin = 1.0 -- Minimum Defense Multiplier
defenseMax = 1.0 -- Maximum Defense Multiplier
armorMin = 1.0 -- Minimum Armor Multiplier
armorMax = 1.0 -- Maxmimum Armor Multiplier
offenseDamage = 1.0 -- Damage Divider
balancedDamage = 1.0 -- Damage Divider
defenseDamage = 1.0 -- Damage Divider
offenseDefense = 1.0 -- Defense Multiplier
balancedDefense = 1.5 -- Defense Multiplier
defenseDefense = 2.0 -- Defense Multiplier
playerDamageMult = 1.0 -- Multiplier For Damage To Players
useSkills = false -- Use Skills (Fist Fighting, Sword Fighting, etc)
monsterTargetDefault = false -- Use Default Monster Target?
seethroughwalls = false -- Can walls block player sight?
longday = 900 -- How long is a Day (in seconds)
daypercent = 70 -- What percent of a day is light (day/night percent)
nightlight = 150 -- How bright is it at night
daylight = 250 -- How bright is it during the day
lightcolor = 215 -- What color is the sun light (world light)
useShieldBar = true -- Use the Shield Bar?
useBarrierBar = true -- Use the Barrier Bar?
showPlayerVocation = true
showPlayerMarriage = true
showPlayerGuild = true
accountSize = 15
Wow! Great work Flat, it's is very good for a custom server. I think, you can add data folder? In github have only source code and if you can write a doc for someone with no knowledge understand new features also is good. Keep work for make this the best customized server![]()
So it won't be 1.0?
Ahh, then how about modalWindows?
You don't even need 1.0 for that functionSo it won't be 1.0?
Ahh, then how about modalWindows?
I'm waiting, u're doing really well.
I'm waiting to tutorial about compilation etc.,
Sorry for my english, it's not my personal language, and I didn't use a translator, cuz i'm training to speak without it.
Good Luck bro ;3