Results 1 to 2 of 2

Thread: Simple Spell I made

  1. #1
    Mapper mikebadeaux's Avatar
    Join Date
    May 2010
    Posts
    112
    Reputation
    Status
    mikebadeaux is offline

    Thumbs up Simple Spell I made

    make a .LUA called
    exevo gran mas mort
    and put this in
    ---Created By Mikebadeaux On OTLand---
    local combat1 = createCombatObject()
    setCombatParam(combat1, COMBAT_PARAM_TYPE, 2048)
    setCombatParam(combat1, COMBAT_PARAM_EFFECT, 10)
    setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 31)
    setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 100 , 100 , 100 , 100)
    --================================================== =====================
    local combat2 = createCombatObject()
    setCombatParam(combat2, COMBAT_PARAM_TYPE, 1024)
    setCombatParam(combat2, COMBAT_PARAM_EFFECT, 15)
    setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 31)
    setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 100 , 100 , 100 , 100)
    --================================================== =====================
    local combat3 = createCombatObject()
    setCombatParam(combat3, COMBAT_PARAM_TYPE, 2)
    setCombatParam(combat3, COMBAT_PARAM_EFFECT, 17)
    setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 31)
    setCombatFormula(combat3, COMBAT_FORMULA_SKILL, 100 , 100 , 100 , 100)
    --================================================== =====================




    local area1 = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0},
    {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0},
    {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0},
    {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0},
    {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
    --=======================================
    local area2 = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
    --=======================================
    local area3 = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
    --=======================================




    setCombatArea(combat1, createCombatArea(area1))
    setCombatArea(combat2, createCombatArea(area2))
    setCombatArea(combat3, createCombatArea(area3))



    function onCastSpell(cid, var)
    addEvent(doCombat, 0, cid, combat1, var)
    addEvent(doCombat, 0, cid, combat2, var)
    addEvent(doCombat, 0, cid, combat3, var)
    end




    .XML
    <instant name="Mas Mort" words="exevo gran mas Mort" lvl="1000" mana="1200" prem="0" exhaustion="1000" selftarget="1" needlearn="0" event="script" value="exevo gran mas mort.lua">
    <vocation id="1"/> <vocation id="2"/> <vocation id="3"/>


    <vocation id="4"/>
    <vocation id="5"/>
    </instant>




    Edit vocs if u like
    REP++
    Last edited by mikebadeaux; 10th February 2012 at 23:09.

  2. #2
    - Lua Scripter - Mooosie's Avatar
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    702
    Reputation
    Status
    Mooosie is offline
    These days is it very simple to create a basic action/creaturescript/movement/weapon. You just have to copy and paste the file you can do anything with. For example, shovel.lua:
    This content is only visible to registered users.

    Just remove the content:
    This content is only visible to registered users.
    And just start your own basic script. If you want help just go to "YOURSERVERFOLDER/doc/LUAFUNCTIONS" there are all functions you can use.

    That was a quick tutorial, but topic:

    Thanks for sharing and this was my first step too. To create my own spell using one spell template.

    [SWEDEN] Mist Of Death | Update v2 | Including New Tps n' Quests | New Items! [8.6] [Visit] ONLINE!
    Muddy Underground By Mooosie [8.6] - Downloadable [Visit]
    Release math.Round Function! [Visit]
    1 Task Npc (rare) [Visit]
    [MoveEvent] Training monk with Time! [Visit]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •