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

change magic effect after level up.

maciekslawny

New Member
Joined
Jul 10, 2012
Messages
23
Reaction score
0
Hello! I use TFS 0.4 .
When I level up my character getting magic efect. like in the pictrue below :
efektjpg_wnernpx.jpg


How can I change this effect for another?
PLEASE HELP ME :):) rep +++
 
Post your script in CreatureScripts/Scripts
If you dunno where is it post your creaturescripts.xml

-- Rules --
It's illegal to bump before 24h since your post or last bump

For the next time be careful to not get your post deleted.
 
Last edited:
me creaturescripts.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>

-<creaturescripts>

<event value="login.lua" event="script" name="PlayerLogin" type="login"/>

<event value="guildmotd.lua" event="script" name="GuildMotd" type="joinchannel"/>

<event value="mail.lua" event="script" name="Mail" type="receivemail"/>

<event name="SaveReportBug" type="reportbug" script="reportbug.lua"/>

<event value="advancesave.lua" event="script" name="AdvanceSave" type="advance"/>

<event value="idle.lua" event="script" name="Idle" type="think"/>

<event value="skullcheck.lua" event="script" name="SkullCheck" type="think"/>

<event value="monster_weapon_upgrade.lua" event="script" name="MonstersWeaponUpgrade" type="kill"/>

<event name="DoorKey" type="death" script="Doorkey.lua"/>

</creaturescripts>
 
Last edited by a moderator:
Would you post your advance/advancesave file ? " in "creaturescripts/scripts"
Code:
local config = {
    savePlayersOnAdvance = true
}

function onAdvance(cid, skill, oldLevel, newLevel)
    if(config.savePlayersOnAdvance) then
        doPlayerSave(cid, true)
    end

    return true
end
I use truk 3777 0.4 TFS
 
Last edited by a moderator:
Whatever u are using i think it must be there on creaturescripts or maybe in (mods)
Would you post your mods.xml

not exist mods.xml :( in ots/mods file are only custom monsters / custom spells firstitems , buy premium command and highscorebook. nothing about level up effect i'm shure.
 
It's in the source code at line 1939 in player.cpp:
Code:
g_game.addMagicEffect(getPosition(), MAGIC_EFFECT_BIGCLOUDS);

I don't know how it is possible. i changed MAGIC_EFFECT_BIGCLOUDS for MAGIC_EFFECT_FIREWORK_YELLOW , saved and restart server and all time when I level up I see BIGCLOUDS :(:(:( how is it possible?
i tried it few times and all time same :(:(
 
Back
Top