- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
if (mysql_query("UPDATE `users` as u, `inventory` as i SET u.{$slot1} = {$id}, i.dressed = 1,
u.sila = u.sila + i.gsila,
u.lovk = u.lovk + i.glovk,
u.inta = u.inta + i.ginta,
u.intel = u.intel + i.gintel,
u.maxhp = u.maxhp + i.ghp,
u.maxmana = u.maxmana + i.gmana,
u.noj = u.noj + i.gnoj,
u.topor = u.topor + i.gtopor,
u.dubina = u.dubina + i.gdubina,
u.mec = u.mec + i.gmech,
u.mfire = u.mfire + i.gfire,
u.mwater = u.mwater + i.gwater,
u.mair = u.mair + i.gair,
u.mearth = u.mearth + i.gearth,
u.mlight = u.mlight + i.glight,
u.mgray = u.mgray + i.ggray,
u.mdark = u.mdark + i.gdark
WHERE
i.needident = 0 AND
i.id = {$id} AND
i.dressed = 0 AND
i.owner = {$user['id']} AND
u.sila >= i.nsila AND
u.lovk >= i.nlovk AND
u.inta >= i.ninta AND
u.vinos >= i.nvinos AND
u.intel >= i.nintel AND
u.mudra >= i.nmudra AND
u.level >= i.nlevel AND
((".(int)$user['align']." = i.nalign) or (i.nalign = 0)) AND
u.id = {$user['id']};")) {
$user[$slot1] = $item['id'];
return true;}
}
Lure Of Chaos 29.05.2011 11:12 # 0
jQuery 29.05.2011 11:33 # −1
guest 29.05.2011 11:45 # 0
guest 30.05.2011 09:53 # −2
glilya 30.05.2011 11:58 # −2
RaZeR 30.05.2011 13:48 # 0
U NO INTEL?!
bugmenot 30.05.2011 13:50 # +1
guest8 08.04.2019 20:52 # −999
guest8 08.04.2019 21:11 # −999
guest8 09.04.2019 18:00 # −999