Register for your free account! | Forgot your password?

You last visited: Today at 04:10

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

Advertisement



Mob Rebuild Sql

Discussion on Mob Rebuild Sql within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2020
Posts: 21
Received Thanks: 1
Mob Rebuild Sql

What is the proper way to construct this sql?
This one failed ,

Code:
Msg 245, Level 16, State 1, Line 6
Conversion failed when converting the varchar value 'MOB_CH_MANGNYANG' to data type int.
Code:
Update Tab_RefNest 
SET dwDelayTimeMin='4', dwDelayTimeMax='8', dwMaxTotalCount='7'
FROM Tab_RefNest AS A
INNER JOIN Tab_RefTactics AS B
ON B.dwTacticsID = A.dwNestID 
INNER JOIN _RefObjCommon  AS C
ON C.CodeName128 = B.dwTacticsID 
WHERE C.Rarity ='0' and CodeName128  NOT Like 'MOB_FW_%' and CodeName128  NOT Like 'MOB_THIEF_%' and CodeName128  NOT Like 'MOB_HUNTER_%' and CodeName128  NOT Like 'MOB_EU_%' and CodeName128 like 'MOB_%'
Thanks
Vegas35 is offline  
Old 02/26/2021, 02:04   #2
 
elite*gold: 0
Join Date: Mar 2010
Posts: 568
Received Thanks: 228
Quote:
Originally Posted by Vegas35 View Post
What is the proper way to construct this sql?
This one failed ,

Code:
Msg 245, Level 16, State 1, Line 6
Conversion failed when converting the varchar value 'MOB_CH_MANGNYANG' to data type int.
Code:
Update Tab_RefNest 
SET dwDelayTimeMin='4', dwDelayTimeMax='8', dwMaxTotalCount='7'
FROM Tab_RefNest AS A
INNER JOIN Tab_RefTactics AS B
ON B.dwTacticsID = A.dwNestID 
INNER JOIN _RefObjCommon  AS C
ON C.CodeName128 = B.dwTacticsID 
WHERE C.Rarity ='0' and CodeName128  NOT Like 'MOB_FW_%' and CodeName128  NOT Like 'MOB_THIEF_%' and CodeName128  NOT Like 'MOB_HUNTER_%' and CodeName128  NOT Like 'MOB_EU_%' and CodeName128 like 'MOB_%'
Thanks
Hello,

Error here

Code:
INNER JOIN _RefObjCommon  AS C
ON C.CodeName128 = B.dwTacticsID
Fix here

Code:
INNER JOIN _RefObjCommon  AS C ON C.ID = B.dwObjID
Select:

Code:
USE SRO_VT_SHARD
select C.CodeName128
FROM Tab_RefNest AS A
INNER JOIN Tab_RefTactics AS B ON B.dwTacticsID = A.dwNestID 
INNER JOIN _RefObjCommon  AS C ON C.ID = B.dwObjID 
WHERE C.Rarity ='0' and C.CodeName128  NOT Like 'MOB_FW_%' and C.CodeName128  NOT Like 'MOB_THIEF_%' and C.CodeName128  NOT Like 'MOB_HUNTER_%' and C.CodeName128  NOT Like 'MOB_EU_%' and C.CodeName128 like 'MOB_%'
Update:

Code:
USE SRO_VT_SHARD
Update Tab_RefNest 
SET dwDelayTimeMin='4', dwDelayTimeMax='8', dwMaxTotalCount='7'
FROM Tab_RefNest AS A
INNER JOIN Tab_RefTactics AS B ON B.dwTacticsID = A.dwNestID 
INNER JOIN _RefObjCommon  AS C ON C.ID = B.dwObjID 
WHERE C.Rarity ='0' and C.CodeName128  NOT Like 'MOB_FW_%' and C.CodeName128  NOT Like 'MOB_THIEF_%' and C.CodeName128  NOT Like 'MOB_HUNTER_%' and C.CodeName128  NOT Like 'MOB_EU_%' and C.CodeName128 like 'MOB_%'
Good Luck
Laag#82 is offline  
Thanks
1 User
Old 02/26/2021, 02:51   #3
 
elite*gold: 0
Join Date: Dec 2020
Posts: 21
Received Thanks: 1
124 rows affected Thank you so much.
Vegas35 is offline  
Reply


Similar Threads Similar Threads
Mob rebuild qty / respawn
02/24/2021 - SRO PServer Questions & Answers - 0 Replies
will this query work? Update Tab_RefNest SET dwDelayTimeMin='4', dwDelayTimeMax='8', dwMaxTotalCount='7' FROM Tab_RefNest AS A INNER JOIN Tab_RefTactics AS B ON B.dwTacticsID = A.dwNestID INNER JOIN _RefObjCommon AS C ON C.CodeName128 = B.dwTacticsID WHERE C.Rarity ='0' and CodeName128 NOT Like 'MOB_FW_%' and CodeName128 NOT Like 'MOB_THIEF_%' and CodeName128 NOT Like 'MOB_HUNTER_%' and CodeName128 NOT Like 'MOB_EU_%' and CodeName128 like 'MOB_%'
[HOW TO] Mob proto.xml Mob Names - Mob Proto.txt Help me
03/25/2015 - Metin2 Private Server - 2 Replies
Hi Metin2 Dev Mob proto.xml How to Mob Names.txt - Mob Proto.txt Converts ? Help Me :( How Mob Names.txt - Mob Proto.txt ? help me :( <Mob vnum="34012" name="¾Æ±â ÆÒ´õ" locale_name="¾Æ±â ÆÒ´õ" type="1" rank="5" battle_type="0" level="1" size="0" gold_min="0" gold_max="0" exp="10" max_hp="120" regen_cycle="3" regen_percent="1" def="4" ai_flag="0" setRaceFlag="0" setImmuneFlag="43" st="0" dx="0" ht="0" iq="0" damage_min="0" damage_max="0" attack_speed="100" move_speed="100"...
kann man diese Mob.txt & Mob names.txt zu mob_proto.sql konvertieren?
12/29/2014 - Metin2 Private Server - 9 Replies
Kann man die beiden dateien (aktuelle datenbank.txt files) irgendwie zu .sql konvertieren?



All times are GMT +1. The time now is 04:12.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.