Vá em iniciar » Todos os Programas » Microsoft SQL Server » Query Analyser e Rode a Seguinte Query Abaixo:

Código PHP:
Quote:
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

/****** Object: Stored Procedure dbo.cabal_sp_newchar Script Date: 2008-4-14 5:52:47 ******/

ALTER PROCEDURE [dbo].[cabal_sp_newchar] (@charname varchar(16), @characteridx int, @style int, @stylemast int)
AS
begin
SET NOCOUNT ON
if( exists select from cabal_badwoard where badword=@charname ) ) select convert(int,0x04)
else if( 
exists select from cabal_character_table where Name=@charname ) ) select convert(int,0x03)
else if( 
exists select from cabal_character_table where characteridx=@characteridx ) ) select convert(int,0x02)
else if( @
stylemast 0x01 or @stylemast 0x06 select convert(int,0x02)
else
begin
-----------------------------------------------------------------------------------------------
declare @
RegTime dateTime, @userNum int, @serverIdx int, @result int
set 
@userNum = @characterIdx/8
set 
@serverIdx dbo.getServerIdx()
set @RegTime getDate()
set @result convert(int0xA0) + @stylemast
------------------------------------------------------------------------------------------------

select charTable.*, etcTable.equipmentDataetcTable.inventoryDataetcTable.skillData,
etcTable.quickSlotDataetcTable.questDataetcTable.questFlagsData
into 
#tempTable
from account.dbo.cabal_newCharData_table as charTable,
account.dbo.cabal_newEtcData_table as etcTable,
select top 1 charDataIdxetcDataIdx from account.dbo.cabal_newFlagData_table
where channel 
= @serverIdx) as flagTable
where flagTable
.etcDataIdx etcTable.dataIdx and flagTable.charDataIdx charTable.dataIdx
and charTable.classType etcTable.classType and charTable.classType = @stylemast

IF( NOT EXISTS select from #tempTable))
BEGIN
select convert
(int0x01)
drop table #tempTable
return
END
-----------------------------------------------------------------------------------------------
-- ??? ??? ??
EXEC account.dbo.cabal_sp_update_character_count @userNum, @serverIdx1

--??? ??
insert into cabal_character_tableCharacterIdxNameLEV, [EXP], [STR], DEX, [INT], PNTRankAlz,
WorldIdx, [Position], StyleHPMPSPSwdPNTMagPNTRankEXPFlagsWarpBFieldMapsBFieldReputationReserved1 )
select @characteridx, @charnameLEV, [EXP], [STR], [DEX], [INT], [PNT], RankAlz,
WorldIdxPosition, @style+80HPMPSPSwdPNTMagPNTRankEXPFlagsWarpBFieldMapsBFieldReputationReserved1
from 
#TempTable

begin tran
insert into cabal_equipment_table 
(characterIdxdataselect @characteridxequipmentData from #TempTable
insert into cabal_inventory_table (characterIdxdataselect @characteridxinventoryData from #TempTable
insert into cabal_skilllist_table (characterIdxdataselect @characteridxskillData from #TempTable
insert into cabal_quickslot_table (characterIdxdataselect @characteridxquickSlotData from #TempTable
insert into cabal_questdata_table (characterIdxdataflagsselect @characteridxquestDataquestFlagsData from #TempTable
commit tran
----------------------------------------------------------------------------------------------

-- ??? 
0xA1 0xA6
drop table 
#tempTable
select convert(int, @result)
-----------------------------------------------------------------------------------------------
end

SET NOCOUNT OFF
end

GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO 
Aperte F5 e Pronto Seus Chars Irão Nascer Grau de Classe 11.