Bassam421
Lockout RPG/PVP Owner
Hello guys sorry for double post, but i see now that people wont answer the old one, and i have more to go after now ![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
okey let's start with the script to get 100 honor when reach x level
By Bloring Mage!
This one if we can edit to have a storage in database like with premium points, etc Honorpoints so when a player dies it will look up the storage and take one from the person who died, and give it to the one who killed
i'm quite a bit done here, just need a little more info ![Cool :cool: :cool:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thank you in advance! <3
okey let's start with the script to get 100 honor when reach x level
Lua:
local t, storage = {
{300, 10}
}, 256
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_CONSOLE_ORANGE, 'Congratulations! You have advanced to level ' .. v[1] .. ' and you have recived '.. v[2] ..' Premium Points!')
doBroadcastMessage('Congratulations! ' .. getCreatureName(cid) .. ' Advenced To LeveL ' .. v[1] .. ' And Got ' .. v[2] .. ' Premium Points.')
end
end
return true
end
This one if we can edit to have a storage in database like with premium points, etc Honorpoints so when a player dies it will look up the storage and take one from the person who died, and give it to the one who killed
Thank you in advance! <3
Last edited: