Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 04:48

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

Advertisement



Need help to make a sql query

Discussion on Need help to make a sql query within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
Need help to make a sql query

i'm adding mobs and i use shtool.

the new mobs comes in both a sdata and csv file.

but anyway i need to add mobId 3005+ in the MobItems and insted of adding 3005 - 3100 manualy there has to be a way for sql to make that for you?

trying :

/*

Run the 2 lines below once to set start parameter

declare @MobId as int
set @MobId = 3006


*/




/* Inserting the first 9 lines for the first MobId */

insert into dbo.MobItems ()
select @MobId,1,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,2,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,3,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,4,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,5,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,6,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,7,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,8,0,0 -- MobId,ItemOrder,Grade,DropRate

insert into dbo.MobItems ()
select @MobId,9,0,0 -- MobId,ItemOrder,Grade,DropRate


/* Changes the parameter to current value +1 */

set @MobId = @MobId +1

but well it don't work hehe. anyone have a better idea to what i should run for it to make all the mobitems lines? 3005-3100 with 1-9 for the droprate?

if this is posible in the shtool tell me that too please.
Svinseladden is offline  
Reply


Similar Threads Similar Threads
[HELP]How to make a query
08/04/2020 - EO PServer Hosting - 5 Replies
................ no need now
[Guide]how to add pets/mounts to your server and how to make a query
07/19/2013 - EO PServer Guides & Releases - 26 Replies
i made that post because more than 10 memmbers from Epvp asked me to teach them how to add a new pet or mount . Hope you like it ;) ------------------------------------------------- - first of all here's how u can make a query :- READ THE SECOND BEFORE THIS ONE first delete from cq_action where id >= 727440 and id <= 728445; insert into cq_action (id,id_next,id_nextfail,type,data,param) values
[HOW]how to make query on navicat..can someone post link,instruction or video
05/30/2011 - EO PServer Hosting - 2 Replies
please i dotn know how to add or setting navicat help2..
[Tut]How to make a Shop w/ mySQL query browser
10/18/2009 - MapleStory - 0 Replies
Okay so, this is how to make a shop using mySQL query browser Step one: Choose an NPC and find it's id. Then, find a shop ID that isn't being used, by going to a resultset and clicking on "Shops" Choose a shop id. then, create a new script and insert this in
How to make a query on character.dbo.user_character SQL server.
04/20/2009 - Dekaron Private Server - 8 Replies
Hello, I found that GM fix. but doesnt work for me i make a character with a error. can any ppl help me?



All times are GMT +2. The time now is 04:48.


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.