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

[Request] Polymorph Spell

MarkSmartRemark

Lua-Noob in Training :D
Joined
Jan 27, 2010
Messages
139
Reaction score
3
Helloooo, is there a way to do the polymorph spell from wow? :p
the target turns into a chicken (i know how to do) and cant attack or cast spells and gets regenerated... im sure its easy, maybe the condition outfit, and the target gets muted? and simple healing over time while the spell is in effect =] rep++ and credits to whoever doess it =]
 
C:/NameServer/Mods/Scripts/CustomSpells/Polymorph.lua

Create it with the name: Polymorph.lua

Code:
local combat, area = createCombatObject(), createCombatArea(AREA_SQUARE1X1)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatArea(combat, area)

local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
for i = 230, 247 do
	addOutfitCondition(condition, {lookTypeEx = i})
end

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

C://NameServer/Mods/Customspells.xml

Put this on the Customspells.xml

PHP:
  <rune name="Polymorph" id="2270" charges="1" maglv="20" exhaustion="2000" blocktype="solid" allowfaruse="1" event="script" value="customspells/polymorph.lua" />
___________
RuneID: 2270
Join in-game with the "Gamemaster Account" and execute this command.

You can test it in some NPC, or summon monster.
 
@up thanks, not exactly what i was looking for though i already had this spell in my distro, i need it to do 4 things basically:

1. Turn Target into Silly Animal [DONE]
2. Mute Target so no spells are able to be cast [?]
3. Slow the Targets Movement Speed(Simple Paralyze) [DONE]
4. Regenerate the Targets Health Depending on Level [?]
 
well i play both i actually got more addicted to tibia than wow lmao, i just find tibia ots sometimes really boring, i just run around as a mage using one hotkey to heal mana and 1 to SD... thats really it... i wanna put alotta custom spells into my wow server to see if i can put some pvp into it... besides that i wont worry about magebombing, bots and alotta other stuff =] i still enjoy tibia but tibia needs new spells then just holding one button to SD... lol =]
 
Bump~


EDIT: umm as far as i know i think theres a doMuteTarget function or something, i saw it somewhere else :D and ive seen several scripts where players are muted i just suck at scripting :p
 
@up thanks, not exactly what i was looking for though i already had this spell in my distro, i need it to do 4 things basically:

1. Turn Target into Silly Animal [DONE]
2. Mute Target so no spells are able to be cast [?]
3. Slow the Targets Movement Speed(Simple Paralyze) [DONE]
4. Regenerate the Targets Health Depending on Level [?]

Lua:
local combat, area = createCombatObject(), createCombatArea(AREA_SQUARE1X1)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatArea(combat, area)

local outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfit, CONDITION_PARAM_TICKS, 20000)
for i = 230, 247 do
	addOutfitCondition(outfit, {lookTypeEx = i})
end

local muted = createConditionObject(CONDITION_MUTED)
setConditionParam(regen, CONDITION_PARAM_TICKS, 20000)

local regen = createConditionObject(CONDITION_REGENERATION)
setConditionParam(regen, CONDITIONATTR_HEALTHGAIN, 100)
setConditionParam(regen, CONDITIONATTR_MANAGAIN, 100)
setConditionParam(regen, CONDITIONATTR_HEALTHTICKS, 1000)
setConditionParam(regen, CONDITIONATTR_MANATICKS, 1000)
setConditionParam(regen, CONDITION_PARAM_TICKS, 20000)

setCombatCondition(combat, outfit)
setCombatCondition(combat, muted)
setCombatCondition(combat, regen)
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
Give it a try. xD Should work. :3 And credit to Ryx~ for the outfit part. Also, if it doesn't, the seperate conditions SHOULD work at least. xD
 
i tried it and the muting worked =] the regeneration didnt work though =( server didnt give me any errors it just didnt work >.< what i might try to do is make another vocation and when the player casts a spell, the target gets muted and turns into vocation "Polymorphed Player" or something ;] and ill increase the regen in the vocations :p theres lots a ways but thanks for the muted >.< rep +
 
Back
Top