• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Premium Points Runes

Wazzap

Killing Elite
Joined
Jun 15, 2010
Messages
124
Reaction score
4
Location
London / Poland
I have for you rune which is adding points up to shopu for player if we will apply it to ourselves.
20gfl9t.jpg


Data/Actions/Scripts/pkt.lua
LUA:
local cfg = 
{
    points = 100,
    effect = CONST_ME_GIFT_WRAPS
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(not isPlayer(itemEx.uid)) then
        return false
    end

    db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. cfg.points .. " WHERE `name` = '" .. getAccountByName(getCreatureName(itemEx.uid)) .. "' LIMIT 1;")
    doCreatureSay(cid, "You have received " .. cfg.points .. " premium points!", TALKTYPE_ORANGE_1, false, nil, toPosition)
    doSendMagicEffect(toPosition, cfg.effect)
    doRemoveItem(item.uid, 1)
    return true
end
Data/Actions.xml
LUA:
<action actionid="XXX" event="script" value="pkt.lua"/>

XXX = ID item or rune what will add premium point
 
yeah,,u ont make this rune,is Cykotitan,he need credits
 
@Cyko
what's up with that n00b talk!? That's a first! LOL
@Cyber
He's being sarcastic.(Behaving like a n00b)
 
Back
Top