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

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
978
Solutions
17
Reaction score
373
GitHub
olrios
Twitch
jamagowy
I want to make a spell for my summon. The spell will be like a big exori and dealing dmg to everybody but not to the summon owner.

eg:
PHP:
if getCreatureName(hitedTarget) == getCreatureName(getCreatureMaster(cid)) then

...
damage = 0

i know how to make it in a simple 'exori flam' spell but idk how to make it works in area spells
any ideas?
 
It's

LUA:
AREA_SQUARE1X1 = {
	{1, 1, 1},
	{1, 3, 1},
	{1, 1, 1}
}
(You can find all of them in the spells lib)

Tell me the damage formula/effect you'd like for the spell, and I'll make it for you.
 
It's

LUA:
AREA_SQUARE1X1 = {
	{1, 1, 1},
	{1, 3, 1},
	{1, 1, 1}
}
(You can find all of them in the spells lib)

Tell me the damage formula/effect you'd like for the spell, and I'll make it for you.

You don't understood me.

beztytuufcq.png
 
Looks like 'return false' in 'onTargetCreature' didn\'t work, you'll have to use an onStatsChange creaturescript:

data/creaturescripts/scripts/statschange.lua: (create)
LUA:
function onStatsChange(cid, attacker, type, combat, value)
	if isInArray({1,3}, type) and isMonster(attacker) then
		local master = getCreatureMaster(attacker)
		if master ~= attacker and master == cid then
			return false
		end
	end
	return true
end
data/creaturescripts/scripts/login.lua: (add)
LUA:
	registerCreatureEvent(cid, "Statschange")
data/creaturescripts/creaturescripts.xml: (add)
XML:
	<event type="statschange" name="Statschange" event="script" value="statschange.lua"/>
 
Back
Top