Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Cabal GM Tool EP8 (edited from TDChien

Newbie Spellweaver
Joined
Apr 2, 2022
Messages
14
Reaction score
5
I get this error when selecting another character.

1683599967246 - Cabal GM Tool EP8 (edited from TDChien - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Elite Diviner
Joined
Jun 18, 2023
Messages
436
Reaction score
245
i am use vs studio code and downloaded and installed .netframework 6 already but when i debug it show this error

1693762157632 - Cabal GM Tool EP8 (edited from TDChien - RaGEZONE Forums

1693762175074 - Cabal GM Tool EP8 (edited from TDChien - RaGEZONE Forums


please tell which visual studio version I need to compile..
 

Attachments

You must be registered for see attachments list
Last edited:
Junior Spellweaver
Joined
Apr 2, 2023
Messages
198
Reaction score
88
can someone post the correct procedure cabal_sp_mail_send_all
You'd have to be a little more specific.

Any criteria for the mails?
Or just trying to send it to literally everyone?
 
Junior Spellweaver
Joined
Apr 2, 2023
Messages
198
Reaction score
88
Quite the mess, but I guess it does the job.
Sorry, don't have time for cleaning up, might want to filter out banned accounts.

SQL:
DECLARE @lastchar int, @mailnum int, @mailcount int, @nextchar int
SELECT @lastchar = (SELECT Top 1 CharacterIdx FROM cabal_character_table Order By CharacterIdx ASC)
 
SELECT @mailnum = (SELECT COUNT(*) FROM Server01.dbo.cabal_character_table WHERE CharacterIdx > 0)

SET @mailcount = @mailnum
WHILE @mailcount > '1'
BEGIN
SELECT @nextchar = (SELECT Top 1 CharacterIdx FROM Server01.dbo.cabal_character_table WHERE CharacterIdx > @lastchar)
SET @lastchar = @nextchar

        INSERT INTO Server01.dbo.cabal_mail_received_table ( IsCommitted, ReceiverCharIdx, Type, Alz, ItemKindIdx, ItemOption, ItemDurationIdx, SenderCharIdx, SenderName, Title, Content )
        VALUES
        ( 1, @nextchar, '1', 'Alz Amount', 'Item ID', 'Item Option', 'Item Duration', 'Sender CharIdx', 'Sender Name', 'Mail Title', 'Mail Content (Text)' )

SET @mailcount = @mailcount -1
END
 
Joined
Oct 10, 2007
Messages
1,772
Reaction score
187
Quite the mess, but I guess it does the job.
Sorry, don't have time for cleaning up, might want to filter out banned accounts.

SQL:
DECLARE @lastchar int, @mailnum int, @mailcount int, @nextchar int
SELECT @lastchar = (SELECT Top 1 CharacterIdx FROM cabal_character_table Order By CharacterIdx ASC)
 
SELECT @mailnum = (SELECT COUNT(*) FROM Server01.dbo.cabal_character_table WHERE CharacterIdx > 0)

SET @mailcount = @mailnum
WHILE @mailcount > '1'
BEGIN
SELECT @nextchar = (SELECT Top 1 CharacterIdx FROM Server01.dbo.cabal_character_table WHERE CharacterIdx > @lastchar)
SET @lastchar = @nextchar

        INSERT INTO Server01.dbo.cabal_mail_received_table ( IsCommitted, ReceiverCharIdx, Type, Alz, ItemKindIdx, ItemOption, ItemDurationIdx, SenderCharIdx, SenderName, Title, Content )
        VALUES
        ( 1, @nextchar, '1', 'Alz Amount', 'Item ID', 'Item Option', 'Item Duration', 'Sender CharIdx', 'Sender Name', 'Mail Title', 'Mail Content (Text)' )

SET @mailcount = @mailcount -1
END
This is for all users and instead for a single user?
 
Junior Spellweaver
Joined
Apr 2, 2023
Messages
198
Reaction score
88
This is for all users and instead for a single user?
It counts the characters and sends it to every character accordingly
It will send it to literally all of the characters though, even ones that share the same account
 
Junior Spellweaver
Joined
Apr 2, 2023
Messages
198
Reaction score
88
I tried to send to a single user and it gives an error but it works for all users
Well it isn't made to be used to send a mail to a single person
For that you can just use the procedure cabal_sp_mail_send_GM which is found in Server01 by default
 
Newbie Spellweaver
Joined
May 18, 2021
Messages
95
Reaction score
5
Help why not showing Add Items "FIXED DONE
1697119656828 - Cabal GM Tool EP8 (edited from TDChien - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Oct 30, 2023
Messages
22
Reaction score
1
CREATE PROCEDURE [dbo].[cabal_sp_get_charpet]
(@PetSerial INT, @PetId INT, @CharId INT, @KINdIdx INT)
AS BEGIN SELECT * FROM cabal_pet_table where OwnerCharIdx = @CharId End


this is my Code Please Like This ^_^

CREATE PROCEDURE [dbo].[cabal_sp_mail_send_all]
(@Title varchar(40), @Content varchar(512), @Alz bigint = 0, @itemKindIdx int = 0, @itemOption int = 0, @itemDurationIdx int = 0)
AS BEGIN DECLARE @CharacterIdx int DECLARE CURSOR_ACCOUNTS CURSOR FOR SELECT CharacterIdx FROM Server01.dbo.cabal_character_table
OPEN CURSOR_ACCOUNTS FETCH NEXT FROM CURSOR_ACCOUNTS INTO @CharacterIdx WHILE @@FETCH_STATUS = 0 BEGIN INSERT INTO
cabal_mail_received_table
( IsCommitted, ReceiverCharIdx, Type, Alz, ItemKindIdx, ItemOption, ItemDurationIdx, SenderCharIdx, Title, Content )
VALUES
(
1,
@CharacterIdx,
dbo.Mail_GetGMType(),
@Alz,
@itemKindIdx,
@itemOption,
@itemDurationIdx,
1,
-- GM : 1,
@Title,
@Content )
FETCH NEXT FROM CURSOR_ACCOUNTS INTO @CharacterIdx End CLOSE CURSOR_ACCOUNTS DEALLOCATE CURSOR_ACCOUNTS END

This is the Fixed on Mail sent to all ^_^ i hope you Like This
 
Last edited:
Back
Top