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

[Request] Redskull + Blessing stones

ekenn123

New Member
Joined
Sep 9, 2007
Messages
61
Reaction score
0
Location
Sweden
Hello, i wonder if it's possible to get a stone (meant for shopsystem) that deletes redskull (and frags) and a stone (if you right click) on it youll get all 5 blessings!

Doesn't care if its a stone or what evah, just wondering if its possbile and if you could make a script ;p thank you !

Bye!

EDIT ; I'm using roxor 8.4
 
For skull
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getCreatureSkullType(cid) == SKULL_RED then
            doCreatureSetSkullType(cid, SKULL_NONE)
            doPlayerSetRedSkullTicks(cid, 0)
            doRemoveItem(item.uid, 1)
            doPlayerSendTextMessage(cid, 25, "Your skull was removed")
    else
        doPlayerSendCancel(cid, "You do not have a red skull.")
    end

    return TRUE
end



And for bless (not tested)
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    doPlayerAddBlessing(cid, 1)
    doPlayerAddBlessing(cid, 2)
    doPlayerAddBlessing(cid, 3)
    doPlayerAddBlessing(cid, 4)
    doPlayerAddBlessing(cid, 5)
    doPlayerSendTextMessage(cid, 25, "You recived all blessing")
    return TRUE
end

rep++?
 
For skull
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getCreatureSkullType(cid) == SKULL_RED then
            doCreatureSetSkullType(cid, SKULL_NONE)
            doPlayerSetRedSkullTicks(cid, 0)
            doRemoveItem(item.uid, 1)
            doPlayerSendTextMessage(cid, 25, "Your skull was removed")
    else
        doPlayerSendCancel(cid, "You do not have a red skull.")
    end

    return TRUE
end



And for bless (not tested)
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    doPlayerAddBlessing(cid, 1)
    doPlayerAddBlessing(cid, 2)
    doPlayerAddBlessing(cid, 3)
    doPlayerAddBlessing(cid, 4)
    doPlayerAddBlessing(cid, 5)
    doPlayerSendTextMessage(cid, 25, "You recived all blessing")
    return TRUE
end

rep++?

I did rep you, it worked ;) thank you
 
Back
Top