Hello i'm using this for registration page i added every column which is needed for making account, now i have small problem with account id, how to make it read last id and add +1.
Code:
SqlCommand cmd = new SqlCommand("INSERT INTO Account (account_id,account,password,block,withdraw_remain_time,age,auth_ok,pcbang,last_login_server_idx,event_code,result, email)VALUES(5,@User,@Pass,0,0,@Age,1,1,1,0,1,@Email)");
Hello i'm using this for registration page i added every column which is needed for making account, now i have small problem with account id, how to make it read last id and add +1.
Code:
SqlCommand cmd = new SqlCommand("INSERT INTO Account (account_id,account,password,block,withdraw_remain_time,age,auth_ok,pcbang,last_login_server_idx,event_code,result, email)VALUES(5,@User,@Pass,0,0,@Age,1,1,1,0,1,@Email)");
i tryed just 5, but there cant be multiple id 5
Why put account_id in the script, it auto populates that field when an account is created.
Does it really need to auto populate by +1?
I use the same script but I never put in account_id
if i erase account_id in script, on registration it says it cannot be null. Idk do we use same auth database, because database from gameportal is alot different then this scripts is made of.
If you manually create an account do you fill in that column?
Cause I don't and my DB fills it in automatically the same way as if I use the script.
My script is a little different from yours because I have a few different columns but I still do not put in account_id and my database does not allow nulls in account_id either.
My script...
Code:
SqlCommand cmd = new SqlCommand("INSERT INTO Account (account,password,email,pk_,creationDate_,updateDate_,creatorId_,updatorId_,portId_,accessDate_,password2,ban,bantime,age)VALUES(@User,@Pass,@Email,1,NULL,NULL,NULL,NULL,NULL,NULL,@Pass,NULL,NULL,@Age)");
nnot insert the value NULL into column 'account_id', table 'Auth.dbo.Account'; column does not allow nulls. INSERT fails. The statement has been terminated.
EDIT:Fixed,made that account_id is identity, now everything works.
I'm having Big problem i almost done everything i restore the data base to SQL but when i open Auth Server i get DB Auth Error and ConnectionOpen i can many pepole have this problem i tryed all things posted in forum but nothing worked Config is done ! i reamoved the Pass from sa ! and everything doen Like The Tuto i dont know what is the problem will someone add me in skype and fix the problem please = espion54
Or you can just add the add_event_state() statements. LUA in Rappelz doesn't require you to setup a function to run most of it's built in methods. And since on_server_init() is already a setup function, you can just add the statements to that function... rather than using a stacked function.
So it would look like this:
Code:
function on_server_init()
roaming()
rare_mob()
guardian_spawn()
random_respawn()
add_event_state(1013,20)
add_event_state(1007,15)
add_event_state(1008,15)
add_event_state(1002,10)
add_event_state(1001,10)
end
Also when I go on my server, the Keys do not work. "I" is suppose to be a hot key to the inventory but it does not work! I go in options and I set them all up and then I place player attack to key "1" but when I disconnect and reconnect, it doesn't work
The method I left in that thread works in my server, not sure if his would or not but since my function works I have no need to try his.
Quote:
Originally Posted by Pyrochina
Also when I go on my server, the Keys do not work. "I" is suppose to be a hot key to the inventory but it does not work! I go in options and I set them all up and then I place player attack to key "1" but when I disconnect and reconnect, it doesn't work
Getting hot keys to save is an easy task but getting HV to work again afterward is a not so easy task.
Hot keys will function if you change...
T game.cash_usable_server:1
to...
T game.cash_usable_server:0
but as stated I am not sure why this fixes Hotkeys but I do know why it turns HV NPCs off.
Now in order to fix the HV NPCs you need to change their value in dbo.NPCResource.
The Value you need to change is "spawn_type" which will originally be a "4" so it only spawns if it is a cash usable server.
Change the value to "0" and they will spawn like any other NPC.
Code:
use
Arcadia
UPDATE [Arcadia].[dbo].[NPCResource] SET[spawn_type] = 0 WHERE [contact_script] LIKE '%Secroute%'
S db.auth.server:127.0.0.1
S db.auth.name:Auth
S db.auth.account:sa
S db.auth._password:
S db.auth.port:1433
S io.auth.port:8841
S app.name:auth
N game.user_limit:3000
N auth.max_client_per_ip:30000
S log.ip:127.0.0.1
N _auth.version:200604290
N auth.version:200701120
N auth.max_daily_client_per_ip:50000
S db.auth.md5_key:5412
N db.auth.use_md5:1
N db.auth.use_md5_for_security_no:0
N billing.user_keep_alive_interval:30000
[Helping Topic] 24/7 Helping Services! 08/27/2008 - EO PServer Hosting - 31 Replies stucked on anything while setuping your server?
post your problem here and you will get answer as fast as possible better than spamming with posts :cool:
first of all try reading Ahmedpotop's Pserver All thing guide.
if your couldn't solve it out post your problem down here
""That includes PHP rankings pages / registrations pages / Status pages""