Register for your free account! | Forgot your password?

You last visited: Today at 06:49

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

Advertisement



[HELP]

Discussion on [HELP] within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 218
Received Thanks: 153
Question [HELP]

Hello guys any can help how add drops in sql i mean what are the MobId And Grade what need write in grade and how know MobId what are the mob..




----------------------------------
Sorry For English
Murik13 is offline  
Old 02/03/2012, 16:59   #2
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
This is something quite basic...

To get to know the MobID of any mob, just do this:

Code:
Use PS_GameDefs
Select mobname, mobId from dbo.Mobs where Mobname like  '%[name]%'
That will bring you the exact name and it's ID.

Now, for the grade ofthe items you do the same:

Code:
Use PS_GameDefs
Select itemname, grade from dbo.Items where Itemname like  '%[name]%'
Done this you have the MobID of the mob you want to add the drop to, and the grade of the item you want this mob to drop, so basically all what is left is add the item as drop to the mob....

Code:
Use PS_GameDefs
Update dbo.MobItems set Grade = [item_grade], DropRate = [%] 
where MobID = [mob_id] and ItemOrder = [number 1-9]
With this you have successfully added the item to be dropped by the mob you selected with a specific droprate.
JohnHeatz is offline  
Thanks
3 Users
Old 02/04/2012, 08:07   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 218
Received Thanks: 153
But i am do all right but no drop why? it depends from maps ep5?
Murik13 is offline  
Old 02/04/2012, 16:59   #4
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
Restart the server after you do changes on drops
JohnHeatz is offline  
Old 02/04/2012, 17:12   #5
 
elite*gold: 0
Join Date: Jun 2011
Posts: 218
Received Thanks: 153
Nope Not Work
Murik13 is offline  
Old 02/04/2012, 17:55   #6
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
The you are doing something wrong, because all that is needed to update drops is the last query I put in there:

Code:
Use PS_GameDefs
Update dbo.MobItems set Grade = [Grade], DropRate = [%] 
where MobID = [Mob] and ItemOrder = [number_from_1_to_9]
After this that mob will be dropping all the items on the grade you put in there with the drop rate that you input (remember there are always more than 1 item on each grade)
JohnHeatz is offline  
Thanks
1 User
Old 02/04/2012, 21:53   #7
 
elite*gold: 0
Join Date: Jun 2011
Posts: 218
Received Thanks: 153
No not work...
Murik13 is offline  
Reply




All times are GMT +1. The time now is 06:49.


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.