c0pp3r / The_Rising

Public Repository for SWGEmu The Rising Server codebase
2 stars 8 forks source link

Kr-ayt dragons are spawning as babies #12

Open bastrad opened 7 years ago

bastrad commented 7 years ago

I believe the spawn is coming from the .lua for each kr-ayt dragon.

This is how it should be tamingChance = 0,

This is what we currently have tamingChance = 0.25,

I will continue to search to ensure this is how babies are spawned in the CreatureManagerImplementation.cpp

bastrad commented 7 years ago

Confirmed in CreatureManagerImplementation.cpp

bool CreatureManagerImplementation::checkSpawnAsBaby(float tamingChance, int babiesSpawned, int chance) { if (tamingChance > 0) { if (babiesSpawned == 0) { if (System::random(chance) < (tamingChance 100.0f)) { return true; } } else if (System::random(chance babiesSpawned) < (tamingChance * 100.0f)) { return true; } }

return false;

We need to edit each Kr-ayt .lua file to make taming chance = 0

These are all of the files that need to be edited

MMOCoreORB/bin/scripts/mobile/tatooine/krayt_dragon_adolescent.lua MMOCoreORB/bin/scripts/mobile/tatooine/krayt_dragon_ancient.lua MMOCoreORB/bin/scripts/mobile/tatooine/krayt_dragon_grand.lua MMOCoreORB/bin/scripts/mobile/tatooine/canyon_krayt_dragon.lua MMOCoreORB/bin/scripts/mobile/tatooine/giant_canyon_krayt_dragon.lua MMOCoreORB/bin/scripts/mobile/tatooine/juvenile_canyon_krayt_dragon.lua

c0pp3r commented 7 years ago

I think this has been fixed right?

bastrad commented 7 years ago

I have not seen any myself. Lets ask in game about it to make 100% sure, but I believe so.