Lbtg
Advanced OT User
- Joined
- Nov 22, 2008
- Messages
- 2,398
- Reaction score
- 165
than you use item it makes all around people look like demon and player itself for 1 minute , with cooldown
i got an example script here
thanks in advance
i got an example script here
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if exhaustion.check(cid, 50268) then
return true and doPlayerSendCancel(cid, "You are Still Exhausted.Time Left :"..exhaustion.get(cid,50268).." Seconds.") and doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
end
if isPlayer(cid) then
local players_around = getSpectators(getThingPos(cid), 3, 3)
local players_around2 = getSpectators(getThingPos(cid), 6, 6)
if #players_around >= 1 then
exhaustion.set(cid, 50268,120)
for i = 1,#players_around do
if isPlayer(players_around[i]) then
doCreatureSay(players_around[i], ""..(cid == players_around[i] and "!DEMON POWER" or "!DEMON!").."",TALKTYPE_ORANGE_1)
end
end
for i = 1,#players_around2 do
if isPlayer(itemEx.uid) then
local tmp = getCreatureOutfit(cid)
local tmp2 = getCreatureOutfit(cid)
tmp.lookType = 123
doSetCreatureOutfit(itemEx.uid, tmp, 15*1000)
doSendAnimatedText(toPosition,"D E M O N",25)
doSendMagicEffect(toPosition,CONST_ME_SLEEP)
end
end
end
end
return true
end
-- doSendMagicEffect(getThingPos(players_around[i]), CONST_ME_HEARTS)
thanks in advance