Register for your free account! | Forgot your password?

You last visited: Today at 06:32

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

Advertisement



Add Mobs Query problems...

Discussion on Add Mobs Query problems... within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 122
Received Thanks: 12
Add Mobs Query problems...

Well i am trying to find the exact script to set the drops with 4 grades mob by mob.. Still no success tho

Update PS_GameDefs.dbo.MobItems
SET
Grade=52, DropRate=30, ItemOrder=1
Grade=52, DropRate=30, ItemOrder=2
Grade=52, DropRate=30, ItemOrder=3
Grade=52, DropRate=30, ItemOrder=4
Where MobID = 228

Any Idea Why i get Error at the 3 rows here:
Grade=52, DropRate=30, ItemOrder=2
Grade=52, DropRate=30, ItemOrder=3
Grade=52, DropRate=30, ItemOrder=4
Where MobID = 228

Says Syntax '='
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near 'Grade'.

Row 1 with ItemOrder=1 are good...

Im trying to add 4 Grades to same mobs but i have been trying whole the day to figure it out even been Re-Searching but no success at all..
Dotzie is offline  
Old 05/30/2014, 16:50   #2
 
elite*gold: 0
Join Date: Jul 2012
Posts: 312
Received Thanks: 285
Code:
Update PS_GameDefs.dbo.MobItems
SET Grade = '52' where ItemOrder = '1' and MobID = '228'
Update PS_GameDefs.dbo.MobItems
SET DropRate = '30' where ItemOrder = '1' and MobID = '228'
Update PS_GameDefs.dbo.MobItems
SET Grade = '52' where ItemOrder = '2' and MobID = '228'
Update PS_GameDefs.dbo.MobItems
SET DropRate = '30' where ItemOrder = '2' and MobID = '228'
....
andr3y_you96 is offline  
Old 05/30/2014, 17:17   #3
 
killer870's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 82
Received Thanks: 140
So what you are trying to do is Update the drops of MobID:228 and i see that all the grades and Droprate are the same. If the code isnt well writen the quiry WILL NOT work, it doesnt know when Grade=52 (#2) is for ItemOrder:2 it will just think that you are trying to update again the Grade for itemOrder 1 again and again.. if that makes sence.. lol (sorry im very bad at explaining this stype of stuffs)

On this code since all grades and droprate are going to be the same for ItemOrder 1 2 3 and 4, the code should be
Code:
Update PS_GameDefs.dbo.MobItems
SET Grade=52, DropRate=30
Where MobID = 228 AND ItemOrder in (1,2,3,4)
killer870 is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
In need of a quesry for Drop Change Per Map.
05/30/2014 - Shaiya PServer Development - 4 Replies
Hello Epvpers, I have been looking around for a few hrs and i found some posts about Changing Drops on all mobs at the same time for each map ID. However I couldnt totaly understand how it should be set up. The reason im writing a new topic is because i want to add more then 1 Grade to the same mobs. The map mobs should drop 4 Grades of items with a 30% droprate. and im not sure about how to set the script up. Would love to get a little help with it (: Thanks!
Mob_proto mit Dc Mobs, Korea Metins & Grotten Mobs gesucht!
05/19/2012 - Metin2 Private Server - 6 Replies
Heyho... Jo äh unsere mob_proto mag die Query von den Korea Metins nicht annehmen und ohne die kommen wir nicht weiter. Kennt eventuell jemand den Fehler? ~ Suche jemanden der mir seine Proto hochlädt worin Dc Mobs, Korea Metins, Grotten Mobs usw. drin sind. :P
Problems creating new Mobs with sStudio
05/16/2012 - Shaiya Private Server - 5 Replies
Hi Guys, i've a really mysterious problem with creating mobs. I'm not able to create a complete new mob with Shaiya Studio. I'm sure that i did everything right and if i change some existing mobs, on client and serverside everything function.
[TUT] Vacking w/o loosing mobs + mobs speed hack [WINHEX]
01/25/2011 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 208 Replies
You will need Win Hex to edit thouse numbers. I used Styx as the mob to edit. PART OF VACK + SPPED HACK FOR MOBS. Original: 2251,Styx,1,19,82,35749,0,486,695,10,50,2,6,0,0,0 ,0,0,0,55,0,0,0,02.5,4.8,1,1,styx,ÀÛ¼ºÁß,0,0,0,526 0,441,595,30800,1,1,3,90,90
[SUCHE]Einen Client mit den 13 neuen Mobs und Zombie Mobs
03/13/2010 - Metin2 Private Server - 23 Replies
Also Leute, ich suche jemanden der so nett ist und mir einen Client zu verfügung stellt bzw. macht auf dem die neuen Mobs sichtbar sind . THX



All times are GMT +2. The time now is 06:32.


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