Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
// Gambling Include
// Amount of gold in the house at the start of the server.
int HOUSESTART=1000;
object oMod=GetModule();
void SetHouse(int nAmt)
{
SetLocalInt(oMod,"HOUSETOTAL",nAmt);
}
int GetHouse()
{
return GetLocalInt(oMod,"HOUSETOTAL");
}
int CheckPayout(int nAmt)
{
if( (GetHouse()-nAmt) < 0)
{
nAmt=GetHouse();
SetHouse(0);
return nAmt;
}
return nAmt;
}
void AddHouse(int nAmt)
{
SetHouse((nAmt+GetHouse()));
}
void SubHouse(int nAmt)
{
if((GetHouse()-nAmt) < 0)
SetHouse(0);
else
SetHouse((GetHouse()-nAmt));
}