Sasabmeg / FOnline-BraveNewWorld

FOClassic and PReloaded project, mostly for fodev.net tutorials or module code shares.
https://fodev.net/forum/index.php/topic,30344.0.html
GNU General Public License v3.0
11 stars 4 forks source link

Caravans enter special encounters (POWERPUFF) #57

Closed Sasabmeg closed 11 months ago

Sasabmeg commented 1 year ago

My first idea was that I was missing IsSpecialEncounter flag from the location, but they all have it. The Secret Treasure encounter was the one that caravan entered.

Sasabmeg commented 1 year ago

Zaika — Today at 3:50 PM @Sasa I couldn't get a caravan onto SE, even if I spawned one myself they tended to enter other encounters in the same zone but not mine Just to be sure, you could add this: if( _IsWithinRange(pid, 82, 83) || _IsWithinRange(pid, 85, 87) || pid == 108 || pid == 125 ) return MAP_TYPE_SPECIAL_ENCOUNTER; and put the check for it at: if( !IsEncounterMap(map) || GetMapType(map) == MAP_TYPE_SPECIAL_ENCOUNTER ) return false;

in bool _DriverMapEnter(Critter& driver, Map& map)

Sasabmeg commented 11 months ago

Added extra check for special encounters, should work now.