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

Scripter looking for scripts

kite28

Member
Joined
May 15, 2012
Messages
69
Reaction score
5
Hello, I am looking for some scripts viz

1.script on item after using item X we get a permanent 20% speed on the character

2.after using item x we get a permanent 200hp to our health amd 200 mp

3.after using item x we get +200 hp all the time permanently like auto infinity food

4.after using item x the ability to return to the city once every 24 hours after typing the spell

If someone would be so kind or I can pay something for it, please write on disscord : monarchacieni

My serwer is: GitHub - mattyx14/otxserver at otxserv2 (https://github.com/mattyx14/otxserver/tree/otxserv2/)
 
Script for 20% Permanent Speed Boost

Lua:
function onUse(player, item)
    if not player:isPlayer() then
        return false
    end

    player:addSpeed(20) -- Add 20% speed
    player:removeItem(item:getId(), 1)  -- Remove the used item  << add item what remove if use
    return true
end


Script for Permanent 200HP and 200MP Boost

Lua:
function onUse(player, item)
    if not player:isPlayer() then
        return false
    end

    player:addHealth(200) -- Add 200 health points
    player:addMana(200)   -- Add 200 mana points
    player:removeItem(item:getId(), 1) -- Remove the used item  << add item what remove if use
    return true
end
 
Oh, your knowledge is at a very beginner level.


That won't increase player speed by 20%.


That won't increase player health permanently by 200, but will heal player that value.
your knowledge for that is very high lmao
this script was written on the make in fast
a matter of 2 minutes to rewrite it
because I simply misunderstood
 
Lua:
function getPercentValue(percent, value)
    if tonumber(percent) and tonumber(value) then
        return (value * percent) /100
    end
    return false
end
idk how to use some functions in 1.x but try
Code:
pSpeed = player:getSpeed()
percentSpeed = 20
bonusSpeed = getPercentValue(20, pSpeed)
player:addSpeed(pSpeed + bonusSpeed)
 
Back
Top