• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

CreatureEvent AnimationEffect by LevelAdvance!

Status
Not open for further replies.

Martiimeus

●тнυg●ℓιƒє● ρα¢ 4 єνєя
Joined
Feb 3, 2009
Messages
500
Reaction score
1
Location
gєямαηу
Heyooooooooooooo0,

:p I found this script in Cocot Server 8.41/.42

PHP:
local config = {
    [0] = { "Fist fighting"},
    [1] = { "Club fighting"}, 
    [2] = { "Sword fighting"}, 
    [3] = { "Axe fighting"}, 
    [4] = { "Distance fighting"},
    [5] = { "Shield fighting"}, 
    [6] = { "Fishing fighting"}, 
    [7] = { "Magic level"}, 
    [8] = { "Level"}
}
function onAdvance(cid, skill, oldlevel, newlevel)
local pos = getPlayerPosition(cid)
local positions = {
        {x=pos.x+1,y=pos.y-1,z=pos.z},
        {x=pos.x-1,y=pos.y-1,z=pos.z},
        {x=pos.x+1,y=pos.y+1,z=pos.z},
        {x=pos.x-1,y=pos.y+1,z=pos.z},
        {x=pos.x+1,y=pos.y,z=pos.z},
        {x=pos.x-1,y=pos.y,z=pos.z},
        {x=pos.x,y=pos.y+1,z=pos.z},
        {x=pos.x,y=pos.y-1,z=pos.z}}
        
    for type, variable in pairs(config) do
        if skill == type then
            doCreatureSay(cid, "Raised "..variable[1].." from "..oldlevel.." to "..newlevel.."", TALKTYPE_ORANGE_1)
            for i = 1, table.maxn(positions) do
                    doSendMagicEffect(positions[i],math.random(28,30))

            end

            
        end
    end    
return TRUE
end

Well but Im using TFS 0.2.2 (MS) so I thought this would work on my server too... FAIL! This won't work idk y. So I decided to ask you how to make it work on TFS 0.2.2 (MS)

Hope you guys can help me :D
 
Damnit noobs!!!! My pc got so much laggs yesterday so I throwed my PC on the wall and destroyed it :O lol w00t! Im by my friend atm Lolzas

ownzzzzZZ! 400 posts
 
Last edited by a moderator:
..................................................................................................................................................................................................................................................................................................................................................

any mods here?
 
Status
Not open for further replies.
Back
Top