RevScript Znote Shop Scroll

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Hola,


Aqui os comparto el Revscript al utilizar un Scroll, este dara 5 Puntos para el Webshop, noten que los puntos webshop son los que se obtienen pagando con dinero real,
Utilizado para comprar en el Webshop y también para el character auction.

Código:
local shopPoint = Action()

function shopPoint.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local points = 5 -- quantidad de Shop Points que dara
  db.query("UPDATE `znote_accounts` SET `points` = `points` + '" .. points .. "' WHERE `id` = '" .. player:getAccountId() .. "';")
  player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You received "..points.." Shop Points")
  item:remove(1)
  return true
end

shopPoint:id(5957) -- Id del Scroll
shopPoint:register()
 
Arriba