BORNTOKILL 142 #1 Oluşturuldu: Ekim 25, 2017 ÖNCELİKLE S.A HERKEZE SORUNUM OYUNA HER YENİ CHAR AÇILDIĞINDA PREMİUMLU OLARAK BAŞLAMASIDIR BELKİ ÇOK KOLAYDIR AMA YENİYİM DİYE KONU AÇIYORUM TEŞEKKÜR EDERİM HERKEZE.BU PAYLAŞTIĞIM LOGİN PROSEDÜRÜNÜN NERESİNİ AYARLASAM YENİ CHARLAR PREMİUMSUZ BAŞLAR...CREATE PROCEDURE ACCOUNT_LOGIN@AccountID varchar(21),@Password varchar(13),@nRet smallint OUTPUTas-- # Account Nation Transfers Queue # --EXEC ACCOUNT_NATION_TRANSFER ''select @nRet = count(straccountid) from tb_user where straccountid = @AccountID if @nRet = 0 begin insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6') end --CurrentUserdan Silelimdelete from currentuser where straccountid = @AccountIDdeclare @ban int , @ban1 int, @ban2 intselect @nRet = count(straccountid) from currentuserselect @ban = authority from userdata where struserid = (select strcharid1 from account_char where straccountid = @AccountID and strcharid1 is not null )select @ban1 = authority from userdata where struserid = (select strcharid2 from account_char where straccountid = @AccountID and strcharid1 is not null )select @ban2 = authority from userdata where struserid = (select strcharid3 from account_char where straccountid = @AccountID and strcharid1 is not null )if @ban = 255 or @ban1 = 255 or @ban2 = 255beginSet @nRet = 2 RETURNendDECLARE @Nation tinyint, @CharNum smallintSET @Nation = 0SET @CharNum = 0DECLARE @pwd varchar(13)SET @pwd = nullSELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID and idays=6IF @pwd IS nullBEGIN SET @nRet = 0 --SET @nRet = 2 RETURNENDELSE IF @pwd @PasswordBEGIN SET @nRet = 0 --SET @nRet = 3 RETURNENDDECLARE @gokhantasci varchar(21)select @gokhantasci = count(straccountid) FROM premium_service WHERE strAccountID = @AccountIDif @gokhantasci = 0begininsert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)endSELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountIDIF @@ROWCOUNT = 0BEGIN SET @nRet = 1 RETURNENDIF @CharNum = 0BEGIN SET @nRet = 1 RETURNENDELSE BEGIN SET @nRet = @Nation+1 --SET @nRet = 1 RETURNENDGO Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
PENTAGRAM 926 #2 Ekim 25, 2017 tarihinde gönderildi @ gandaf82;Bu kısmıDECLARE @gokhantasci VARCHAR(21)SELECT @gokhantasci = COUNT(straccountid) FROM premium_service WHERE strAccountID = @AccountIDIF @gokhantasci = 0BEGININSERT INTO PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)ENDprosedüründen sil. Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
BORNTOKILL 142 #3 Konu Sahibi Ekim 25, 2017 tarihinde gönderildi hocam o kısmı silince new char açılmıyor ırk seçiyorum Jop seçiyorum point nick yazınca Database hatasi veriyor Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
OzkanOzdemir 1.560 Admin #4 Ekim 25, 2017 tarihinde gönderildi CREATE_NEW_CHAR prosedüründeki premium ile ilgili kontrol veya girdileri sil. Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
PENTAGRAM 926 #5 Ekim 25, 2017 tarihinde gönderildi Alternatif olarak; INSERT INTO PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3) satırını INSERT INTO PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 0) olarak değiştir. Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
BORNTOKILL 142 #6 Konu Sahibi Ekim 25, 2017 tarihinde gönderildi Düzenleme yaptım hocam şu şekil LOGIN PROSEDUR SIKINTIMI BİTİRDİ TEŞEKKÜR EDERİM SİZLEREDE YARDIMCI OLDUNUZ İÇİCREATE PROCEDURE ACCOUNT_LOGIN@AccountID varchar(21),@Password varchar(13),@nRet smallint OUTPUTas-- # Account Nation Transfers Queue # --EXEC ACCOUNT_NATION_TRANSFER ''select @nRet = count(straccountid) from tb_user where straccountid = @AccountID if @nRet = 0 begin insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6') end --CurrentUserdan Silelimdelete from currentuser where straccountid = @AccountIDdeclare @ban int , @ban1 int, @ban2 intselect @nRet = count(straccountid) from currentuserselect @ban = authority from userdata where struserid = (select strcharid1 from account_char where straccountid = @AccountID and strcharid1 is not null )select @ban1 = authority from userdata where struserid = (select strcharid2 from account_char where straccountid = @AccountID and strcharid1 is not null )select @ban2 = authority from userdata where struserid = (select strcharid3 from account_char where straccountid = @AccountID and strcharid1 is not null )if @ban = 255 or @ban1 = 255 or @ban2 = 255beginSet @nRet = 2 RETURNendDECLARE @Nation tinyint, @CharNum smallintSET @Nation = 0SET @CharNum = 0DECLARE @pwd varchar(13)SET @pwd = nullSELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountIDIF @pwd IS nullBEGIN SET @nRet = 0 RETURNENDELSE IF @pwd @PasswordBEGIN SET @nRet = 0 RETURNENDSELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountIDIF @@ROWCOUNT = 0BEGIN SET @nRet = 1 RETURNENDIF @CharNum = 0BEGIN SET @nRet = 1 RETURNENDELSE BEGIN SET @nRet = @Nation+1 --SET @nRet = 1 RETURNENDGO Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
bluemansiiz 12 #7 Ekim 26, 2017 tarihinde gönderildi geç kaldık 1,0 yap diyecektim belirtmişler :) hayırlı olsun Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş