Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 15:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Query Remove Monster or NPC Complett from Spawn

Discussion on Query Remove Monster or NPC Complett from Spawn within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Query Remove Monster or NPC Complett from Spawn

Hey Elitepvper Community
i see much Threadssome ppl looking for it how i can delete Monster or NPC from spawn ? i have check my query folder and found one

Quote:
USE SRO_VT_SHARD /* Delete Monster or NPC spawn */

DECLARE @Monster_or_NPC VARCHAR (max)

SET @Monster_or_NPC = 'MOB_NPC_CODENAME128' -- MonsterCodeName in Table _RefobjCommon

-- ©NorseGodTyr

DELETE FROM [SRO_VT_SHARD].[dbo].[Tab_RefHive]
Where dwHiveID IN (Select dwHiveID FROM [SRO_VT_SHARD].[dbo].[Tab_RefNest]
Where dwTacticsID IN (Select dwTacticsID FROM [SRO_VT_SHARD].[dbo].[Tab_RefTactics]
Where dwObjID IN (SELECT ID FROM SRO_VT_SHARD.dbo._RefObjCommon Where Codename128 LIKE @Monster_or_NPC)))

DELETE FROM [SRO_VT_SHARD].[dbo].[Tab_RefNest]
Where dwTacticsID IN (Select dwTacticsID FROM [SRO_VT_SHARD].[dbo].[Tab_RefTactics]
Where dwObjID IN (SELECT ID FROM SRO_VT_SHARD.dbo._RefObjCommon Where Codename128 LIKE @Monster_or_NPC) )

DELETE FROM [SRO_VT_SHARD].[dbo].[Tab_RefTactics]
Where dwTacticsID IN (Select dwTacticsID FROM [SRO_VT_SHARD].[dbo].[Tab_RefTactics]
Where dwObjID IN (SELECT ID FROM SRO_VT_SHARD.dbo._RefObjCommon Where Codename128 LIKE @Monster_or_NPC) )
NorseGodTyr is offline  
Thanks
3 Users
Old 04/10/2019, 13:21   #2

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Lightbulb

Quote:
Originally Posted by NorseGodTyr View Post
Hey Elitepvper Community
i see much Threadssome ppl looking for it how i can delete Monster or NPC from spawn ? i have check my query folder and found one
this query may do bugs later, because sometimes the RefHive line used by diffrent RefNest, and your query will delete the RefHive that linked with the RefNest.


correct me if iam wrong please...[Learning still]
devdash is offline  
Old 04/10/2019, 13:31   #3
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by alydandy View Post
this query may do bugs later, because sometimes the RefHive line used by diffrent RefNest, and your query will delete the RefHive that linked with the RefNest.


correct me if iam wrong please...[Learning still]
na here will nothing bugging your server ! he the query is search every ID and delete the correct ID from the linked mob also work 100% fine

Quote:
Originally Posted by alydandy View Post
this query may do bugs later, because sometimes the RefHive line used by diffrent RefNest, and your query will delete the RefHive that linked with the RefNest.


correct me if iam wrong please...[Learning still]
by every query is check if the dwTacticsID exsists

Quote:
Where dwTacticsID IN (Select dwTacticsID FROM [SRO_VT_SHARD].[dbo].[Tab_RefTactics]
Where dwObjID IN (SELECT ID FROM SRO_VT_SHARD.dbo._RefObjCommon Where Codename128 LIKE @Monster_or_NPC) )
NorseGodTyr is offline  
Thanks
1 User
Old 04/10/2019, 16:47   #4
 
elite*gold: 0
Join Date: Apr 2016
Posts: 289
Received Thanks: 67
Only you need delete it from Tab_Refnest
PHP Code:
use sro_vt_shard
go
delete from Tab_RefNest
where dwTacticsID in 
(select dwTacticsID from Tab_RefTactics 
where dwObjID in 
(select id from _RefObjCommon where CodeName128 like 'MOB%')

hoangphan7 is offline  
Old 04/11/2019, 08:45   #5

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by NorseGodTyr View Post
na here will nothing bugging your server ! he the query is search every ID and delete the correct ID from the linked mob also work 100% fine



by every query is check if the dwTacticsID exsists
welldone then, i will use it probably really soon.

thanks for sharing <3
devdash is offline  
Old 04/11/2019, 14:10   #6
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by hoangphan7 View Post
Only you need delete it from Tab_Refnest
PHP Code:
use sro_vt_shard
go
delete from Tab_RefNest
where dwTacticsID in 
(select dwTacticsID from Tab_RefTactics 
where dwObjID in 
(select id from _RefObjCommon where CodeName128 like 'MOB%')

If you do not want this line you can delete it completely !!!
NorseGodTyr is offline  
Reply


Similar Threads Similar Threads
[Selling] Best Arma 3 Money spawn - Gear spawn - Vehicles spawn *ON EVERY SERVER*
12/26/2014 - ArmA Trading - 0 Replies
bojkastros Arma 3 Shop ist offen - Geld Spawn - Ausrüstungs Spawn- Fahrzeuge spawnen * auf jedem Server * Geld 2 mil = 1,50 euro 4 mil = 2,50 euro So viel geld wie ihr wollt = 8 euro
[Request Help] Remove mobs / remove eur items / remove npc
02/15/2013 - SRO Private Server - 0 Replies
Iam sure all now saies this guy is mad :D why not remove the db i want to know how i can remove mobs from samrkand and add alex mobs there and remove eur item from npc and drobs and remove some npcs ty guys _________________________ I see that there is too much help here it's my topic no.2 without any answer
[S]Magicka complett edition [B] 10 € Psc
06/13/2012 - Trading - 1 Replies
Titel sagt alles denke kriege die psc noch heute oder morgen :)
[B] Steam/ DoDs, BF2 Complett Collection [S] PSC
04/23/2012 - Steam Trading - 2 Replies
Hey, Verkaufe meine 2 Steam Accounts. 1. Account . Day Of Defeat Source Unbanned.
[B]50Euro Psc gg Yang/Eq Phelon or Complett ACC[S]
09/04/2010 - Metin2 Trading - 2 Replies
Ich suche eine Metin2 acc oder mit Eq/yang auf Phelon Biete 50 Euro Psc!!!



All times are GMT +1. The time now is 15:01.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.