You can read and reply to posts and download all mods without registering.
We're an independent and non-profit fan-site. Find out more about us here.
AN ERROR HAS OCCURED [the index 'LoadCursor' does not exist]
class rsdDeadPowerCell extends SqRootScript { function OnRecharge() { local containtype = Container.IsHeld("Player",self); if (containtype != 2147483647) { //MAXINT ShockGame.DestroyInvObj(self); } else { ShockGame.DestroyCursorObj(); } local powercell = Object.Create("Power Cell"); if (GetData("Tool") == 1) { ShockGame.LoadCursor(powercell); } else { ShockGame.AddInvObj(powercell); } if (message().data) { PostMessage(message().from,"Consume"); } } function OnFrobToolEnd() { local tooldest = message().DstObjId; if (Object.InheritsFrom(tooldest,"Recharging Station")) { PostMessage(self,"Recharge"); Sound.PlayEnvSchema(tooldest,"Event Activate",tooldest,0,eEnvSoundLoc.kEnvSoundAtObjLoc); SetData("Tool",1); } }}