Bilgi TR
IRK Degistirme Kodu Uyeoll10

Bilgi TR'ye hoşgeldiniz! Forumumuzdan Tam Olarak Yararlanabilmek İçin Lütfen Üye Olun Sadece 10 Saniyenizi Ayırarak Forumumuza Uye Olabilirsiniz ...

Eğer mevcut bir üyeliğiniz varsa lütfen alttaki "Giriş Yap" bağlantısına tıklayın. Üye değilseniz Forumca Forum'u kullamaya hemen başlamak için lütfen aşağıdaki Kayıt Ol Butonuna Tıklayın üyelik formunu doldurun ve "Gönder" tuşuna basın.
Bilgi TR
IRK Degistirme Kodu Uyeoll10

Bilgi TR'ye hoşgeldiniz! Forumumuzdan Tam Olarak Yararlanabilmek İçin Lütfen Üye Olun Sadece 10 Saniyenizi Ayırarak Forumumuza Uye Olabilirsiniz ...

Eğer mevcut bir üyeliğiniz varsa lütfen alttaki "Giriş Yap" bağlantısına tıklayın. Üye değilseniz Forumca Forum'u kullamaya hemen başlamak için lütfen aşağıdaki Kayıt Ol Butonuna Tıklayın üyelik formunu doldurun ve "Gönder" tuşuna basın.
Bilgi TR
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Bilgi TRHoş geldin, .
Son Ziyaretiniz: Perş. Ocak 01, 1970
Mesaj Sayınız: 0

 
AnasayfaAramaLatest imagesKayıt OlGiriş yapChat Sayfası

 

 IRK Degistirme Kodu

Aşağa gitmek 
YazarMesaj
hsyn35
#ForumCA Forum Üyesi
#ForumCA Forum Üyesi
hsyn35


IRK Degistirme Kodu Shanex10
10
IRK Degistirme Kodu Ytbtwzh9q9
Garfield

2
<i><u><b>Cinsiyet</b></u></i> Erkek
Fenerbahçe
+Rep : 117
Mesaj Sayısı : 155
Basarı Puanı : 3
Doğum Tarihi : 28/01/95
Kayıt Tarihi : 06/03/10
Yaş : 29
Nerden : izmir
İş/Hobiler : Ogrenci
IRK Degistirme Kodu Wfod7dlpq8
IRK Degistirme Kodu F03gq9IRK Degistirme Kodu 125_125_2IRK Degistirme Kodu 88_31_1

IRK Degistirme Kodu Empty
MesajKonu: IRK Degistirme Kodu   IRK Degistirme Kodu EmptyPerş. Mayıs 27, 2010 9:30 pm

Kod:
[code]CREATE PROCEDURE [dbo].[ACCOUNT_NATION_CHANGE]
   @strAccountID as varchar(40),
   @Nation as tinyint
AS
/*
Author : Ceribrio
*/
DECLARE @strNation tinyint,@Class int,@Race int,@strCharID1 char(21), @strCharID2 char(21), @strCharID3 char(21)

SELECT @strNation = bNation,@strCharID1 = strCharID1,@strCharID2 = strCharID2,@strCharID3 = strCharID3 FROM ACCOUNT_CHAR WHERE strAccountID = @strAccountID

SET @Class = null
SET @Race = null

IF @Nation = 1 and @strNation = 2
   BEGIN
      SELECT @Class = Class,@Race = Race FROM USERDATA WHERE strUserID = @strCharID1
      IF @Class = 201 OR @Class = 205 OR @Class = 206
      BEGIN
      SET @Race = 1
      END

      IF @Class = 202 OR @Class = 207 OR @Class = 208
      BEGIN
      SET @Race = 2
      END

      IF @Class = 203 OR @Class = 209 OR @Class = 210
      BEGIN
      SET @Race = 3
      END

      IF @Class = 204 OR @Class = 211 OR @Class = 212
      BEGIN
         IF @Race = 12
         BEGIN
         SET @Race = 4
         END
         ELSE
         BEGIN
         SET @Race = 2
         END
      END
      UPDATE USERDATA SET Nation = @Nation,Race = @Race,Class = @Class - 100 WHERE strUserID = @strCharID1
      DELETE FROM KNIGHTS_USER WHERE strUserID = @strCharID1


      SELECT @Class = Class,@Race = Race FROM USERDATA WHERE strUserID = @strCharID2
      IF @Class = 201 OR @Class = 205 OR @Class = 206
      BEGIN
      SET @Race = 1
      END

      IF @Class = 202 OR @Class = 207 OR @Class = 208
      BEGIN
      SET @Race = 2
      END

      IF @Class = 203 OR @Class = 209 OR @Class = 210
      BEGIN
      SET @Race = 3
      END

      IF @Class = 204 OR @Class = 211 OR @Class = 212
      BEGIN
         IF @Race = 12
         BEGIN
         SET @Race = 4
         END
         ELSE
         BEGIN
         SET @Race = 2
         END
      END
      UPDATE USERDATA SET Nation = @Nation,Race = @Race,Class = @Class - 100 WHERE strUserID = @strCharID2
      DELETE FROM KNIGHTS_USER WHERE strUserID = @strCharID2

      SELECT @Class = Class,@Race = Race FROM USERDATA WHERE strUserID = @strCharID3
      IF @Class = 201 OR @Class = 205 OR @Class = 206
      BEGIN
      SET @Race = 1
      END

      IF @Class = 202 OR @Class = 207 OR @Class = 208
      BEGIN
      SET @Race = 2
      END

      IF @Class = 203 OR @Class = 209 OR @Class = 210
      BEGIN
      SET @Race = 3
      END

      IF @Class = 204 OR @Class = 211 OR @Class = 212
      BEGIN
         IF @Race = 12
         BEGIN
         SET @Race = 4
         END
         ELSE
         BEGIN
         SET @Race = 2
         END
      END
      UPDATE USERDATA SET Nation = @Nation,Race = @Race,Class = @Class - 100 WHERE strUserID = @strCharID3
      DELETE FROM KNIGHTS_USER WHERE strUserID = @strCharID3

      UPDATE ACCOUNT_CHAR SET bNation = @Nation WHERE strAccountID = @strAccountID
   END

IF @Nation = 2 and @strNation = 1
   BEGIN

      SELECT @Class = Class,@Race = Race FROM USERDATA WHERE strUserID = @strCharID1
      IF @Class = 101 OR @Class = 105 OR @Class = 106
      BEGIN
      SET @Race = 12
      END

      IF @Class = 102 OR @Class = 107 OR @Class = 108
      BEGIN
      SET @Race = 12
      END

      IF @Class = 103 OR @Class = 109 OR @Class = 110
      BEGIN
      SET @Race = 12
      END

      IF @Class = 104 OR @Class = 111 OR @Class = 112
      BEGIN
         IF @Race = 4
         BEGIN
         SET @Race = 12
         END
         ELSE
         BEGIN
         SET @Race = 13
         END
      END
      UPDATE USERDATA SET Nation = @Nation,Race = @Race,Class = @Class + 100 WHERE strUserID = @strCharID1
      DELETE FROM KNIGHTS_USER WHERE strUserID = @strCharID1

      SELECT @Class = Class,@Race = Race FROM USERDATA WHERE strUserID = @strCharID2
      IF @Class = 101 OR @Class = 105 OR @Class = 106
      BEGIN
      SET @Race = 12
      END

      IF @Class = 102 OR @Class = 107 OR @Class = 108
      BEGIN
      SET @Race = 12
      END

      IF @Class = 103 OR @Class = 109 OR @Class = 110
      BEGIN
      SET @Race = 12
      END

      IF @Class = 104 OR @Class = 111 OR @Class = 112
      BEGIN
         IF @Race = 4
         BEGIN
         SET @Race = 12
         END
         ELSE
         BEGIN
         SET @Race = 13
         END
      END
      UPDATE USERDATA SET Nation = @Nation,Race = @Race,Class = @Class + 100 WHERE strUserID = @strCharID2
      DELETE FROM KNIGHTS_USER WHERE strUserID = @strCharID2

      SELECT @Class = Class,@Race = Race FROM USERDATA WHERE strUserID = @strCharID3
      IF @Class = 101 OR @Class = 105 OR @Class = 106
      BEGIN
      SET @Race = 12
      END

      IF @Class = 102 OR @Class = 107 OR @Class = 108
      BEGIN
      SET @Race = 12
      END

      IF @Class = 103 OR @Class = 109 OR @Class = 110
      BEGIN
      SET @Race = 12
      END

      IF @Class = 104 OR @Class = 111 OR @Class = 112
      BEGIN
         IF @Race = 4
         BEGIN
         SET @Race = 12
         END
         ELSE
         BEGIN
         SET @Race = 13
         END
      END
      UPDATE USERDATA SET Nation = @Nation,Race = @Race,Class = @Class + 100 WHERE strUserID = @strCharID3
      DELETE FROM KNIGHTS_USER WHERE strUserID = @strCharID3

      UPDATE ACCOUNT_CHAR SET bNation = @Nation WHERE strAccountID = @strAccountID
   END
[/code]

[code]EXEC ACCOUNT_NATION_CHANGE 'HESABIDSI','IRKNUMARASI'[/code]
Sayfa başına dön Aşağa gitmek
http://www.bilgitr.1forum.biz
 
IRK Degistirme Kodu
Sayfa başına dön 
1 sayfadaki 1 sayfası
 Similar topics
-
» Kolluk Yakma Kodu
» Otomatik Uyelik Kodu
» Kayan yazı kodu
» Duyuru Panosu Kodu
» Samsung Ses Yukseltme Kodu

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
Bilgi TR :: Online Oyunlar :: Private Serverlar :: Prosedürler & Kodlar-
Buraya geçin: