Advertisement
RoksasNunes

Quest_points

Apr 21st, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local cfg = {
  2.     points = 15, -- Points necessarios
  3.     gain = 2494, -- Item ID gained
  4.     amount = 1, -- Quantidade
  5. }
  6.  
  7. function onUse(cid, item, frompos, item2, topos)
  8.     if doAccountRemovePoints(cid, cfg.points) then
  9.         doPlayerAddItem(cid, cfg.gain, cfg.amount)
  10.             doSendAnimatedText(getCreaturePosition(cid), "DONATE!", math.random(1, 255))
  11.                 else
  12.                     doPlayerSendTextMessage(cid, 20, "Você não tem points o suficiente, você tem [Points: "..getAccountPoints(cid).."]")
  13.                 end
  14.                     return true
  15.                 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement