- Joined
- Dec 6, 2010
- Messages
- 25
- Reaction score
- 7
Change ALTER PROCEDURE to CREATE PROCEDUREI don't have that kind of SP, when I try to exec the SP here it doesn't let me exec.
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!Change ALTER PROCEDURE to CREATE PROCEDUREI don't have that kind of SP, when I try to exec the SP here it doesn't let me exec.
Forgot to say that it is now working, I just fixed the format of the query as forum made it badly coded.Change ALTER PROCEDURE to CREATE PROCEDURE
can please share fixed filesForgot to say that it is now working, I just fixed the format of the query as forum made it badly coded.
You'd have to be a little more specific.can someone post the correct procedure cabal_sp_mail_send_all
everyoneYou'd have to be a little more specific.
Any criteria for the mails?
Or just trying to send it to literally everyone?
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?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
It counts the characters and sends it to every character accordinglyThis is for all users and instead for a single user?
I tried to send to a single user and it gives an error but it works for all usersIt 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
Well it isn't made to be used to send a mail to a single personI tried to send to a single user and it gives an error but it works for all users
ok thanksWell 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
Make a button, create a query to it and analyze how change class works.posible to change class the new class here?
how fix, pls share?Help why not showing Add Items "FIXED DONE View attachment 243202