Register for your free account! | Forgot your password?

You last visited: Today at 01:23

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

Advertisement



Prevent deleting all the toons

Discussion on Prevent deleting all the toons within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2016
Posts: 11
Received Thanks: 0
Prevent deleting all the toons

Anyone can point out how to prevent user to delete all toons in the account?
There should be 1 toon left and cannot be deleted.
[GM]LibertyBelle is offline  
Old 04/11/2017, 19:35   #2
 
elite*gold: 0
Join Date: May 2012
Posts: 35
Received Thanks: 11
it that really necessary?
what if someone wants to change faction?
HellRevenger is offline  
Thanks
1 User
Old 06/10/2017, 14:48   #3
 
elite*gold: 0
Join Date: Nov 2016
Posts: 11
Received Thanks: 0
Yes, I want to prevent deleting all the toons in 1 faction and choose another faction.
I want to keep 1 toon always and can't be deleted.
In [usp_Delete_Char_E]
I have this:
DECLARE @ons int
DECLARE @UID int

SET @UID = (select UserUID from Chars where CharID = @D)
SET @ons = (select Count(*) from Chars where Del = 0 AND UserUID = @UID)


IF @ons < 2
BEGIN
RETURN -1 (Currently this will exit the game, I want to create an error box saying "You can't delete your last toon")
END
Anyone can point me to the right direction?
[GM]LibertyBelle is offline  
Old 06/21/2017, 19:52   #4
 
[GM]Sodawa's Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 111
Received Thanks: 61
DECLARE @ons int
DECLARE @UID int

SET @UID = (select UserUID from Chars where CharID = @D)
SET @ons = (select Count(*) from Chars where Del = 0 AND UserUID = @UID)


IF @ons < 2
BEGIN
SET [Status] = -10
END

Then just modify your sysmsg-uni.txt and write what you want with the right status.
[GM]Sodawa is offline  
Reply


Similar Threads Similar Threads
Request help! Deleting NPC & deleting items from NPC
07/28/2016 - SRO Private Server - 4 Replies
Hello Epvpers, I've got a question,, I'd like to know how to delete NPC & deleting items from NPC. I've already tried to search the files i should needed with how to add npc tutorials, but i still got an error when i launch my client. Can somebody explain me which files i must edit for deleting a NPC & NPC item properly? Thanks in advance!
[2 Questions] Deleting EU - Deleting Skills
06/26/2015 - SRO Private Server - 4 Replies
How can i disable creating eu chars WITHOUT disabling cosntaniple area on BR files ? I need to make the max level cap 80(i think i need help about it either i need to make required exp point to level up to 81, 9999999999 but from where ?) but first i need to delete 80 - 100 level skills on media pk2; from where and how ? Thanks
[Selling] Great D3 Account with 6 max level toons fully geared and WoW with greats toons/Mounts
02/02/2015 - Diablo 3 Trading - 0 Replies
I'm also willing to trade for TF2 Items. These are the main D3 Characters: 1) 70 Witch Doctor with full jade and Zumimassa set and other crap. 2) 70 DH with full sets. 3) 70 Wizard with full sets. 4) 70 Monk with full sets. 5) 70 Crusader with full sets. 6) 70 Barb with 3 different sets and lots of great gear.
WTT TOONS ON BRUMHART FOR ANY OTHER TOONS ON ANY OTHER SERVER
10/03/2010 - Archlord Trading - 4 Replies
like title says i want to trade a lvl 63 zerk whit fine built and good gear and weapon ah lvl 64 ranger whit full cf realm good weapon and pendant whti lvl 2 wings and lvl 1 cloak and al lv 34 swash whit good gear and all toons got like 3k wcoins item on them al on 1 account i wanen trade them for any other class/race i also dotn care about server but i would love it if they where above lvl 55 they dotn have to got a email adres b/c i dont got the email of mien but got that accoutn for...
NPC deleting?
01/13/2010 - EO PServer Hosting - 7 Replies
Hello as I can delete NPC? Please do not simply say in the npc.ini and remove the part. Because it does not work. The only thing that happens when I Delete a NPC with Name 101 | Change almost all with this Name and with this lookface from NPC Name 102. in cq_npc I find no entry with id. only in the cq_action but they are only for the command output if you clicked yes a text. ty for help



All times are GMT +1. The time now is 01:26.


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.