Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 03:00

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

Advertisement



In need of a quesry for Drop Change Per Map.

Discussion on In need of a quesry for Drop Change Per Map. 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
In need of a quesry for Drop Change Per Map.

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!
Dotzie is offline  
Old 05/30/2014, 12:12   #2
 
Twilight360's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 518
Received Thanks: 805
Quote:
Originally Posted by Dotzie View Post
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!
Adding more than one drop is simple, it goes like this below.
Example in the database table below, so you know how to create more than one grade to drop from that mob or boss. Lets take the money for instance, knowing when you add a new drop after the first one notice that it will auto add the RowID's so do not worry about that in the table.
RowID MobID ItemOrder GRADE Droprate
NULL 2008 1 (DropGrade) (Percent drop rate)
NULL 2008 2 (DropGrade) (Percent drop rate)
NULL 2008 3 (DropGrade) (Percent drop rate)
NULL 2008 4 (DropGrade) (Percent drop rate)

Item Order indicates on how many drops per mob or boss you wish to have dropped by killing them.
So for instance by setting 4 mob ids of the same and having different grades per that mob, simply having your 30% drop rate on it this will tell the game to drop those 4 drop grades from that boss or mob in game.
This should be self explanatory sorry if it is not but hopefully it helps. Also remind you the max drops can go to 9 per mob or boss.
Twilight360 is offline  
Thanks
1 User
Old 05/30/2014, 12:26   #3
 
elite*gold: 0
Join Date: Feb 2012
Posts: 122
Received Thanks: 12
That made better sence. However i would like to add the same drops for all mobs on same map. Are there a possebility to do that with 1 Script? Like following



UPDATE [PS_GameDefs].[dbo].[MobItems]

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='1'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(30)'
WHERE MapID= '(1)' AND ItemOrder='1'

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='2'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(30)'
WHERE MapID= '(1)' AND ItemOrder='2'

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='3'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(30)'
WHERE MapID= '(1)' AND ItemOrder='3'

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='4'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(DROPRATE)'
WHERE MapID= '(1)' AND ItemOrder='4'
Dotzie is offline  
Old 05/30/2014, 13:52   #4
 
Twilight360's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 518
Received Thanks: 805
Quote:
Originally Posted by Dotzie View Post
That made better sence. However i would like to add the same drops for all mobs on same map. Are there a possebility to do that with 1 Script? Like following



UPDATE [PS_GameDefs].[dbo].[MobItems]

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='1'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(30)'
WHERE MapID= '(1)' AND ItemOrder='1'

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='2'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(30)'
WHERE MapID= '(1)' AND ItemOrder='2'

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='3'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(30)'
WHERE MapID= '(1)' AND ItemOrder='3'

SET Grade= '(GRADE)'
WHERE MapID= '(1)' AND ItemOrder='4'

UPDATE [PS_GameDefs].[dbo].[MobItems]

SET DropRate= '(DROPRATE)'
WHERE MapID= '(1)' AND ItemOrder='4'
Of course you can create a script but you will have to go to the map and retrieve all mob ids that are set on that map to set all of them at once to drop that grade if you want to do it easier so you do not have to run around getting every mob on the map.
Twilight360 is offline  
Thanks
1 User
Old 05/30/2014, 17:48   #5
 
killer870's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 82
Received Thanks: 140
To be able to do that you do need to add another field to mobitems (MapID) but then if you execute the scripts you would get from shstudio when you update your mobs, it will not update because that script would not have a value for the mapID

Something else you can do is, try and do it as easy as posible. For example, lets use map 69. According to the 69.svmap, it uses mobs from 2640 to 2750 (when you open the 69.svmap click on monster list and order it by mobid)...

So we know we want the 1st 4 Droprates to be 30
This would be the code to use and update map 69 mobs item order 1 ,2,3,4 droprate to 30

So i have succesfully updated the DropRate to 30 for those itemOrders of the mobs but i need difrent Grades for each item Order. Code need to be done for each ItemOrder

Most maps uses mobs that the IDs are close to each other (maybe some dont) but thats how i did huge mob droprate and grade changes when i was beginning lol Hope it helps
killer870 is offline  
Thanks
4 Users
Reply


Similar Threads Similar Threads
drop does not change
03/29/2014 - Shaiya PServer Development - 6 Replies
Hello, I have a problem with my drop on mobs. In fact I managed to change a first time with the drops shstudio (as a test) that work perfectly well and then when I wanted to change this new more than to take effect while in my bd everything is as it should be. I search but can not find a solution, if someone has already encounter the same problem and find a solution I'm interested. Thank you in advance.
how to change the drop cps ?
10/03/2011 - CO2 Private Server - 4 Replies
hi I have a server 5525 I do not know how to change the fall cps I know where to go, monsterTable, but when I change and save, the drop remains the same, 5 cp per monster Can anyone help me? I want to put drop of 100 cp per monster ):
How to change mob drop ids
03/02/2011 - CO2 Private Server - 1 Replies
Hey there, I have been searching around and found nothing. I don't know how to change the item that they will drop. I want to drop something for a quest and I want to change what the mob will drop to get that item. Best regards, warzie005
How can i change drop?
10/29/2010 - CO2 Private Server - 3 Replies
I change drop rate how have be, but drop if be dont changed.And more one question.How change exp rate?I change worl.cs expirence rate but nothing.Add more in config EXPrate=20 but noting.Dont work for me :( .Please help me.Sry for my bad englih
how to change drop wtf!?
09/19/2009 - Dekaron Private Server - 11 Replies
Lolz so i added the lvl 145 weapons to the drops. But their are dropping lvl 1 weapons o.0. What did i wrong there? Here the original line of a deathland monster: ...



All times are GMT +2. The time now is 03:00.


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.