• 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 Rune TFS 0.3.4PL2

pawelzion

New Member
Joined
May 5, 2009
Messages
132
Reaction score
0
Location
Poland
Hello,
I need a script to premium rune.
The rune must give for player 7 days premium account.
The id rune can be 2298.
Thanks for help
 
Lua:
function onUse(cid, item, frompos, item2, topos)
doPlayerAddPremiumDays(cid, 7)
doPlayerSendTextMessage(cid, 22, "You have been credited with 7 premium account days.")
return TRUE
end
Think thats right I cannot script but I reckon its ok
Save it as premmyrune.lua

Lua:
<action itemid="2298" event="script" value="Premmyrune.lua" />
Copy into actions.xml
 
It works , but the rune doesn't removing.But she become stay on floor continuously, it passes away from backpack, but cure from floor not.
I apologize for my english, but I teach he it only.
Help please.
 
Lua:
function onUse(cid, item, frompos, item2, topos)
    if getPlayerPremiumDays(cid) == FALSE then
	doPlayerAddPremiumDays(cid, 7)
        doPlayerSendTextMessage(cid, 22, "You have been credited with 7 premium account days.")
	doRemoveItem(item.uid, 1)
    else
        doPlayerSendCancel(cid, "You already have premium days.")
    end
    return TRUE
end
 
Can anyone edit this script?
I need script giving 7 days pacc, even, when player owns some certain amount of day pacc, but it passed away after use next rune.Because this script don't add new days pacc when player have pacc.
 
Lua:
function onUse(cid, item, frompos, item2, topos)
        doPlayerAddPremiumDays(cid, 7)
        doPlayerSendTextMessage(cid, 22, "You have been credited with 7 premium account days.")
        doRemoveItem(item.uid, 1)
    end
    return TRUE
end
This is fixed
 
Last edited:
Code:
function onUse(cid, item, frompos, item2, topos)
        doPlayerAddPremiumDays(cid, 7)
        doPlayerSendTextMessage(cid, 22, "You have been credited with 7 premium account days.")
        doRemoveItem(item.uid, 1)
end

Fixed. <-<
 
I've never tried that, but I think this is what you should change:

Code:
function onUse(cid, item, frompos, item2, topos)
        doPlayerAddPremiumDays(cid, 7)
        doPlayerSendTextMessage(cid, [B][COLOR="Red"]22[/COLOR][/B], "You have been credited with 7 premium account days.")
        doRemoveItem(item.uid, 1)
end
 
Back
Top