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

Requests spell!.. [Mage][Rep++]

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
Hello i wanna Requests a spell for mage..
The mage have a spell if the shoot the spell ex "EXURA TEST"
its come trees around the target for 1-2 sec and the target cant move .. ?
so it is possible to do that ?

Spellmaker/target = Black ..
Trees = Green
 
sec, making it right away... give me a min

Put in Data/Spells/Spells.xml
PHP:
<instant name="feel blocked!" words="exura test" direction="1" lvl="1" maglv="1" mana="1" soul="0" exhaustion="1" prem="0" enabled="1" script="blocked.lua">
<vocation id="1"/>
</instant>

Name a doc "Blocked" or what ever in
Data/spells/scripts/
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 2767)

local area = createCombatArea( { {1, 1, 1}, {1, , 1}, {1, 1, 1} } )
setCombatArea(combat, area)

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


That will create bushes around the target.. but how to add a decay time on them I'm not sure about.. going to check that..


Ps: didn't test the spell... hope it works at least... then it's only decay problem left...

you could add something that you aren't using in the map and from there, inside items.xml set a decay time ;)

Edit: Don't forgett to change the voc thing to whatever are used in your server!
 
Last edited by a moderator:
So the busehes will be there for ever?

Atm on that spell yes.. but you can find an item that you don't use and use that to the spell... and set decay="0" in items.xml on that item..

Btw: some servers allow decay items that is already on map when server open up, to not decay at all even if they have a decay on items.xml... check if you really have that..

etc fire fields... you add a fire field with mapeditor.. a fire field that have decay ticks... but wont disappear because it was already on the map before server was open up fully ;)

check that :p

if it's possible on your server simply just add decay ticks on your bushes xD

I'm on the decay thing, just give me few seconds...

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 2767)


local conditionx = getThingfromPos(pos)
setConditionParam(CONDITION_PARAM_TICKS, 20000)
		doRemoveItem(conditionx)
		doSendMagicEffect(pos, CONST_ME_BLOCKHIT)


local area = createCombatArea( { {1, 1, 1}, {1, , 1}, {1, 1, 1} } )
setCombatArea(combat, area)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
Seriously I have no idea if that will work :O

else go with plan: B
 
Last edited by a moderator:
Dont work at all... cant make it i type exura test nothing happens no errors ?
<instant name="exura test" words="exura test" lvl="60" mana="1" prem="1" range="1" needweapon="1" needtarget="1" blockwalls="1" exhaustion="1200" needlearn="0" script="attack/1337.lua">
<vocation name="Mage"/>
<vocation name="Master mager"/>
</instant>

1337.xml
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 2767)


local conditionx = getThingfromPos(pos)
setConditionParam(CONDITION_PARAM_TICKS, 20000)
        doRemoveItem(conditionx)
        doSendMagicEffect(pos, CONST_ME_BLOCKHIT)


local area = createCombatArea( { {1, 1, 1}, {1, , 1}, {1, 1, 1} } )
setCombatArea(combat, area)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Dont work at all... cant make it i type exura test nothing happens no errors ?


1337.xml
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 2767)


local conditionx = getThingfromPos(pos)
setConditionParam(CONDITION_PARAM_TICKS, 20000)
        doRemoveItem(conditionx)
        doSendMagicEffect(pos, CONST_ME_BLOCKHIT)


local area = createCombatArea( { {1, 1, 1}, {1, , 1}, {1, 1, 1} } )
setCombatArea(combat, area)

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

try the first script I gave you then.. and go for plan b..

test if you server decay items that is already on the map..

etc test with a fire field.. change the decay in items.xml to like 10 seconds. and get the correct id and add it in map editor.. reload the server and loggin there the fire field was set..

if it disapear you'll have to think out something else..

if it doesn't disappear you can just set decay on bushes without your nature disappear xD

I'm testing the script now.. I found one bug incode.. I'll post her in a few sec

This one is working fully (except the decay..)
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 2767)

local arr = {
{0, 0, 0, 0, 0},
{0, 1, 1, 1, 0},
{0, 1, 2, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 0, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Last edited by a moderator:
This one is working fully (except the decay..)
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 2767)

local arr = {
{0, 0, 0, 0, 0},
{0, 1, 1, 1, 0},
{0, 1, 2, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 0, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
works but i will wait ..
to some can fix the
decay
 
Back
Top