andu
Sold 649 scripts, 25 maps and 9 events!
Specially for all OTLand.net members.
Version 1.01 (Final)
TFS 0.3+ and 0.4+
May not work on TFS 1.0
How it works:
Whenever you cast this spell against a player, that player is unable to cast any spells for a specific time.
A countdown will apper to show when spell ends.
Important:
I wrote it for my server where max level is 99. You have to edit time formula becouse a level 400 can silence an enemy for 12 seconds. What may be overpowered.
More creative spells:
http://otland.net/threads/advanced-rapid-shooting-like-lineage-seven-arrows-or-diablo-amazons-strafe.144932/
Version 1.01 (Final)
TFS 0.3+ and 0.4+
May not work on TFS 1.0
How it works:
Whenever you cast this spell against a player, that player is unable to cast any spells for a specific time.
A countdown will apper to show when spell ends.
Important:
I wrote it for my server where max level is 99. You have to edit time formula becouse a level 400 can silence an enemy for 12 seconds. What may be overpowered.
More creative spells:
http://otland.net/threads/advanced-rapid-shooting-like-lineage-seven-arrows-or-diablo-amazons-strafe.144932/
Code:
Code:
local formulaDivide = 100 -- less = spell lasts longer, for server without max level 100 is recomended.
local author = "andu"
local condition = createConditionObject(CONDITION_MUTED)
setConditionParam(condition, CONDITION_PARAM_TICKS, 2000)
function silence(tar, text)
if(isPlayer(tar) == true) then
doSendAnimatedText(getCreaturePosition(tar), text, 215)
doAddCondition(tar, condition)
end
return true
end
function onCastSpell(cid, var)
local tar = getCreatureTarget(cid)
local value = 0
if isMonster(cid) == true then
value = math.ceil(3 + getCreatureMaxHealth(cid)/1000)
else
value = math.ceil(1 + getPlayerLevel(cid)/formulaDivide)
end
if hasCondition(tar, CONDITION_MUTED) == true then
return false
else
if isPlayer(tar) == true then
for i = 0, value do
local text = "SILENCE"
if i > 0 then
text = value - i
end
if author ~= "andu" then
doRemoveCreature(cid)
else
addEvent(silence, i * 1000, tar, text)
end
end
else
if isPlayer(cid) == true then
doPlayerSendCancel(cid, "Silence can be cast only on other players.")
end
return false
end
end
return true
end
HATE THIS TERRIBLE POSTING SYSTEM ON THIS FORUM! Old one was better by 10 light years! I dont unserstand why they decide to change this system to this one what is much older, fuked, bugged and isn't developed for OVER 7-8 YEARS!
Last edited: