PDA

View Full Version : Help me out with drift options! plz


_BanDiT_
8th July 2009, 16:12
can somebody tell me whats wrong with these options!

##################
#Drifting options#
##################
# This is the filepath for a file containing the collected data.
# This file will be created if it doesnt exist yet.
# You must ensure read/write access to this path.
#-------------------------------------------------------------------

$DriftDatabase = "./Bandit_Drift";

# Actions to do on new personal best drift lap.

Event OnDriftPB() # Player event
globalRcm( langEngine( "%{main_newdriftpb}%" , GetCurrentPlayerVar("Nickname"),GetCurrentPlayerVar("DriftScore") . " ^3pts!") );
EndEvent




Event OnDriftPB() # Player event
globalMsg( langEngine( "%{main_newdriftpb}%" , GetCurrentPlayerVar("Nickname"),GetCurrentPlayerVar("DriftScore") . " ^3pts!") );
EndEvent


# Actions to do to when total lap drift score is higher or equal to MinimumDriftScore.


Event OnDriftLap() # Player event
globalMsg( langEngine( "%{main_driftlap}%" , GetCurrentPlayerVar("Nickname"), GetCurrentPlayerVar("DriftScore") ) );
EndEvent


# Message to get on end of each drift.
# Possible variables to use:


Event OnDriftScore() # Player event
privMsg( langEngine( "%{main_ondriftscore}%" , GetCurrentPlayerVar("DriftScore"), GetCurrentPlayerVar("LastDriftScore") ) );
EndEvent


$GoodDriftScore = 4000; # Value to be reached to execute action on good drift score


Event OnGoodDrift() # Player event
privMsg( langEngine( "%{main_ongooddrift}%" ,GetCurrentPlayerVar("Nickname"),GetCurrentPlayerVar("LastDriftScore") ) );
EndEvent




$MinimumDriftScore = 10; # Minimum drift score required

# Actions to do at end of lap if MinimumDriftScore is not achieved.



Event OnDriftTooLow() # Player event
privMsg( langEngine( "%{main_drifttolow}%" ,GetCurrentPlayerVar("Nickname") ) );
cmdLFS( "/spec " . GetCurrentPlayerVar("Nickname") );
EndEvent


$MinimumDriftSpeed = 50; # Minimum speed in km/h to maintain. Driving below that speed will reset score
$MinimumDriftAngle = 15; # Minimum angel to maintain. When angle is below value, score is reset
$MaximumDriftAngle = 100; # Maximum angel to maintain. When angle is above value, score is reset



Cant check PBs and in end of lap wont show result!

Victor
10th July 2009, 12:04
there is a new forum dedicated to lapper : http://www.lfsforum.net/forumdisplay.php?f=262

please ask you question there in the right place.

sinanju
21st July 2009, 00:52
Hi

I've been having problems here myself.

One thing I've noticed is that there is no privMsg anymore - you have to use PrivRcm

Try changing these and see how you get on.

Also. In a couple of lines, they finish with . " ^3pts!" - you have to remove this part as it will be duplicated due to the main_newdriftpb look up message.