• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

put effect name on potion

Andrezitta

New Member
Joined
Sep 19, 2025
Messages
8
Reaction score
1
Location
Brasil
Can someone please add a name effect to this script? Like gift.
The name buff will appear every 5 seconds.
Script:

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 60 * 1000) -- 10 minutes
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEE, 30)

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not isKnight(cid) and not isKnight(cid)) then
doCreatureSay(cid, "Somente Knights podem beber este fluido.", TALKTYPE_ORANGE_1, cid)
return true
end

if(doAddCondition(cid, condition)) then
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED)
doRemoveItem(item.uid)
doCreatureSay(cid, "Agora voce esta mais forte!.", TALKTYPE_ORANGE_1, cid)
end

return true
end
 

Attachments

  • unknown_2025.10.05-21.05_1.gif
    unknown_2025.10.05-21.05_1.gif
    4.8 MB · Views: 29 · VirusTotal
Back
Top