Kuantikum
Member
- Joined
- Jul 3, 2015
- Messages
- 221
- Solutions
- 1
- Reaction score
- 21
Hello,
Well i just need a item that when used it gives shop points to the player account...
I tried but do not works:
Well i just need a item that when used it gives shop points to the player account...
I tried but do not works:
Code:
local points = +1
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
db.executeQuery("UPDATE `vanaheim`.`accounts` SET `accounts`.`premium_points` = `premium_points` + ".. points .." WHERE `accounts`.`id` = '" ..getPlayerAccountId(cid).. "';")
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have received 1 premium point.")
item:remove(1)
return true
end