$StoreOfflineData = false; #storedvalue.dbs Store Offline data , even when the player doesnt exist in the database.
- GetWr() Fix: Couldnt get RO11 WRtime. Compatible issue with Rockingham trackcodes (thanks to Andy King)
- GetWr() Change: DateTime value is now splitted in to 2 values : Date & Time
<?php
delayedcommand($CommandID,$NumberOfDelay,$SubCallBack)
or
delayedcommand($NumberOfDelay,$SubCallBack)
?>
+---------------------------------------------------------------+
|Changes 7.0.6.4 from PublicTest_06 to PublicTest_08 |
+---------------------------------------------------------------+
=================================================
New:
=================================================
1: New setconfigvar() value: "DiscordBotStatus"
setconfigvar("DiscordBotStatus",$argv); #change the status of the discordbot
=================================================
Changed:
=================================================
1:GetWR(); Added new value: 'DateTime' : Date/Time of WR
2:Store data for offline players ( Player + variable must exist in the database)
-only for functions SetUserStoredValue(); SetUserStoredNum();
-The player must be online first, to store theire data for the first time.
=================================================
Fixed:
=================================================
1: Lappercrash on Discord connect.
<?php
#############################
#Actions to do on Hit Object#
#############################
#Player Vars
#GetCurrentPlayerVar("ObjectContactSpeed") //Speed of player when hitting a object
#GetCurrentPlayerVar("ObjectContactHead") //Heading of player when hitting a object
#GetCurrentPlayerVar("ObjectContactDir") //Direction of player when hitting a object
# When $ObjectFlag returns a value.
#OBH_LAYOUT, //1 an added AutoX object
#OBH_CAN_MOVE, //2 a movable object
#OBH_WAS_MOVING, //4 was moving before this hit
#OBH_ON_SPOT //8 object in original position
$DetectHitObject = ""; #To get objectstrings for detection look at docs/ObjectHit.txt
Event OnObjectHit($userName,$ObjectFlag,$ObjectHitTime,$Object_X,$Object_Y,$Object_Z,$ObjectType,$ObjectInDex) # Player event
#Globalmsg("".getplayervar($userName,"NickName")."^8 hit a ^3".$ObjectType." ^8Height: ".$Object_Z);
EndEvent
?>
=================================================
New:
=================================================
#########################################
#DISCORDBOT FEATURES
#########################################
1: New Event :
- This event will be executed when someone sends a discord message to LFSLapper.
- A Discordbot must be created to communicate between LFSLapper and Discord.
- In 'bin/default/includes/myInc.LPR' you can enter the 'DiscordToken' and the 'Discordchannel' to receive the messages from.
- Link to create discordbot: https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token
- Set DeveloperMode in your discordsettings to "ON' to copy the channel ID ( rightclick on the channel)
Event OnReceiveDiscordMessage($DiscordUname,$Text) # Player event
#Your code
EndEvent
#This function sends messages to your selected discordchannel.
#The discordbot must be connected while using this function
2: New Function: sendmessagetodiscord();
$DiscordChannel = "000000000000000000";
$Message = "Hello";
sendmessagetodiscord($DiscordChannel,$Message);
=================================================
Changed:
=================================================
1:GetWr(); allows 1 parameter "CAR". Example below
CASE "!getwr":
IF($argv != "")THEN
$GetWRInfo = GetWR($argv);
ELSE
$GetWRInfo = GetWR();
ENDIF
privmsg("^7============================");
privmsg("^3WR Info:");
privmsg("^7============================");
privmsg("^7Car: ^8".$GetWRInfo["CName"]);
privmsg("^7Track: ^8".$GetWRInfo["Track"]);
privmsg("^7Racer: ^8". $GetWRInfo["racerName"]);
privmsg("^7Time: ^8".NumToMSH($GetWRInfo["WRTime"]));
privmsg("^7Sp1: ^8".NumToMSH($GetWRInfo["Split1"]));
privmsg("^7Sp2: ^8".NumToMSH($GetWRInfo["Split2"]));
privmsg("^7Sp3: ^8".NumToMSH($GetWRInfo["Split3"]));
privmsg("^7Last: ^8".NumToMSH($GetWRInfo["SectorLast"]));
BREAK;