Ok.. im new and im just learning about scripts :c..
used to play tibia YEARS ago, when only XML servers were around.. so theres a bunch of new stuff i dont understand..
since i started my OT with MySQL in 9.1, they have removed the animated text (kinda..)
so i got forced to replace it with creature say (orange text) function.. and finally managed to create an script for a "x skill LvUp!"
plus with magic effects AND a sound effect for each skill up effect (Thanks Mock for the Tibiando API)..
now that i managed to do this sucessfully, i wanted to step a little farther, i tried.. but oh well i just can't get it :/ .. and i have to admit that im a noob at scripting >_<..
so yeah here was my first attemp
in fact, i want to add sound fxs to each attack.. but still i wanna reach something more specific (sounds for swords, arrows and magic..)
tried many ways but i just cant get it
if anyone can help me i would really appreciate it, i feel very outdated with Tibia and all this is really neew,
i could share the script i made for level ups + sounds oor something dunno >_< thankius
used to play tibia YEARS ago, when only XML servers were around.. so theres a bunch of new stuff i dont understand..
since i started my OT with MySQL in 9.1, they have removed the animated text (kinda..)
so i got forced to replace it with creature say (orange text) function.. and finally managed to create an script for a "x skill LvUp!"
plus with magic effects AND a sound effect for each skill up effect (Thanks Mock for the Tibiando API)..
now that i managed to do this sucessfully, i wanted to step a little farther, i tried.. but oh well i just can't get it :/ .. and i have to admit that im a noob at scripting >_<..
so yeah here was my first attemp
LUA:
function onAttack(cid, target)
if isPlayer(cid) and isMonster(target) then
local sock = getSocket(cid)
if sock then
sock:send('EF=lup.mp3\n')
end
end
return TRUE
end
in fact, i want to add sound fxs to each attack.. but still i wanna reach something more specific (sounds for swords, arrows and magic..)
tried many ways but i just cant get it
LUA:
function onCombat(cid, target)
if isPlayer(cid) and isMonster(target) then
local sock = getSocket(cid)
if sock then
sock:send('EF=lup.mp3\n')
end
end
return TRUE
end
if anyone can help me i would really appreciate it, i feel very outdated with Tibia and all this is really neew,
i could share the script i made for level ups + sounds oor something dunno >_< thankius
Last edited: