• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Custom spells lua

niti

New Member
Joined
Nov 22, 2009
Messages
258
Reaction score
2
Hello, how do I create a costum spells that shoots with ./x 31
I got this one

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 52)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 53)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 6, 6, 7, 12)

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

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


I tried to make it with 2 spells but I dunno how to do. I'll give you rep+ / I don't know how to paste the lua in here.. Sorry!

I DON'T WANT THE Z EFFECT I WANT THE X :D
 
Last edited by a moderator:
I do understand now, I looked at it carefully, but I dunno how to make the scripts, do I save the first XML Script in SCRIPT.XML, and the other? What shall I do with it ? :o

I dunno how to save it and make it work.. -.-

How DO I copy the Scripts the guy made?
 
Last edited:
I do understand now, I looked at it carefully, but I dunno how to make the scripts, do I save the first XML Script in SCRIPT.XML, and the other? What shall I do with it ? :o

I dunno how to save it and make it work.. -.-

How DO I copy the Scripts the guy made?

Just for your information, wherever you got the XML, you can open the 'Script' tab at the top of the screen...
 
Back
Top