• 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!

Premium Points for Gift Shop for Guilds

Ray Rewind

Doctor
Joined
Jun 6, 2009
Messages
1,349
Reaction score
76
Location
Germany
Hey I'm searching for 3 Scripts first one is.



I would like to have 3 Scripts I hope you can help me !

Script 1.
Guild has a war between each other the reward should be not gold it should be Premium Points to buy Items inside the gift shop. (Only leader receive points to prevent the abuse of the points by new created characters implented inside the guild.


Another script is

Script 2.
IF Guild has 10+ Players and all are 120+ they players above 120 will receive 50 Premium Points once (only 1 time with storage set).

Script 3.

Guilds with atleast 10 players above level 100 can earn kills from another guild and can exchange the kills for Premium Points.


I hope you can help me out!
 
use this one for the 2º option
just need edit this for your own reward points
{100, 5},
{200, 25}

Code:
 local t, storage = {
  -- level -- amount points (delete this line)..
    {100, 5},
    {200, 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
Code:
<event type="advance" name="advreward" event="script" value="advreward.lua"/>
this is for creaturescripts
 
Back
Top