abdala ragab
Excellent OT User
An old effect that was working in xml servers, now it works in my tfs 1.2 servers But it is added in npc
The problem that I encountered is that it shows only forms of effect and does not pronounce the words written in the text
Like {"Help", {"Hunting" {"Quests"
I want to help get it working properly. Thank you everyone

The problem that I encountered is that it shows only forms of effect and does not pronounce the words written in the text
Like {"Help", {"Hunting" {"Quests"
I want to help get it working properly. Thank you everyone
LUA:
xml
<npc name="Lola" script="efekciarz.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="142" head="114" body="0" legs="95" feet="114" corpse="2212"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell chairs, tables, plants, containers, pillows, tapestries and more. Everything for 500 gold pieces." />
<parameter key="shop_buyable" value="wooden chair,3903,500;sofa chair,3905,500;red cushioned chair,3901,500;green cushioned chair,3902,500;tusk chair,3906,500;ivory chair,3907,500;water-pipe,2093,500;coal basin,3932,500;big table,3911,500;small table,3908,500;stone table,3912,500;tusk table,3913,500;chest,1740,500;barrel,3919,500;harp,3934,500;bird cage,3922,500;bamboo table,3914,500;bamboo drawer,3921,500;drawer,3915,500;exotic flower,2107,500;potted flower,2104,500;piano,3933,500;globe,3923,500;rocking chair,3904,500;indoor plant,3937,500;crate,1739,500;christmas tree,3910,500;dresser,3916,500;pendulum clock,3927,500;locker,3917,500;trough,3918,500;table lamp,3924,500;bookcase,6373,500;box,1738,500;box2,1742,500;large amphora,3931,500;mirror,1845,500;blue tapestry,1872,500;green tapestry,1860,500;orange tapestry,1866,500;pink tapestry,1857,500;red tapestry,1869,500;white tapestry,1880,500;yellow tapestry,1863,500;small purple pillow,1678,500;small green pillow,1679,500;small red pillow,1680,500;small blue pillow,1681,500;small orange pillow,1682,500;small turquoise pillow,1683,500;small white pillow,1684,500;heart pillow,1685,500;blue pillow,1686,500;red pillow,1687,500;green pillow,1688,500;yellow pillow,1689,500;round blue pillow,1690,500;round red pillow,1691,500;round purple pillow,1692,500;round turquoise pillow,1693,500;oval mirror,1845,750;round mirror,1848,750;edged mirror,1851,750;wooden stake,5941,10000;" />
</parameters>
</npc>
LUA:
Lua
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
end
function onCreatureTurn(creature)
end
function onCreatureSay(cid, type, msg)
end
function onCreatureChangeOutfit(creature)
end
local gdzie = {
co = {-- w tej tabeli podajemy podtabele z wyswietlanym tekstem i miejscem w ktorym ma sie wyswietlic
{"Help", {x=1000, y=1000, z=7}},
{"Hunting", {x=2988, y=3111, z=7}},
{"Quests", {x=2988, y=3113, z=7}},
{"Triner", {x=2988, y=3116, z=7}},
{"Upgrad", {x=2995, y=3117, z=7}},
{"Evnto", {x=2998, y=3117, z=7}},
{"Prices !", {x=2998, y=3109, z=7}},
{"City", {x=2995, y=3109, z=7}},
{"Shoping", {x=2995, y=3123, z=7}},
{"Shoping", {x=2998, y=3123, z=7}},
{"Shoping", {x=2994, y=3132, z=7}},
{"House", {x=2991, y=3131, z=7}},
{"Shoping", {x=2992, y=3123, z=6}},
{"Shoping", {x=2992, y=3132, z=6}},
{"Shoping", {x=2998, y=3132, z=6}},
{"Key Coins", {x=2992, y=3127, z=6}},
{"Key Token", {x=2998, y=3127, z=6}},
{"Shoping", {x=2996, y=3124, z=6}},
},
efekty = {0, 1, 2, 3, 12, 13, 14, 18, 19, 22, 26, 27, 28, 29, 30, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51}, -- efekty ktore pojawiaja sie na danym miejscu
coile = 1.5 -- czas w sekundach miedzy pojawieniami sie efektow
}
function wyswietl(gdzie)
for i=1, #gdzie.co do
doSendAnimatedText(gdzie.co[i][2], gdzie.co[i][1], math.random(1, 254))
doSendMagicEffect(gdzie.co[i][2], gdzie.efekty[math.random(1, #gdzie.efekty)])
end
addEvent(wyswietl,(gdzie.coile*1000),gdzie)
efektstart = 1
end
function onThink()
if efektstart ~= 1 then
addEvent(wyswietl,1,gdzie)
end
end

Last edited: