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

Lua Items for Level

Zool

Banned User
Joined
Jun 9, 2009
Messages
742
Reaction score
5
Location
Poland/St Wola
Hmm whos delete my lats topic -.- i dont can copy script


Need script :
When player addwence to lv 50 get automatic 10cc

When Sorc/Druid adwence to lv 13 get Wand of dragonbreath/Moonlight rod

Rep ++ for it !
 
100k at 50lvl:

Go to data/creaturescripts/scripts and make a new file called advanceMoney.lua:

HTML:
local config =  {
                levelReach = 50,
                item = 2160,
                count = 10
                }

function onAdvance(cid, skill, oldLevel, newLevel)

if(skill == SKILL__LEVEL and newLevel >= config.levelReach and getPlayerStorageValue(cid, 58557) == -1) then
        setPlayerStorageValue(cid, 58557, 1)
        doPlayerAddItem(cid, config.item, config.count)
end

return TRUE
end

In the same folder, open the file named login.lua and copy this after the last registerCreatureEvent line:

HTML:
registerCreatureEvent(cid, "AdvanceMoney")

Go to data/creaturescripts and add this to the file creaturescripts.xml:

HTML:
<event type="advance" name="AdvanceMoney" event="script" value="advanceMoney.lua"/>


You can modify it very easily to make it give wands/rods to other characters.
 
Back
Top Bottom