fodev.net
FOnline Development => General Discussion => Topic started by: ronon dex on June 19, 2012, 09:17:53 pm
-
void CallTownSupply(Critter& victim, Critter& hostile) // Export
{
if(IsValidForSupply(victim,hostile))
{
uint[] values={victim.Id,hostile.Id,0};
::CreateTimeEvent(__FullSecond+SUPPLY_TIME,"e_CallTownSupply",values,true);
}
}
EDIT:
void CallTownSupply(Critter& victim, Critter& hostile) // Export
{
if(IsValidForSupply(victim,hostile))
{
return;
uint[] values={victim.Id,hostile.Id,0};
::CreateTimeEvent(__FullSecond+SUPPLY_TIME,"e_CallTownSupply",values,true);
}
}
edit doesn't work.
how do I turn off script Bounty Hunters?
-
... //Export
{return;
if...
Try this shall work because I did it year ago.
-
{return;
if...
Try this shall work because I did it year ago.
void CallTownSupply(Critter& victim, Critter& hostile) // Export
{
//Export
{return;
if(IsValidForSupply(victim,hostile))
{
uint[] values={victim.Id,hostile.Id,0};
::CreateTimeEvent(__FullSecond+SUPPLY_TIME,"e_CallTownSupply",values,true);
}
}
I write it here?
-
how do I turn off script 3D players model?
-
I write it here?
If you open a block with curly brace { you must close it with equivalent }.
Read some C/C++ book for beginners for such things. DevilScript syntax is based on these languages.
Return you wrote in beginning should work, except you will get a warning about unreachable code.
No idea why it doesn't work ??? maybe delete all world saves (wipe server) and check again.
-
void CallTownSupply(Critter& victim, Critter& hostile) // Export
{return;
if(IsValidForSupply(victim,hostile))
{
uint[] values={victim.Id,hostile.Id,0};
::CreateTimeEvent(__FullSecond+SUPPLY_TIME,"e_CallTownSupply",values,true);
}
}
Try this because my friend has problem with and someone help him and it work. I dont remember if it is but something like it.
-
how do I turn off script Bounty Hunters?
Main.fos line somewhere near 1176
change
CallTownSupply( cr, killer );
to
//CallTownSupply( cr, killer );
bounty disabled
-
Still can not I turn off the 3D player models. Please have someone Fo SDK free 3d models or script that disables it? I tried to turn it off, but without success. Someone please send me the script where they are banned 3d player models.
-
Go to _defines.fos and there are somethings like 3d player, head slot and naked (no bluesuit). Write // for disable (make comment).
If you wanna delete all stuff I cannot help you.
-
If 3D models was turned on by default, that means that you are using very old sdk version *)