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

Premium

Mr Evil

New Member
Joined
Mar 31, 2008
Messages
279
Reaction score
0
Hi.. Im requesting a code that makes give you premium by clicking a scroll (and then scroll dissapears)..

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
               end
       end

Please anyone ? :wub:
 
ok!
go to data/actions/script and place a file named: Premmy
e inside of it places:

function onUse(cid, item, frompos, item2, topos)
SCROLL = idScroll
PREMMY_DAYS = daysOfPremium

if item.itemid == SCROLL then
doPlayerAddPremiumDays(cid, PREMMY_DAYS)
doRemoveItem(item.uid, 1)
return FALSE
end
return TRUE
end

RED: id number of the scroll.
BLUE: premmy days that will add.
-----------------
and in data/action.xml add:

<action itemid="IdScroll" script="premmy.lua" />

RED: same id number of the scroll.
 
Back
Top