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

TFS 1.X+ utevo lux bonus for premium [TFS 1.2]

leik meris

Banned User
Joined
Feb 17, 2010
Messages
126
Solutions
1
Reaction score
60
Hello everyone, I'm looking for a script to give all premium players light as a permanent utevo lux, thanks!
 
Solution
E
how do you do this ? you can share ?

LUA:
local condition = Condition(CONDITION_LIGHT)
condition:setParameter(CONDITION_PARAM_LIGHT_LEVEL, 11)
condition:setParameter(CONDITION_PARAM_LIGHT_COLOR, 215)
condition:setParameter(CONDITION_PARAM_TICKS, -1)

function onLogin(player)
    if player:isPremium() then
        player:addCondition(condition)
    end

    return true
end
how do you do this ? you can share ?

LUA:
local condition = Condition(CONDITION_LIGHT)
condition:setParameter(CONDITION_PARAM_LIGHT_LEVEL, 11)
condition:setParameter(CONDITION_PARAM_LIGHT_COLOR, 215)
condition:setParameter(CONDITION_PARAM_TICKS, -1)

function onLogin(player)
    if player:isPremium() then
        player:addCondition(condition)
    end

    return true
end
 
Solution
Add a line in xml for login here
data/creaturescripts/creaturescripts.xml
<event type="login" name="Premium_Login_Light" script="premium_login_light.lua" />

Put the script from above in the script folder, as a .lua file.
data/creaturescripts/scripts/premium_login_light.lua
thank you very much everyone!
Post automatically merged:

it worked but the light goes out in less than 3 seconds, how do I make it stay fixed?
 
Last edited:

Similar threads

V
Replies
4
Views
214
verdehile95
V
Back
Top