|
You last visited: Today at 05:01
Advertisement
[Mini Release] Custom IP/HWID Limit By Query!
Discussion on [Mini Release] Custom IP/HWID Limit By Query! within the SRO PServer Guides & Releases forum part of the SRO Private Server category.
09/30/2023, 22:28
|
#1
|
elite*gold: 0
Join Date: Jul 2020
Posts: 34
Received Thanks: 30
|
[Mini Release] Custom IP/HWID Limit By Query!
This Is Mini Release (Of My Old Bad Codes)
This Make Custom IP/HWID Limit By Query / RegionID
Maybe anyone can enjoy it or improve this query...
Note: You can add Job Hwid Using Select ItemID From _Inventory From Slot When Not=0 (Player Using Cape) and add this on ADDLOGCHAR or in Producer !
Alot New Things Can Be added on this query good luck!
Note2: Can be used on Filter Spawn Packet... (By Execute Query CharID!)
This query working fine for me!
-------------------------------------------------------------------
--Create Table!
--1°
-------------------------------------------------------------------
HTML Code:
USE [YOUR DB]
GO
/****** Object: Table [dbo].[CustomPcLimit] Script Date: 30/09/2023 17:14:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CustomPcLimit](
[RegionID] [int] NOT NULL,
[IPCount] [int] NOT NULL,
[HWIDCount] [int] NULL
) ON [PRIMARY]
GO
-------------------------------------------------------------------
--PRODUCER!
--2°
-------------------------------------------------------------------
HTML Code:
USE [YOURDB]
GO
/****** Object: StoredProcedure [dbo].[CustomPcLimitSystem] Script Date: 30/09/2023 17:15:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[CustomPcLimitSystem]
@CharID int
AS
DECLARE @Region int = (Select LatestRegion From SRO_VT_SHARD.._Char Where CharID=@CharID)
Declare @RegionLimit int = (Select RegionID From YOURDB..CustomPcLimit Where @Region=RegionID)
Declare @RegionCount int = (Select Count(LatestRegion) From SRO_VT_SHARD.._Char Where LatestRegion=@Region)
Declare @LimitIP int = (Select [IPCount] From YOURDB..CustomPcLimit Where @Region=RegionID)
Declare @LimitHWID int = (Select [HWIDCount] From YOURDB..CustomPcLimit Where @Region=RegionID)
Declare @CharName varchar(max) = (Select CharName16 From SRO_VT_SHARD.._Char WHere CharID=@CharID)
DECLARE @IP varchar(max) = (Select [IP] From YOURDB.._Players Where @RegionCount=@LimitIP and CharID=@CharID)
DECLARE @Hwid varchar(max) = (Select [HWID] From YOURDB.._Players Where @RegionCount=@LimitHWID and CharID=@CharID)
Declare @CountIP int = (Select Count(ip)+1 From YOURDB.._Players Where IP=@IP)
Declare @CountHwid int = (Select Count(HWID)+1 From YOURDB.._Players Where HWID=@Hwid)
--IP LIMIT
If (@Region=@RegionLimit and @CountIP+1=@LimitIP+1 or @CountIP+2=@LimitIP+2 or @CountIP+3=@LimitIP+3)
begin
insert Into _AutoNotice Values ('Sorry You Reached Max IP Limit!',@CharName,0,'00:00:00')
insert into YOURDB.._InstantTeleportDelivery values (@CharID,1,1,25000,982,140,140)
end
--PC LIMIT
If (@Region=@RegionLimit and @CountHwid+1=@LimitHWID+1 or @CountHwid+2=@LimitHWID+2 or @CountHwid+3=@LimitHWID+3)
begin
insert Into _AutoNotice Values ('Sorry You Reached Max Hwid Limit!',@CharName,0,'00:00:00')
insert into YOURDB.._InstantTeleportDelivery values (@CharID,1,1,25000,982,140,140)
end
-------------------------------------------------------------------
--ADDLOGCHAR (CAN ADD EVENTID=4 and EVENTID=6)
--3°
-------------------------------------------------------------------
HTML Code:
IF @EventID=11 or @EventID=9
begin
WAITFOR DELAY '00:00:05' --CHECK TIME
Exec YOUR DB..CustomPcLimitSystem @CharID
END
--Credits. DeeGhosTaP
|
|
|
10/02/2023, 05:22
|
#2
|
elite*gold: 1014
Join Date: Apr 2015
Posts: 1,028
Received Thanks: 1,243
|
what ???
|
|
|
10/03/2023, 22:07
|
#3
|
elite*gold: 0
Join Date: Jul 2020
Posts: 34
Received Thanks: 30
|
Quote:
Originally Posted by VORTEX*
what ??? 
|
this query have pc/ip limit sistem working by regionID
you can use PC per RegionID...
have filters don't have custom regionid pc limit!
and its old codes but work fine i used this code on 2015...
and if you don't have pc limit you can use IP limit for any regionID and make only 1 enter on this!
not its good release its only more any thing shared, maybe useful for anyone or not...
i only share it...
|
|
|
10/04/2023, 00:08
|
#4
|
elite*gold: 75
Join Date: Oct 2021
Posts: 97
Received Thanks: 67
|
Old but gold i did a one like it in past but good work my friend and thank you for share it
|
|
|
10/04/2023, 12:35
|
#5
|
elite*gold: 0
Join Date: Dec 2013
Posts: 70
Received Thanks: 7
|
Stop insulting people and learn to share things, thank you bro, nice post
|
|
|
10/04/2023, 19:49
|
#6
|
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
|
Quote:
Originally Posted by øNovaTeaMø
this query have pc/ip limit sistem working by regionID
you can use PC per RegionID...
have filters don't have custom regionid pc limit!
and its old codes but work fine i used this code on 2015...
and if you don't have pc limit you can use IP limit for any regionID and make only 1 enter on this!
not its good release its only more any thing shared, maybe useful for anyone or not...
i only share it...
|
 Many filters have already HWID/IP limit by region since xx years
|
|
|
10/04/2023, 21:06
|
#7
|
elite*gold: 0
Join Date: Jul 2020
Posts: 34
Received Thanks: 30
|
Quote:
Originally Posted by NorseGodTyr
 Many filters have already HWID/IP limit by region since xx years
|
yeah i now objetive here its for very newbie on silkroad or anything same...
and not its all filter have custom hwid per region, 50% of filter countain only pc limit only for selected region fw,ctf,ba etc... but not for region custom example... (dungeons new like Frozen dungeon etc...)
and have alot people editing silkroad today not know C# or C++
I'm not forcing anyone to use it nor do I expect you to like it, I just threw it in the community, it could be useful to someone, that's all!
|
|
|
10/08/2023, 14:54
|
#8
|
elite*gold: 0
Join Date: Apr 2017
Posts: 24
Received Thanks: 6
|
this man is living in 1977
|
|
|
10/12/2023, 21:38
|
#9
|
elite*gold: 0
Join Date: Sep 2016
Posts: 165
Received Thanks: 38
|
Thanks
|
|
|
 |
Similar Threads
|
[Release][Query] Query _InvCOS Items WITH _Char Connection
12/29/2015 - SRO PServer Guides & Releases - 1 Replies
Ok, so i needed to write this query for a procedure im working on and not many people know how to connect the pet inventory table to the character table.... so this query will explain how its done...
im not going to explain every single detail, like how there is no charcos when pet is despawned / dead... but yea you can probably figure that all out from this query...
The code...
USE
SELECT pet_invo.
,pet_invo. PetSlot
|
[WTB] unded mini ghostly/mini panada/mini polar bear
05/07/2012 - Guild Wars Trading - 2 Replies
Hi,
Would like to buy one of those pets. Make me an offer if you got one.
Thanks.
|
[Suche]Query für "Alteklinge, Reichsklinge" &' Stichdolche NUR QUERY!
08/18/2010 - Metin2 Private Server - 1 Replies
Ich weiß ich werd nervig aber ich suche die Query's
für Alteklinge, Reichsklinge &' Strichdolche
Why?
Naya, weil ich in der DB i-wie nur Drachenmaulglocke hab
... not more -.-
Auf jeden Fall Icon's etc. etc. etc. hab ich ich brauche nur die Query's
|
All times are GMT +1. The time now is 05:02.
|
|