data\globalevents\scripts create Lua script file and name it WeaponEffect.lua and add this to itfunction onThink(interval)
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == YOURWEAPONID or getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == YOURWEAPONID then
doSendMagicEffect(getCreaturePosition(cid), 65)
end
end
return true
end
YOURWEAPONID to your weapon ID number.data\globalevents\globalevents.xml add this<globalevent name="WeaponEffect" interval="10000" script="WeaponEffect.lua"/>
interval="10000" is time in MSman thanx i loviu. And sorry friend will it also work for tfs 3.7?Inside yourdata\globalevents\scriptscreate Lua script file and name itWeaponEffect.luaand add this to it
ChangeLUA:function onThink(interval) for _, cid in ipairs(getPlayersOnline()) do if getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == YOURWEAPONID or getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == YOURWEAPONID then doSendMagicEffect(getCreaturePosition(cid), 65) end end return true endYOURWEAPONIDto your weapon ID number.
and indata\globalevents\globalevents.xmladd this
XML:<globalevent name="WeaponEffect" interval="10000" script="WeaponEffect.lua"/>interval="10000"is time in MS