|
You last visited: Today at 04:51
Advertisement
[SQL] Stored Procedure for TitleUpdating Automatic
Discussion on [SQL] Stored Procedure for TitleUpdating Automatic within the SRO PServer Guides & Releases forum part of the SRO Private Server category.
04/25/2013, 18:02
|
#1
|
elite*gold: 0
Join Date: Mar 2007
Posts: 849
Received Thanks: 667
|
[SQL] Stored Procedure for TitleUpdating Automatic
heya guys,
this was made a looooooong time ago when we wanted to make title giving automatic on devias. however, it was never used cuz of lazyness.
Just found it again and thought iŽd release it. This is to be executed each time a new uniquelog is added.
It works like this
gets the first charname that killed the MOB "Devias".
If you kill devias for the first time u get the title Devias Slayer #1
for the second time Devias Slayer #2
etc.
Meaning u will have to create multiple titles. however, the system itself is rpetty cool
have fun.
For support add me on skype:akasch93
PHP Code:
USE [SRO_VT_ROYAL] GO /****** Object: StoredProcedure [dbo].[_RoyalAutoTitleUpdater] Script Date: 04/25/2013 17:58:40 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Procedure [dbo].[_RoyalAutoTitleUpdater] as declare @newhwan int declare @Charname varchar (30) Update _Char Set HwanLevel = '0' where HwanLevel = '10' Set @Charname = ( Select top 1 Charname from SRO_VT_ACCOUNT.dbo.Evangelion_uniques order by SRO_VT_ACCOUNT.dbo.Evangelion_uniques.time desc) set @newhwan = ((select COUNT(Mobname) from SRO_VT_ACCOUNT.dbo.Evangelion_uniques where charname = @Charname and Mobname = 'MOB_GOD_FLAME_COWKING_B4')+100) -- +100 based on xxx normal title being hwanlvl 10 Update SRO_VT_SHARD.dbo._Char set SRO_VT_SHARD.dbo._Char.HwanLevel = @newhwan where CharName16 = @Charname AND (select top 1 Mobname from SRO_VT_ACCOUNT.dbo.Evangelion_uniques) = 'MOB_GOD_FLAME_COWKING_B4'
|
|
|
04/25/2013, 23:44
|
#2
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,310
Received Thanks: 6,470
|
#approved
|
|
|
04/26/2013, 17:38
|
#3
|
elite*gold: 0
Join Date: Feb 2008
Posts: 339
Received Thanks: 72
|
Very interesting, thx for share.
|
|
|
05/01/2013, 15:40
|
#4
|
elite*gold: 0
Join Date: Feb 2012
Posts: 75
Received Thanks: 0
|
thanx
|
|
|
05/02/2013, 15:50
|
#5
|
elite*gold: 0
Join Date: Mar 2012
Posts: 677
Received Thanks: 29
|
Msg 208, Level 16, State 6, Procedure _RoyalAutoTitleUpdater, Line 14
Invalid object name 'dbo._RoyalAutoTitleUpdater'.
|
|
|
05/02/2013, 16:17
|
#6
|
elite*gold: 52
Join Date: Nov 2009
Posts: 202
Received Thanks: 71
|
Quote:
Originally Posted by ILowe
Msg 208, Level 16, State 6, Procedure _RoyalAutoTitleUpdater, Line 14
Invalid object name 'dbo._RoyalAutoTitleUpdater'.
|
Try this.
Code:
USE [SRO_VT_ROYAL]
GO
/****** Object: StoredProcedure [dbo].[_RoyalAutoTitleUpdater] Script Date: 04/25/2013 17:58:40 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[_RoyalAutoTitleUpdater]
as
declare @newhwan int
declare @Charname varchar (30)
Update _Char Set HwanLevel = '0' where HwanLevel = '10'
Set @Charname = ( Select top 1 Charname from SRO_VT_ACCOUNT.dbo.Evangelion_uniques
order by SRO_VT_ACCOUNT.dbo.Evangelion_uniques.time desc)
set @newhwan = ((select COUNT(Mobname) from SRO_VT_ACCOUNT.dbo.Evangelion_uniques
where charname = @Charname and Mobname = 'MOB_GOD_FLAME_COWKING_B4')+100) -- +100 based on *** normal title being hwanlvl 10
Update SRO_VT_SHARD.dbo._Char set SRO_VT_SHARD.dbo._Char.HwanLevel =
@newhwan where CharName16 =
@Charname AND (select top 1 Mobname from SRO_VT_ACCOUNT.dbo.Evangelion_uniques) = 'MOB_GOD_FLAME_COWKING_B4'
|
|
|
05/02/2013, 17:08
|
#7
|
elite*gold: 0
Join Date: Sep 2012
Posts: 753
Received Thanks: 711
|
Quote:
Originally Posted by ILowe
Msg 208, Level 16, State 6, Procedure _RoyalAutoTitleUpdater, Line 14
Invalid object name 'dbo._RoyalAutoTitleUpdater'.
|
you need to create, not alter.
|
|
|
05/02/2013, 21:53
|
#8
|
elite*gold: 0
Join Date: Nov 2011
Posts: 45
Received Thanks: 3
|
ThX
|
|
|
05/03/2013, 01:01
|
#9
|
elite*gold: 0
Join Date: Oct 2012
Posts: 242
Received Thanks: 24
|
I feel something wrong with this procedure,
"Update _Char Set HwanLevel = '0' where HwanLevel = '10' "
WTF is that? Can someone understand good about sql tell us if this procedure is right or no?
|
|
|
05/03/2013, 02:15
|
#10
|
elite*gold: 0
Join Date: Apr 2013
Posts: 92
Received Thanks: 72
|
Quote:
Originally Posted by royalblade
heya guys,
this was made a looooooong time ago when we wanted to make title giving automatic on devias. however, it was never used cuz of lazyness.
Just found it again and thought iŽd release it. This is to be executed each time a new uniquelog is added.
It works like this
gets the first charname that killed the MOB "Devias".
If you kill devias for the first time u get the title Devias Slayer #1
for the second time Devias Slayer #2
etc.
Meaning u will have to create multiple titles. however, the system itself is rpetty cool
have fun.
For support add me on skype:akasch93
PHP Code:
USE [SRO_VT_ROYAL] GO /****** Object: StoredProcedure [dbo].[_RoyalAutoTitleUpdater] Script Date: 04/25/2013 17:58:40 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Procedure [dbo].[_RoyalAutoTitleUpdater] as declare @newhwan int declare @Charname varchar (30) Update _Char Set HwanLevel = '0' where HwanLevel = '10' Set @Charname = ( Select top 1 Charname from SRO_VT_ACCOUNT.dbo.Evangelion_uniques order by SRO_VT_ACCOUNT.[COLOR="SandyBrown"]dbo.Evangelion_uniques.time[/COLOR] desc) set @newhwan = ((select COUNT(Mobname) from SRO_VT_ACCOUNT.dbo.Evangelion_uniques where charname = @Charname and Mobname = 'MOB_GOD_FLAME_COWKING_B4')+100) -- +100 based on xxx normal title being hwanlvl 10 Update SRO_VT_SHARD.dbo._Char set SRO_VT_SHARD.dbo._Char.HwanLevel = @newhwan where CharName16 = @Charname AND (select top 1 Mobname from SRO_VT_ACCOUNT[COLOR="Red"].dbo.Evangelion_uniques[/COLOR]) = 'MOB_GOD_FLAME_COWKING_B4'
|
.dbo.Evangelion_uniques
is that missing table name ?
|
|
|
05/03/2013, 09:24
|
#11
|
elite*gold: 0
Join Date: Feb 2010
Posts: 307
Received Thanks: 48
|
Code:
USE [SRO_VT_ACCOUNT]
GO
/****** Object: Table [dbo].[Evangelion_uniques] Script Date: 09/13/2012 23:17:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Evangelion_uniques](
[ID] [int] IDENTITY(1,1) NOT NULL,
[CharName] [varchar](20) NOT NULL,
[MobName] [varchar](50) NOT NULL,
[time] [varchar](100) NOT NULL,
CONSTRAINT [PK_Evangelion_uniques] PRIMARY KEY CLUSTERED
(
[ID] 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
Trololo... but you need evangelion gameserver in order to make this tabela nd bla bla to work
|
|
|
05/08/2013, 00:36
|
#12
|
elite*gold: 0
Join Date: Apr 2013
Posts: 8
Received Thanks: 3
|
Hey, You can edit this query for me ? I need make this query when a player kill like more than 50 unique get a title for example : Unique Hunter
example:
when you kill 50 Unique get Unique Hunter
when you kill 100 unique get Unique King
when you kill 150 unique get Unique Boss
but i need make it for all uniques not only one unique !
|
|
|
|
Similar Threads
|
Hello, I have a problem with a stored procedure when you log into the game.
08/13/2012 - Rappelz Private Server - 5 Replies
Posts Forum on this thread did not help me! Any thoughts about this problem, screen :handsdown: http://s017.radikal.ru/i437/1208/20/992648841219.j pg
|
[BR Files] Missing stored procedure: _ResetQuestByCharName
04/27/2012 - SRO Private Server - 2 Replies
Anyone have this stored procedure for Black Rogue DB? o.O
I keep getting this error in GS and it's really annoying (doesn't affect performance, just annoying -_-):
Query Error!!! Query Result : -1, Query : {CALL _ResetQuestByCharName ( 'RainyDays' )}
SQL Error State:42000, Native Error Code: AFC, ODBC Error: Could not find stored procedure '_ResetQuestByCharName'.
{CALL _ResetQuestByCharName ( 'RainyDays' )}
Query Error!!! Query Result : -1, Query : {CALL _ResetQuestByCharName (...
|
GM Stored Procs
11/11/2010 - Shaiya Private Server - 2 Replies
I had asked in another thread, but should have known better since the original problem was resolved.
There are some GM Stored procs that would make certain jobs much easier from a GM perspective, but there's a piece of information I have no clue what it is, or where to get it: @GroupName
Can anyone point me in the right direction?
|
[HELP]Res toon stored Procedure
07/23/2010 - Shaiya Private Server - 0 Replies
Hi all,
hopefully someone can tell me what i am doing wrong.
I am trying to use the dbo.usp_GM_Recovery_Char and it completes without errors but it doesn't res the toon.
can anyone tell me how to fix this. I am tired of ressing them manually.
thanks alot!!
|
All times are GMT +2. The time now is 04:51.
|
|