• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

Mana train (drain) spell [Canary revscript]

Joined
Feb 16, 2017
Messages
55
Solutions
2
Reaction score
9
Przemyslaw1101 submitted a new resource:

Mana drain spell [Canary revscript] - Manadrain

Hi.
I've just created mana drain spell that drains x mana every x seconds for x seconds.
The mana is added to the magic level progress.
If someone can improve the code I will be grateful.
Script: data\scripts\spells\

LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)


local function drainManaTick(creatureId, interval, remainingTicks, drainAmount)
    local creature =...

Read more about this resource...
 
Back
Top