Martiimeus
●тнυg●ℓιƒє● ρα¢ 4 єνєя
Heyooooooooooooo0,
I found this script in Cocot Server 8.41/.42
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
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