FOnline Development > Questions and Answers
FOnline SDK - Question
JovankaB:
You messed up something in town_supply.fos, I would just redownload the file from repository.
Then simply add return; in the beginning of the CallTownSupply function:
void CallTownSupply(Critter& victim, Critter& hostile) // Export
{
return; // town supply disabled, remove this line to enable it again
if(IsValidForSupply(victim,hostile))
{
uint[] values={victim.Id,hostile.Id,0};
::CreateTimeEvent(__FullSecond+SUPPLY_TIME,"e_CallTownSupply",values,true);
}
}
This will stop the town supply function before it does anything.
If you prefer to change the time when the supply comes, you have to modify this line in town_supply.fos:
#define SUPPLY_TIME (Random(REAL_MINUTE(5),REAL_MINUTE(60)))
It means the time is random in a range between 5 and 60 minutes. So to change it, simply change the numbers.
raynor009:
Thank you again JovankaB you wer very helpfull again.
But i have one more question?
I enabled the 3D moddles all was great.But how do i enable the HEAD slot?
SmartCheetah:
--- Quote from: raynor009 on December 27, 2010, 05:00:27 PM ---Thank you again JovankaB you wer very helpfull again.
But i have one more question?
I enabled the 3D moddles all was great.But how do i enable the HEAD slot?
--- End quote ---
Put // in _defines.fos before line
#define PLAYERS_3D_NO_HEAD // No head slot
You can also disable vault suit to be default clothing on your toon by adding // in front of
#define PLAYERS_3D_VAULT_SUITE // Vault suite by default, not naked
raynor009:
Thank you.But wher do i find the names for hats?And other helemts.I looked through itemsname file but i didnt see anything special.
SmartCheetah:
I'm not sure if they are implemented in SDK. You have to ask someone who are dealing with it more than me. Any ideas anyone? Or just tell him how to add it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version