Imfreezing
Krossa Kapitalismen
Hello Im working on a little project, and I was woundering if it is possible to whipe a characters items out
a little example
I was woundering if there is any db query for it?
thanks alot! also I might need to use
Thanks Imfreezing
a little example
Code:
local pos = {x = 652, y = 974, z = 7}
local playerId = 5
local reward = 8891--Itemid of the item which will the paladin gain
local reward1 = 7730--Itemid of the item which will the paladin gain
local reward2 = 2195--Itemid of the item which will the paladin gain
local reward3 = 7368--Itemid of the item which will the paladin gain
local reward4 = 2497--Itemid of the item which will the paladin gain
local reward5 = 2514--Itemid of the item which will the paladin gain
local reward6 = 1988--Itemid of the item which will the paladin gain
function doUpdatePlayer(health, mana, level, playerId)
db.executeQuery("UPDATE `players` SET `level` = "..level..", `health` = "..health..", `healthmax` = "..health..", `mana` = "..mana..", `manamax` = "..mana.." WHERE `id` ="..playerId..";")
end
function onStepIn(cid, item, position, fromPosition)
doTeleportThing(cid, pos)
>>db.executeQuery("DELETE FROM `player_items` WHERE `id` ="..playerId..";")<< Help with this please!
playerId = getPlayerAccountId(cid)
doPlayerAddItem(cid,reward6)
doPlayerAddItem(cid,reward)
doPlayerAddItem(cid,reward1)
doPlayerAddItem(cid,reward2)
doPlayerAddItem(cid,reward3)
doPlayerAddItem(cid,reward4)
doPlayerAddItem(cid,reward5)
doPlayerSetVocation(cid, 3)
doRemoveCreature(cid, true)
doUpdatePlayer(3605, 5220, 350, playerId)
end
Code:
doRemoveCreature(cid, true)