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

Spell Wolf Transform

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,984
Solutions
2
Reaction score
119
Location
Germany
GitHub
Shawak
Easy script they transform you into a wolf and add shielding and make you faster.

Version:
TFS 0.3.5pl1
for TFS 0.3.6 make this.

Credits:
100% by me ^_^

Script:
- data/spells/scripts/wolf.lua
Lua:
--[[
	Spell by Shawak
	Wolf transform
]]--

local time = 120 * 1000        -- 120 * 1000 = 2 min
local addShielding = 20        -- how much shielding should be added


local wolf = {lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, time)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, addShielding)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)

local speed = createConditionObject(CONDITION_HASTE)
setConditionParam(speed, CONDITION_PARAM_TICKS, time)
setConditionFormula(speed, 0.7, -56, 0.7, -56)
setCombatCondition(combat, speed)

local outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfit, CONDITION_PARAM_TICKS, time)
addOutfitCondition(outfit, wolf.lookTypeEx, wolf.lookType, wolf.lookHead, wolf.lookBody, wolf.lookLegs, wolf.lookFeet)
setCombatCondition(combat, outfit)

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, time)
setCombatCondition(combat, exhaust)

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

- data/spells/spells.xml
Lua:
	<instant name="Wolf Transform" words="utito trans wolf" lvl="40" mana="400" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="wolf.lua">
		<vocation name="Druid"/>
		<vocation name="Elder Druid"/>
	</instant>

I hope you like it :thumbup:.

EDIT:

Screenshot:
(As requested by Bean: Here)
nfoaj6.png


Regards,
Shawak
 
Last edited:
Screen SHOT?


~Edit

Very good, spell good
 
Last edited:
* add strooong haste
* add 3x hp (condition)
* add 90 fist fighting (condition)
:)
 
Cool idea, might become usefull for many.
 
Error!

PHP:
[03/09/2009 14:27:22] luaSetCombatFormula(). This function can only be used while loading the script.
[03/09/2009 14:27:22] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/wolf.lua)
[03/09/2009 14:27:22] data/spells/scripts/wolf.lua:32: 'end' expected (to close 'function' at line 31) near '<eof>'

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaCreateCombatObject(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatCallBack(). This function can only be used while loading the script.

i use tfs 0.3.5
 
PHP:
[03/09/2009 14:27:22] luaSetCombatFormula(). This function can only be used while loading the script.
[03/09/2009 14:27:22] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/wolf.lua)
[03/09/2009 14:27:22] data/spells/scripts/wolf.lua:32: 'end' expected (to close 'function' at line 31) near '<eof>'

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaCreateCombatObject(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatParam(). This function can only be used while loading the script.

[03/09/2009 14:27:22] Lua Script Error: 
[03/09/2009 14:27:22] luaSetCombatCallBack(). This function can only be used while loading the script.

i use tfs 0.3.5

I'm using TFS 0.3.5 and i have no problem with this script, did you modified it?
 
Back
Top