[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.
[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'
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'
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 ?
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
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 !
[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!!