Pitufo™
InfinityOT.com
How it works?
Well when you advance a skill it will show ontop of your head a message of the skill you advanced and the level of the skill, also it will send arounf your player animations!
Tested on TFS 0.3 Beta2
Script for creaturescripts:
Image:
Same script but in (serious) lol requested by Sizaro!
Here!
Enjoy it!
Well when you advance a skill it will show ontop of your head a message of the skill you advanced and the level of the skill, also it will send arounf your player animations!
Tested on TFS 0.3 Beta2
Script for creaturescripts:
PHP:
--Script made by Pitufo/Haifurer!
local config = {
[0] = { "Fist skill UP", 30}, -- 30 = variable[2] -- Animation effect
[1] = { "Club skill UP", 30}, -- 30 = variable[2] -- Animation effect
[2] = { "Sword skill UP", 30}, -- 30 = variable[2] -- Animation effect
[3] = { "Axe skill UP", 30}, -- 30 = variable[2] -- Animation effect
[4] = { "Distance skill UP", 30}, -- 30 = variable[2] -- Animation effect
[5] = { "Shield skill UP", 30}, -- 30 = variable[2] -- Animation effect
[6] = { "Fishing skill UP", 30}, -- 30 = variable[2] -- Animation effect
[7] = { "Magic level UP", 30}, -- 30 = variable[2] -- Animation effect
[8] = { "Level UP", 30} -- 30 = variable[2] -- Animation effect
}
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, ""..variable[1].." ["..newlevel.."]", TALKTYPE_ORANGE_1)
for i = 1, table.maxn(positions) do
doSendMagicEffect(positions[i],variable[2])
end
end
end
return TRUE
end
PHP:
<event type="advance" name="advance" script="advance.lua"/>
Image:
Same script but in (serious) lol requested by Sizaro!
Here!
Enjoy it!
Last edited: