|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة [ قسم خاص لأسئلة واستفسارات عمل السيرفرات الخاصة ] [ يرجى الالتزام بقوانين قسم الأسئلة والاستفسارات ] |
|
31-12-2014, 12:58 PM
|
#1
|
|
• الانـتـسـاب » May 2014
|
• رقـم العـضـويـة » 117672
|
• المشـــاركـات » 34
|
• الـدولـة » ╮♥╭╰In The HeLL╯╮♥╭
|
• الـهـوايـة » ╮♥╭╰Edit PK2╯╮♥╭
|
• اسـم الـسـيـرفـر » Private Server
|
• الـجـنـس » Male
|
• نقـاط التقييم » 10
|
|
|
Get Honor Rank Point By Job Trade/Hunter/Thief
النهارده جايب ليكم موضوع مهم
Get honor point by Job
بمعني اوضح انك لما تطلع Trade
hunter
Thief
بدل ما هتأخد جولد هتأخد Honor points
addlogchar
كود PHP:
declare @jobtype int,@jobnames varchar(50)
set @jobtype=(select jobtype from SRO_VT_SHARD.._chartrijob where charid=@charid)
select @jobnames=case when @jobtype =1 then 'Trader'
when @jobtype=2 then 'Thief'
when @jobtype=3 then 'Hunter'
end
if @eventid in (4,6) and ((select contribution from SRO_VT_SHARD.._CharTrijob where CharID=@CharID) >=436657932) and ((select jobtype from SRO_VT_SHARD.._CharTrijob where CHARid=@CharID)>0)
begin
if (select jobtype from SRO_VT_SHARD.._CharTrijob where CharID=@CharID)=1
begin
exec SRO_VT_SHARD.._TRAINING_CAMP_CREATE @charid
update SRO_VT_SHARD.._CharTrijob set Contribution=0 where CharID=@CharID
update SRO_VT_SHARD.._TrainingCamp set EvaluationPoint+=10,GraduateCount+=10 where id in (Select campid from SRO_VT_SHARD.._TrainingCampMember where charid=@charid)
if not exists (select campid from [dbo].[SaveTrade_Mr.x] where Charid=@CharID)
begin
insert into [dbo].[SaveTrade_Mr.x] (Charname,Charid,CampID,HonorPoints,TradeCount,JobType) values ((select charname16 from SRO_VT_SHARD.._char where CharID=@CharID),@CharID,(select campid from SRO_VT_SHARD.._TrainingCampMember where CharID=@CharID),(select GraduateCount from SRO_VT_SHARD.._TrainingCamp where id in (select campid from SRO_VT_SHARD.._TrainingCampMember where CharID=@CharID)),0,@jobnames)
end
if exists (select campid from [dbo].[SaveTrade_Mr.x] where Charid=@CharID)
begin
update [dbo].[SaveTrade_Mr.x] set TradeCount+=1,HonorPoints+=10 where Charid=@CharID
end
end
if (select jobtype from SRO_VT_SHARD.._CharTrijob where CharID=@CharID)=2
begin
exec SRO_VT_SHARD.._TRAINING_CAMP_CREATE @charid
update SRO_VT_SHARD.._CharTrijob set Contribution=0 where CharID=@CharID
update SRO_VT_SHARD.._TrainingCamp set EvaluationPoint+=10,GraduateCount+=10 where id in (Select campid from SRO_VT_SHARD.._TrainingCampMember where charid=@charid)
if not exists (select campid from [dbo].[SaveTrade_Mr.x] where Charid=@CharID)
begin
insert into [dbo].[SaveTrade_Mr.x] (Charname,Charid,CampID,HonorPoints,TradeCount,JobType) values ((select charname16 from SRO_VT_SHARD.._char where CharID=@CharID),@CharID,(select campid from SRO_VT_SHARD.._TrainingCampMember where CharID=@CharID),(select GraduateCount from SRO_VT_SHARD.._TrainingCamp where id in (select campid from SRO_VT_SHARD.._TrainingCampMember where CharID=@CharID)),0,@jobnames)
end
if exists (select campid from [dbo].[SaveTrade_Mr.x] where Charid=@CharID)
begin
update [dbo].[SaveTrade_Mr.x] set TradeCount+=1,HonorPoints+=10 where Charid=@CharID
end
end
if (select jobtype from SRO_VT_SHARD.._CharTrijob where CharID=@CharID)=3
begin
exec SRO_VT_SHARD.._TRAINING_CAMP_CREATE @charid
update SRO_VT_SHARD.._CharTrijob set Contribution=0 where CharID=@CharID
update SRO_VT_SHARD.._TrainingCamp set EvaluationPoint+=10,GraduateCount+=10 where id in (Select campid from SRO_VT_SHARD.._TrainingCampMember where charid=@charid)
if not exists (select campid from [dbo].[SaveTrade_Mr.x] where Charid=@CharID)
begin
insert into [dbo].[SaveTrade_Mr.x] (Charname,C_char where CharID=@CharID),@CharID,(select campid from SRO_VT_SHARD.._TrainingCampMember where CharID=@CharID),(select GraduateCount from SRO_VT_SHARD.._TrainingCamp where id in (select campid from SRO_VT_SHARD.._TrainingCampMember where CharID=@CharID)),0,@jobnames)
end
if exists (select campid from [dbo].[SaveTrade_Mr.x] where Charid=@CharID)
begin
update [dbo].[SaveTrade_Mr.x] set TradeCount+=1,HonorPoints+=10 where Charid=@CharID
end
update SRO_VT_SHARD.._CharTrijob set Contribution=Contribution+1000 where CharID=@CharID
end
harid,CampID,HonorPoints,TradeCount,JobType) values ((select charname16 from SRO_VT_SHARD.. end
كود PHP:
USE [DB_LOG]
GO
/****** Object: Table [dbo].[SaveTrade_Mr.x] Script Date: 12/29/2014 6:38:31 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[SaveTrade_Mr.x](
[No] [int] IDENTITY(1,1) NOT NULL,
[Charname] [varchar](50) NULL,
[Charid] [bigint] NULL,
[CampID] [bigint] NULL,
[HonorPoints] [int] NULL,
[TradeCount] [bigint] NULL,
[JobType] [varchar](50) NULL,
CONSTRAINT [PK_SaveTrade_Mr.x] PRIMARY KEY CLUSTERED
(
[No] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
To More Service Contact Me
My Phone/ 01115056229
Skype/ ihateu14777
#GM]CrazyViper]
|
|
|
إعلانات google |
|
31-12-2014, 11:23 PM
|
#2
|
مـديـر عـام
|
• الانـتـسـاب » Dec 2007
|
• رقـم العـضـويـة » 6993
|
• المشـــاركـات » 7,039
|
• الـدولـة » Cairo
|
• الـهـوايـة » Helping ppl
|
• اسـم الـسـيـرفـر » Private Server
|
• الـجـنـس » Male
|
• نقـاط التقييم » 92
|
|
|
موضوع حميل يا باشا بس لو فيديو صغير كدة بس توري الناس اية اللي بيحصل واية لزمتة وشغال 100% ولا لا
تقبل مروري
|
|
|
يتصفح الموضوع حالياً : 1 (0 عضو و 1 زائر)
|
|
ضوابط المشاركة
|
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك
كود HTML معطلة
|
|
|
الساعة الآن 12:27 AM.
|