• 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!

[HELP] Both Scripts Please!

miguelshta

Member
Joined
Mar 21, 2009
Messages
356
Solutions
1
Reaction score
18
Location
Sonora, Mexico
Script 1#: the healing effect and mana effect
when the player heals uses red effect and when player are using manas on him use blue effect in mana heal!
please help me to add this
25yyv4z.png


Script 2#: Roshamuul Bone Crushers
the script function is:
when the player clicks on this x item it have x chanse to summoner frazzlesmaw or to get x item
zybzwn.jpg

Thank for the attention!
 
Request #1
doSendMagicEffect(getCreaturePosition(itemEx.uid), CONST_ME_MAGIC_BLUE)
doSendMagicEffect(getCreaturePosition(itemEx.uid), CONST_ME_MAGIC_RED)

Request #2
Code:
local item_x = 1111
local count_x = 1
local chance = 20 -- to summon monster

function onUse(cid, item, fromPosition, itemEx, toPosition)
    local rand = math.random(100)
    if rand > chance - 100 then
        doCreateMonster("frazzlesmaw", getCreaturePosition(cid))
    else
        doPlayerAddItem(cid, item_x, count_x, true)
    end
    return true
end
 
Request #1
doSendMagicEffect(getCreaturePosition(itemEx.uid), CONST_ME_MAGIC_BLUE)
doSendMagicEffect(getCreaturePosition(itemEx.uid), CONST_ME_MAGIC_RED)

Request #2
Code:
local item_x = 1111
local count_x = 1
local chance = 20 -- to summon monster

function onUse(cid, item, fromPosition, itemEx, toPosition)
    local rand = math.random(100)
    if rand > chance - 100 then
        doCreateMonster("frazzlesmaw", getCreaturePosition(cid))
    else
        doPlayerAddItem(cid, item_x, count_x, true)
    end
    return true
end

thank you xikini but the request# where I add him? sorry
 
Back
Top