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

Spell Drunk Missile Rune

Siramix

CEO
Senator
Premium User
Joined
Jan 6, 2010
Messages
3,554
Reaction score
262
Location
Sweden, Europe
Hello!

I'm brought here today to release a very useful script for
open-tibia servers.

What is it?
It's a spell rune, just with the same function as a soulfire rune. Just with another condition installed.
It makes your target heavily drunk. This may be very useful in war, and so on.

How does the spellrune look?
Looktype:
eplsvr.png

The spellrune may be changed by your own wishes. But I've installed it with spell rune ID 2294.
And you will install it in the same way in case you are following carefully.

What does it do?
As stated. It's a normal spell rune, such as soulfire. But with another condition to make it a bit unique.
It will make your target heavily drunk!

Script and Guide:

Spells.xml
First of all, enter data/spells/spells.xml and add this line:
Code:
<rune name="Drunk Missile" id="2294" allowfaruse="1" charges="2" lvl="25" maglv="0" exhaustion="2000" blocktype="solid" event="script" value="attack/drunk strike.lua"/>

Drunk Strike.lua
Second step. Enter data/spells/scripts/attack - and copy a rune there. Rename it to drunk strike
and empty the file. Paste this script in the empty .lua file.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)

local condition = createConditionObject(CONDITION_DRUNK)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

Items.xml
Now the rune script is done and installed.
We're heading to the ITEM. (Data/items/items.xml)

Search for the itemid 2294 and replace it's lines with this:
Code:
	<item id="2294" article="a" name="drunk missile rune">
		<attribute key="weight" value="120" />
		<attribute key="charges" value="2" />
	</item>

Now it's all done!
:thumbup:

Is the script tested?
It's tested, and I verify the script as complete.
Tested on: TFS 3.6.0pl1(Crying Damson)
It works properly with TFS 0.4

Hope you will enjoy it, because I do!

Your sincerely,
Siramix!
 
LOL, what ss do you want? it's a rune that makes you drunk, not some animated spell/rune with lots of effects -.-''
 
Back
Top