i mean when i wear a ring i got effect "on" and when i move the ring i got effect "off"Bump after 15 minutes? Still have no idea what effect are u talking about.
local config = {
text_onEquip = "Ring ON",
color_onEquip = COLOR_YELLOW,
text_onDeEquip = "Ring OFF",
color_onDeEquip = COLOR_RED
}
function onEquip(cid, item, slot)
return doSendAnimatedText (getThingPos(cid), config.text_onEquip, config.color_onEquip)
end
function onDeEquip(cid, item, slot)
return doSendAnimatedText (getThingPos(cid), config.text_onDeEquip, config.color_onDeEquip)
end
<movevent type="Equip" itemid="2123" slot="ring" event="script" value="ring.lua"/>
<movevent type="DeEquip" itemid="2123" slot="ring" event="script" value="ring.lua"/>
yea works perfectThis?
Code:local config = { text_onEquip = "Ring ON", color_onEquip = COLOR_YELLOW, text_onDeEquip = "Ring OFF", color_onDeEquip = COLOR_RED } function onEquip(cid, item, slot) return doSendAnimatedText (getThingPos(cid), config.text_onEquip, config.color_onEquip) end function onDeEquip(cid, item, slot) return doSendAnimatedText (getThingPos(cid), config.text_onDeEquip, config.color_onDeEquip) end
Code:<movevent type="Equip" itemid="2123" slot="ring" event="script" value="ring.lua"/> <movevent type="DeEquip" itemid="2123" slot="ring" event="script" value="ring.lua"/>
Can you Explain more?How to add to this script that when you have weared ring this text showing all time every 5 s?