Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SQL] For delete Mobs

Junior Spellweaver
Joined
May 5, 2009
Messages
129
Reaction score
25
Me not programmer and not nice speak English but here my Script for delete Mob-Tactics From Tab_RefTactics.
Why need that?
This script need for server's that open oldschool(only China) game and have not more RAM
You need change name's of your DB and find line _RefRegion.ContinentName like 'JUPITER'
JUPITER - it's select all Region where name is 'JUPITER'
JUPITER - Jupiter
SD - DESERT OF ALEX
DELTA - Alexandria
Eu - Constantinople
Ca - Central Asia (Samarkand)
Pharaoh - HOLY TEMPLE
KingsValley - ALEX DOWN
TEMPLE - JOB CAVE ALEXANDRIA
PHP:
USE [SRO_VT_SHARD]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Region]') AND type in (N'U'))
DROP TABLE [dbo].[Region]
GO
USE [SRO_VT_SHARD]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Region](
	[ID] [nchar](10) NULL
) ON [PRIMARY]

GO
INSERT INTO Region (ID)
select 
_RefRegion.wRegionID
from 
_RefRegion 
where 
/* Set JUPITER name here like 'JUPITER'*/
_RefRegion.ContinentName like 'JUPITER'
GO
delete FROM Tab_RefNest 
WHERE EXISTS (SELECT ID FROM Region WHERE ID = nRegionDBID)
USE [SRO_VT_SHARD]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Region]') AND type in (N'U'))
DROP TABLE [dbo].[Region]
GO
 
Last edited:
Newbie Spellweaver
Joined
Sep 20, 2012
Messages
93
Reaction score
8
Re: [Release][SQL] For delete Mobs

thank's
 
Junior Spellweaver
Joined
Jun 29, 2008
Messages
145
Reaction score
24
Yeah this is why you shouldn't trust random queries made by a random noob.
 
Initiate Mage
Joined
Dec 24, 2013
Messages
4
Reaction score
0
i need one for delet Event Mob have or other metedo : plis thx
 
Back
Top