• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Points back

Nashalito

New Member
Joined
May 21, 2009
Messages
273
Reaction score
0
Hello , i am looking for a script , when i put my donate item and it's worth etc 5 points , i want my points back to my acc.

Like u use a lever and put ur donate sd and it's worht 5 points, it gonna do that they take it and give points to your account

I am using tfs 0,3,6.
 
try using that
Lua:
local itemm = { [2466] = {points = 14},  --[itemid] = {points = item point}
                 [2467] = {points = 15}
	      }
local pos = {x=1000,y=1000,z=7, stackpos = 1}  -- pos where item will be placed
function onUse(cid, item, frompos, item2, topos)
local v = itemm[getThingFromPos(pos).itemid]
  if not v then
     doPlayerSendCancel(cid,"This isnt a donation item")
  else
     doCreatureSay(cid, "You have got rid of "..getItemNameById(getThingFromPos(pos).itemid).." and recievd you points back.", TALKTYPE_ORANGE_1)
     db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + '"..v.points.."' WHERE `id`= '" .. getPlayerAccountId(cid) .. "' LIMIT 1;")
     doRemoveItem(getThingFromPos(pos).uid)
  end
return item.itemid == 1945 and doTransformItem(item.uid,1946) or doTransformItem(item.uid,1945)
end
 
Last edited:
Back
Top