Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 13:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Request] Script or info on auto restoring UM's

Discussion on [Request] Script or info on auto restoring UM's within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 115
Received Thanks: 64
[Request] Script or info on auto restoring UM's

I am trying to see if there is a way to automate the process of restoring dead UM's after maintenance.
It gets confusing trying to sort through wich ones were dead because of no res rune and wich ones were deleted on purpose.
Also is there a way to remove all the previously deleted toons from the database automatically to clean up database and save space?
NocturnalSniper is offline  
Old 06/24/2010, 17:56   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 94
Received Thanks: 17
in the Char table the RemainTime defines whether or not a toon was deleted on purpose I believe.

ok just double checked it, RemainTime gives a value greater then 0 if you delete on purpose and 0 if you die with no rez rune.
sunder702 is offline  
Old 06/25/2010, 00:49   #3
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 647
RemainTime is the server time at which the character will be deleted. Zero is the default value. Anything else above zero is server time at which the character should be deleted. Simply, Del=0 AND RemainTime=0 normal live character, Del=0 AND RemainTime>0 character deletion requested by user, Del=1 AND RemainTime>0 character deleted because user requested it, Del=1 AND RemainTime=0 dead UM.

To remove entries of characters deleted by users use such query:
DELETE FROM PS_GAMEDATA.DBO.CHARS WHERE DEL=1 AND REMAINTIME>0
ProfNerwosol is offline  
Thanks
4 Users
Old 06/25/2010, 01:32   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 94
Received Thanks: 17
Talking

Quote:
Originally Posted by ProfNerwosol View Post
RemainTime is the server time at which the character will be deleted. Zero is the default value. Anything else above zero is server time at which the character should be deleted. Simply, Del=0 AND RemainTime=0 normal live character, Del=0 AND RemainTime>0 character deletion requested by user, Del=1 AND RemainTime>0 character deleted because user requested it, Del=1 AND RemainTime=0 dead UM.

To remove entries of characters deleted by users use such query:
DELETE FROM PS_GAMEDATA.DBO.CHARS WHERE DEL=1 AND REMAINTIME>0
there you are, even better.
sunder702 is offline  
Old 06/25/2010, 09:46   #5
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 647
Yup, but that query will delete even characters pending to be deleted so use caution.
ProfNerwosol is offline  
Old 06/27/2010, 11:51   #6
 
lae's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 40
Received Thanks: 17
With this you only save space in the Chars table.

For real space you need to delete all the items, etc of the deleted characters from the Charitems, UserStoredItems, etc.

Usually the Char table is the smallest.

If you real problem is the space itself I would delete all the info of the deleted characters from the dbos PS_Gamelog (Actionlog, UserLog) and from the PS_ChatLog (Chatlog).
lae is offline  
Old 10/14/2010, 14:50   #7
 
patoringa's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 103
Received Thanks: 26
To retrieve an Ultimate dead just change the fields to zero and NULL is DeleteData?
patoringa is offline  
Old 10/14/2010, 16:02   #8
 
lae's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 40
Received Thanks: 17
Quote:
Originally Posted by patoringa View Post
To retrieve an Ultimate dead just change the fields to zero and NULL is DeleteData?
Yes.
But good to change the location of the character, too, so he/she won't die again at the same spot from the same mob.

For example: Bootleg: map to 42 and the coordinates to 50/5/50.
lae is offline  
Thanks
1 User
Old 10/14/2010, 16:26   #9
 
patoringa's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 103
Received Thanks: 26
Thanks for tip
patoringa is offline  
Reply


Similar Threads Similar Threads
[Request] auto resurrect UM's
01/06/2011 - Shaiya Private Server - 30 Replies
is there anyone that have an SQL procedure to auto resurrect UM's?
Request Simple Auto Join War Script
06/24/2010 - 12Sky2 - 0 Replies
Hi im really not that well at coding in auto it , i was wondering if a more experienced player can make me a simple auto war join script , a continious one , thanks if this is possible , hope im not asking to much thanks guys
[Request]Auto Res Script?
01/10/2010 - Silkroad Online - 13 Replies
Ok Guys i need your help again -.- ive asked this before but i cant find that post anywhere on forums and i cant find the files from my HDD's.. If i remember right it was someone from 0x33 who made it.. not sure who. So if someone have it could you post it here or send me a pm ty.
No restoring while restoring in BotJail
09/24/2007 - Conquer Online 2 - 6 Replies
So ok, i checked the CO main page and i saw that there was a new function "Restore your character" ah well.. i do have a char thats stuck in bot jail so i thought, lets delete him and try to restore it, ok people the therory is: Your character WONT be send back to TC or whatever when you deleted him and when you restored him on the CO Site! I just wanted to make that clear... cuz when i read the forum (and i read a lot) all i can see is "Help get me out of BotJail" just pay the DB's and thats...
[Request] Auto-It-Script (2 WoW clients)
06/01/2007 - WoW Bots - 0 Replies
Hiho, ich suche ein Auto-It-Script welches beim drücken der Taste "X" den Tastendruck "Y" an Fenster "Z" sendet. Mein Vorhaben: 2 Clients laufen haben, auf dem "Main" Client die taste F1 drücken und damit bewirken das auf dem "Secondary" Client ein Heal auf mich gewirkt wird. Da seit Patch 2.1 der deutsche und der englische WoW client die selben Fenster-Namen haben, wüsste ich gerne ob man diese irgendwie ändern kann. best regards, FeeD



All times are GMT +1. The time now is 13:44.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.