• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Change The Level Points To Frag Points

Owner Maydel

Evolera.Tk
Joined
Aug 16, 2015
Messages
302
Reaction score
40
Location
Egypt
I Need Change This Scripts From Level Points To Frag Points Please Some One Help.
Code:
local t, storage = {
  -- level -- amount points (delete this line)..
  {250, 5},
  {300, 10},
  {400, 10},
  {500, 15},
  {600, 25}
}, 259
function onAdvance(cid, skill, oldLevel, newLevel)
  if skill ~= SKILL__LEVEL then
  return true
  end
  for i = 1, #t do
  local v = t[i]
  if newLevel >= v[1] and getCreatureStorage(cid, storage) < i then
  db.executeQuery('UPDATE accounts SET premium_points=premium_points+'.. v[2] ..' WHERE id=' .. getPlayerAccountId(cid))
  doCreatureSetStorage(cid, storage, i)
  doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, 'Congratulations! You have advanced to level ' .. v[1] .. ' and you have earned '.. v[2] ..' Premium Points!')
  end
  end
  return true
end
 
Maybe this can help you (2nd Post) ;

https://otland.net/threads/frag-problem.165023/#post-1590873

maybe you can get some information from that or just parts from the scripts and try to mix them as you like. :)

Btw, There is a rule.

10. Tagging Users:
- Please refrain from tagging specific users in your posts unless you have their permission to do so.

I don't know if you talked to HalfAway and he's cool with it, but just so you know.
 
go to ur datebas and make Frags point and
db.executeQuery('UPDATE accounts SET Frags_points=Frags_points+'.. v[2] ..' WHERE id=' .. getPlayerAccountId(cid))
 
Back
Top