this will help many of you if you wont to insert or edit something in there database
there is a trick that can make you edit all the rows and select all of them
just open your MS SQL then go to Tools > Options
it will be like this
just change them to
0
like this
now you can edit all the rows in your database

.
Now to insert any thin you wont there is a simple trick to do
go to the table you wont to insert in and press Right Click on your mouse
then go to Script Table as > insert to > new query editor window and
click Left mouse Click then edit the value as you wish
an example for inserting :-
Code:
INSERT INTO [Auth].[dbo].[Accounts]
([login_name]
,[password]
,[block]
,[withdraw_remain_time]
,[age]
,[auth_ok]
,[pcbang]
,[last_login_server_idx]
,[event_code]
,[server_list_mask]
,[result]
,[ip]
,[game_code]
,[gamecode])
VALUES
('Testname'
,'Testpass'
,0
,0
,18
,1
,1
,1
,0
,NULL
,1
,NULL
,NULL
,NULL)
GO
this code to make a new account
if it gave you a RED line under the name of the account or any other
name just add
' in the begin and end of the
name and it will fix the error
and for update , it's the same but choose update to .
Update mean that there is some thin in the database and you wont to
change like NPC location you wont to change or local flag and more
it's very easy to do just choose your window and start new query window
for update and choose what you will set
just but the thin you wont to change in set like if you wont to change the NPC location it will be like this
Code:
UPDATE [Arcadia].[dbo].[NPCResource]
SET [x] = 1234 , [y] = 5678
WHERE [id] = 12345
GO
this will change the location of an NPC to a location that you choose
and for the location if you wont to select a specific location that you
like or think it's better for your players just open the server and game
client and go to that location and but your player (character) on it then log off
and open your MS SQL go to Telecaster > Character > search for
your character and when you find it go Right to X and Y and copy them
and but them in the MS SQL query and that is how you change the location
of your NPC to the location that you want very easy !!!