Register for your free account! | Forgot your password?

You last visited: Today at 05:51

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

Advertisement



Add monster from map

Discussion on Add monster from map within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 41
Received Thanks: 1
Add monster from map

Hi everybody I am having a problem when I add monsters to a location on the map by character position, when I start my server the monster has been added but it only has 1-2 monsters appear, Can someone show me how to add more monsters I would be very grateful for that thanks for watching
thangchohd0 is offline  
Thanks
1 User
Old 03/19/2020, 05:19   #2
 
ryaneichner's Avatar
 
elite*gold: 0
Join Date: Oct 2014
Posts: 175
Received Thanks: 47
Thumbs up

Quote:
Originally Posted by thangchohd0 View Post
Hi everybody I am having a problem when I add monsters to a location on the map by character position, when I start my server the monster has been added but it only has 1-2 monsters appear, Can someone show me how to add more monsters I would be very grateful for that thanks for watching
Test It.
ryaneichner is offline  
Old 03/19/2020, 11:02   #3
 
denise456's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 391
Received Thanks: 87
Code:
USE SRO_VT_SHARD

declare @minLv int = 1
declare @MaxLv int = 140
declare @MaxSpawn int = 13 -- Düşük: 1~3 || Normal: 4~7 || Yüksek: 8~12
declare @respawnTimeMin int = 0 -- Saniye
declare @respawnTimeMax int = 1 -- Saniye


begin
       --select D.*
       update D set dwDelayTimeMin = @respawnTimeMin, dwDelayTimeMax = @respawnTimeMax, dwMaxTotalCount = @MaxSpawn
       from _RefObjCommon as A
       inner join _RefObjChar as B on A.Link = B.ID and A.CodeName128 like 'MOB%' and A.Rarity = 0 and B.Lvl between @minLv and @MaxLv
       inner join Tab_RefTactics as C on C.dwObjID = A.ID
       inner join Tab_RefNest as D on D.dwTacticsID = C.dwTacticsID and D.dwMaxTotalCount > 0 and D.dwDelayTimeMin > 0
end

Code:
Kod:
declare @minLevel int = 1
declare @MaxLevel int = 140
declare @MaxSpawnCount int = 20


--select *
update Tab_RefNest set dwMaxTotalCount = @MaxSpawnCount
from Tab_RefNest as A
inner join Tab_RefTactics as B
on A.dwTacticsID = B.dwTacticsID
inner join _RefObjCommon as C
on B.dwObjID = C.ID
inner join _RefObjChar as D
on C.Link = D.ID


where


D.Lvl between @minLevel and @MaxLevel
and
CodeName128 like 'MOB%'
and
Rarity = 0
anddwMaxTotalCount > 0
denise456 is offline  
Old 03/19/2020, 18:02   #4
 
elite*gold: 0
Join Date: Jul 2014
Posts: 187
Received Thanks: 70
Take all three lines for mangnyang from Tab_RefHive, Tab_RefTactics and Tab_RefNest, you can start by taking the ID from _RefObjCommon and selecting from reftactics where dwobjid = _RefObjCommon.ID and continue from there.

Copy the 3 lines, change what's needed and you will figure it out. DwMaxTotalCount @ Tab_RefNest is reponsible for the amount of mobs per spot. But you have to have the right settings everywhere for it to work.
JohnDornel^ is offline  
Old 03/19/2020, 21:01   #5
 
elite*gold: 0
Join Date: Nov 2019
Posts: 75
Received Thanks: 10
you tested it ?
mr.jungle is offline  
Old 03/20/2020, 03:49   #6
 
elite*gold: 0
Join Date: Dec 2010
Posts: 41
Received Thanks: 1
I used this query but only 1-2 monsters can be executed at a time, so I have to execute this command multiple times and get as many monsters as I want.
Quote:
USE shard

DECLARE @Monster VARCHAR (129)
DECLARE @CHARNAME VARCHAR (64)
DECLARE @mindealy INT
DECLARE @maxdelay int
DECLARE @INITRADIUS INT
DECLARE @radius int
DECLARE @MAXNEST int = (SELECT MAX (dwNestID) FROM Tab_RefNest)+1
DECLARE @MAXHIVE int = (SELECT MAX (dwHiveID) FROM Tab_RefHive)+1
DECLARE @MAXTACTICS int = (SELECT MAX (dwTacticsID) FROM Tab_RefTactics)+500

/* put your settings here */
SET @Monster = 'MOB_RM_WINGTRIBE' -- Monster code name from _RefobjCommon table
SET @CHARNAME = 'IL0v3Y0u' -- Character name from _Char table to get mob position X Y Z
SET @mindealy = 0 -- Minimum time before appears in seconds
SET @maxdelay = 0 -- Maximum time before appears in seconds
SET @INITRADIUS = 100 -- Radius around spot Monster can generated at
SET @radius = 500 -- Radius around spot Monster can move in
/* end of settings area */

/* get ID of mob by code name */
Declare @MOBID int SET @MOBID = (SELECT ID FROM _RefObjCommon WHERE CodeName128 = @Monster)

SET IDENTITY_INSERT Tab_RefTactics ON
INSERT INTO Tab_RefTactics (dwTacticsID,dwObjID,btAIQoS,nMaxStamina,btMaxStam inaVariance,nSightRange,btAggressType,AggressData, btChangeTarget,btHelpRequestTo,btHelpResponseTo,bt BattleStyle,BattleStyleData,btDiversionBasis,Diver sionBasisData1,DiversionBasisData2,DiversionBasisD ata3,DiversionBasisData4,DiversionBasisData5,Diver sionBasisData6,DiversionBasisData7,DiversionBasisD ata8,btDiversionKeepBasis,DiversionKeepBasisData1, DiversionKeepBasisData2,DiversionKeepBasisData3,Di versionKeepBasisData4,DiversionKeepBasisData5,Dive rsionKeepBasisData6,DiversionKeepBasisData7,Divers ionKeepBasisData8,btKeepDistance,KeepDistanceData, btTraceType,btTraceBoundary,TraceData,btHomingType ,HomingData,btAggressTypeOnHoming,btFleeType,dwCha mpionTacticsID,AdditionOptionFlag,szDescString128) VALUES
(@MAXTACTICS,@MOBID,0,500,50,200,0,0,2,2,2,0,0,5,0 ,0,0,0,0,30,0,0,4,0,0,0,0,0,0,0,0,0,0,0,1,500,0,0, 2,0,0,112 ,@Monster)
SET IDENTITY_INSERT Tab_RefTactics OFF

SET IDENTITY_INSERT Tab_RefHive ON
INSERT INTO Tab_RefHive (dwHiveID,btKeepMonsterCountType,dwOverwriteMaxTot alCount,fMonsterCountPerPC,dwSpawnSpeedIncreaseRat e,dwMaxIncreaseRate,btFlag,GameWorldID,HatchObjTyp e,szDescString128) VALUES
(@MAXHIVE,0,500,500,0,0,0,1,1 ,@Monster)
SET IDENTITY_INSERT Tab_RefHive OFF

/* get position coordinates of your character */

DECLARE @region INT SET @region = (SELECT (LatestRegion) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @POSX INT SET @POSX = (SELECT (POSX) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @posy INT SET @posy = (SELECT (POSY) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @posz INT SET @posz = (SELECT (POSZ) FROM _Char WHERE CharName16 = @CHARNAME)

SET IDENTITY_INSERT Tab_RefNest ON
INSERT INTO Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalP osX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGen erateRadius,nChampionGenPercentage,dwDelayTimeMin, dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,bt Type) VALUES
(@MAXNEST,@MAXHIVE,@MAXTACTICS ,@region,@posx ,@posy ,@posz,0 ,@radius,@INITRADIUS,0,@mindealy,@maxdelay,1,0,1,0 )
SET IDENTITY_INSERT Tab_RefNest OFF


print ''
print ''
print 'Done!'
thangchohd0 is offline  
Old 03/20/2020, 08:47   #7
 
elite*gold: 0
Join Date: Mar 2008
Posts: 159
Received Thanks: 61
Code:
... ,@mindealy,@maxdelay,1,...
Replace the "1" with a variable and put it into your declarations.
But I think adding for example 5 spawns with 1 mob would be faster respawning than adding 1 spawn with 5 mobs.
guckguck is offline  
Old 03/25/2020, 00:35   #8
 
elite*gold: 0
Join Date: Mar 2020
Posts: 22
Received Thanks: 2
helpful great work
ibraimzakaria is offline  
Reply


Similar Threads Similar Threads
[Tool]Monster Creator. the easy way to add monster on any map/instance
11/11/2013 - Battle of the Immortals - 1 Replies
Hi all. There have 5 Step to add monster on any map/instance Requeriments. Client must be running and your char need to be online. Step One --> Open the monster creator by necros. Step Two --> locate the button "Open DB Monster" and click. Step Three --> Write the name of the monster and click on Find button.
how add new new Monster in new map?
08/21/2011 - Metin2 Private Server - 3 Replies
how add new new Monster in new map? i have map ـــــــ ـــــــ& #1600;ــــــ&# 1600;ــــــ 600;ــــــ 00;ــــــ  0;ـــــــ ;ـــــــ ـــــــ& #1600;ــــــ&# 1600;ــــــ 600;ــــــ 00;ــــــ  0;ـــــــ ;ـــــــ ـــــــ& #1600;ــــــ&# 1600;ــــــ 600;ــــــ 00; how add how add new new Monster in old map?
[Help]Add monster In New Map
11/14/2009 - EO PServer Hosting - 4 Replies
how to add monster with new map.... can someone give me release??



All times are GMT +1. The time now is 05:52.


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.