heRO-Server Forum
Auto-Shutdown - Printable Version

+- heRO-Server Forum (https://www.pandoraonline.net/forum)
+-- Forum: Game Related (https://www.pandoraonline.net/forum/forumdisplay.php?fid=1)
+--- Forum: Suggestions/Questions (https://www.pandoraonline.net/forum/forumdisplay.php?fid=19)
+--- Thread: Auto-Shutdown (/showthread.php?tid=8196)

Pages: 1 2 3 4 5 6


Auto-Shutdown - Sakurato - 12-10-2008

So, maybe not new to some people. But this is new to me and I was wondering if we could use it :s? If it does what I think it does :p. Which is auto shut-down your client if you go afk for however long~. I know some people fall asleep feeding their homuncs. I almost fell asleep in mosciva and this could have saved me from a ban :p

Quote:--------------------------------------------------
-- Mir AI -> Shut Down Mod v0.1.1
--------------------------------------------------
--[[
This mod shuts down the client after some minutes of inactivity
The counter will reset when your character moves, sits down or picks an item up
--]]
--------------------------------------------------
-- HOW TO ACTIVATE THIS MOD:
-- 1. open the Control Panel,
-- 2. choose the "Extra" Tab,
-- 3. and select AutoShutDown_Mod.lua
-- (if you don't use the control panel: open SelectMod.lua and replace "Standard_Mod" with "AutoShutDown_Mod")

--------------------------------------------------
-- Extra Globals
--------------------------------------------------
SDn_StartTime = 0

-- [### CONFIG START]
SDn_TimeOut = 45 * 60000 -- milliseconds
-- [### CONFIG END]

--------------------------------------------------
function ModInit()
-- plugin initialization
--------------------------------------------------

SDn_StartTime = GetTick()

-- Replace standard Mir AI's functions

StdOnIDLE_ST = OnIDLE_ST
OnIDLE_ST = SDnOnIDLE_ST

StdOnFOLLOW_ST = OnFOLLOW_ST
OnFOLLOW_ST = SDnOnFOLLOW_ST

StdOnCHASE_ST = OnCHASE_ST
OnCHASE_ST = SDnOnCHASE_ST

StdOnATTACK_ST = OnATTACK_ST
OnATTACK_ST = SDnOnATTACK_ST

StdOnEVADE_ST = OnEVADE_ST
OnEVADE_ST = SDnOnEVADE_ST
end

--------------------------------------------------
function SDnCheck()
--------------------------------------------------
local OwnerMotion = GetV(V_MOTION, OwnerID)
local CurrTime = GetTick()
if OwnerMotion == MOTION_MOVE?? --\
or OwnerMotion == MOTION_SIT????-- |- Not done by AI
or OwnerMotion == MOTION_PICKUP --/
then
SDn_StartTime = CurrTime -- the user did an action: reset the timer
else
????????if CurrTime > SDn_StartTime + SDn_TimeOut then
os.exit(0) -- user inactive for SDn_TimeOut milliseconds: close
end
end
end

--------------------------------------------------
function SDnOnIDLE_ST()
--------------------------------------------------
SDnCheck()
StdOnIDLE_ST()
end

--------------------------------------------------
function SDnOnFOLLOW_ST()
--------------------------------------------------
SDnCheck()
StdOnFOLLOW_ST()
end

--------------------------------------------------
function SDnOnCHASE_ST()
--------------------------------------------------
SDnCheck()
StdOnCHASE_ST()
end

--------------------------------------------------
function SDnOnATTACK_ST()
--------------------------------------------------
SDnCheck()
StdOnATTACK_ST()
end

--------------------------------------------------
function SDnOnEVADE_ST()
--------------------------------------------------
SDnCheck()
StdOnEVADE_ST()
end

Perhaps we could make use of this? Maybe a list of alchemist using it and..make the time like 3 mins idle? So that way if a GM 'bot' checks and the person doesn't answer They, the gm, can just go to a thread in the forums to see if they are listed as someone using the mod..and 3 mins later they get their client closed for inactivity and no ban for unfortunate events that may have had them afk for a mere 15 seconds and you decided to bot check then D:.??I know sometimes I get up to change the channel on my tv and ayu asked me to talk on main once and if I wouldn't have come back when I did I wouldn't have seen her yellow text and I woulda got banned for a 20 second afk :/.

thoughts xD?

Edit: Sob, meant to click suggestions/Questions forum. Can a GM move this please? Thanks :D.


RE: Auto-Shutdown - teOx - 12-10-2008

watching players get banned for something stupid like going afk for a few minutes, then get treated like all those other botters using 3rd party programs is sad.

personally i dont see why an extended jail sentence for that character doesnt suffice and get the message through for those players who accidentally afk with homun out.

best to avoid it all together if possible, is there any way this script can be utilized? if not by GMs then by every player who doesnt want to level homun at night only to get sleepy and doze off and wake up to a ban.


RE:??Auto-Shutdown - Général_Argos - 12-10-2008

teOx Wrote:watching players get banned for something stupid like going afk for a few minutes, then get treated like all those other botters using 3rd party programs is sad.

But you never know if the person was afk for a few mins, or just simply afk leveling.

Just a jail -> Lot of people with homun will just afk level for weeks, and the day they will get caught, they will accept to have the char jailed for a day or two >_>


RE: Auto-Shutdown - Sakurato - 12-10-2008

If they have to move the character ever 3-5 mins then they still have to be there. There are times when I watch TV for that long without even looking at the screen but I am still right there at my CPU, NOT afk.


RE:??Auto-Shutdown - Général_Argos - 12-10-2008

Sakurato Wrote:If they have to move the character ever 3-5 mins then they still have to be there. There are times when??I watch TV for that long without even looking at the screen but I am still right there at my CPU, NOT afk.

Watching tv while having your homun killing things is not that far away from somone who would make a botting run, while watching a movie on a tv, still being near the keyboard and thus not being 'afk'.??

c_c





RE: Auto-Shutdown - Lenny - 12-10-2008

G?n?ral_Argos Wrote:
Sakurato Wrote:If they have to move the character ever 3-5 mins then they still have to be there. There are times when I watch TV for that long without even looking at the screen but I am still right there at my CPU, NOT afk.

Watching tv while having your homun killing things is not that far away from somone who would make a botting run, while watching a movie on a tv, still being near the keyboard and thus not being 'afk'.

c_c

I agree With Krim on that, not much of a difference If your on your bed 5 feet away from your keyboard or at your keyboard watching tv , It is still Afk lvling imo if you cant respond to the gm check since your not even watching your homun doing the job for you.

I also think auto feeding shouldnt be allowed Icon_razz


RE: Auto-Shutdown - Général_Argos - 12-10-2008

Auto-feeding is already not allowed ?_?


RE:????Auto-Shutdown - Sakurato - 12-10-2008

Lenny Wrote:
G?n?ral_Argos Wrote:
Sakurato Wrote:If they have to move the character ever 3-5 mins then they still have to be there. There are times when??I watch TV for that long without even looking at the screen but I am still right there at my CPU, NOT afk.

Watching tv while having your homun killing things is not that far away from somone who would make a botting run, while watching a movie on a tv, still being near the keyboard and thus not being 'afk'.??

c_c

I agree With Krim on that, not much of a difference If your on your bed 5 feet away from your keyboard??or at your keyboard watching tv , It is still Afk lvling imo if you cant respond to the gm check since your not even watching your homun doing the job for you.

I also think auto feeding shouldnt be allowed Icon_razz

Auto feeding isn't aloud, hope you're not doing it :p.

So you're saying if you have to get up and go do something, maybe an emergency that you should not be aloud some leniency? In states of distress people often forget to do things, even if it is just press alt+f4 or rest it. If you say otherwise, you're a liar.

It would be nice to have a chance to salvage yourself if you accidentally fall asleep, or have to go in a hurry for something. No one is perfect, no one remembers everything. "You need to be responsible," is what someone might reply to me with well make sure you understand that people make mistakes. This could save people from being banned for their mom falling, as what happened to Tom. Do you think he was like "ONOZ GOTTA ALTf F4 RO BRT MOM!" No,it was natural instinct to go help his mom. He cares more about her than a game and the first thing to go through his mind was to help her not RO.

This is simply a fail-safe to accidental things that could happen and saves people A LOT of stress. If used right it could be very valuable.


RE: Auto-Shutdown - Kadar - 12-10-2008

Does it count as afk leveling when I click a geo or something on my archer and alt tab because I know it's going to take a while to kill it?


RE: Auto-Shutdown - teOx - 12-10-2008

owned hahahhahaahhaha.


even if GMs dont like it, all players can use it to be safe.

stop trying to compare it to the same as someone using a botting program.