• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Request] Ring Script

cuba

New Member
Joined
Feb 24, 2015
Messages
136
Reaction score
2
hello otlander can you give me script if i wear a ring i got effect "ring Active" if i throw it i got effect "ring not avtive"
@Limos @heba
 
when i wear ring i got effect bro and when i move it i got other effect

explain:if ring got effect if no ring got other effect
 
u can add this cod in ring script
doSendAnimatedText(getPlayerPosition(cid),"ON", TEXTCOLOR_YELLOW)
 
This?
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"/>
 
This?
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"/>
yea works perfect
 
Back
Top Bottom