-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSaveCharacter.sql
More file actions
32 lines (30 loc) · 908 Bytes
/
Copy pathSaveCharacter.sql
File metadata and controls
32 lines (30 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CREATE PROCEDURE `SaveCharacter2`(
id int,
`level` int,
exp int,
gender char,
resist int,
cubes int,
credits int,
respawn_weapon int,
respawns int,
loggedin tinyint(1),
cursed tinyint(1),
isadmin tinyint(1)
)
BEGIN
update characters a
set a.`level` = `level`,
a.exp = exp,
a.gender = gender,
a.resist = resist,
a.cubes = cubes,
a.credits = credits,
a.respawn_weapon = respawn_weapon,
a.respawns = respawns,
a.lastsaved = NOW(),
a.loggedin = loggedin,
a.cursed = cursed,
a.isadmin = isadmin
where a.id = id;
END