temp.txt deleted online with Bitbucket

This commit is contained in:
Alan Elliott
2018-03-23 16:29:56 -07:00
committed by CekisSWG
parent f52aebcfb1
commit a72a84cef8
82556 changed files with 4633262 additions and 4288 deletions
@@ -0,0 +1,43 @@
package script.beta;
import script.*;
import script.base_class.*;
import script.combat_engine.*;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
import script.base_script;
import script.library.callable;
import script.library.utils;
public class free_mount extends script.base_script
{
public free_mount()
{
}
public int OnInitialize(obj_id self) throws InterruptedException
{
int expirationTime = getIntObjVar(self, "mount_vendor.create");
if (getGameTime() > expirationTime)
{
messageTo(self, "expireAndCleanup", null, 0, false);
}
return SCRIPT_CONTINUE;
}
public int expireAndCleanup(obj_id self, dictionary params) throws InterruptedException
{
obj_id currentPet = callable.getCDCallable(self);
if (isIdValid(currentPet) && exists(currentPet))
{
obj_id riderId = getRiderId(currentPet);
if (isIdValid(riderId))
{
dismountCreature(riderId);
}
}
setObjVar(self, "pet.isDead", true);
destroyObject(self);
return SCRIPT_CONTINUE;
}
}