• Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Ronit.GAMES RonEngine Support / Wsparcie dla RonEngine LUA/XML Scripting / Skryptowanie LUA/XML Triggers List

 
  • 0 Vote(s) - 0 Average
Triggers List
Meritus
Offline

Uzytkownik

Posts: 28
Threads: 19
Joined: Jun 2010
Reputation: 4
#1
28-10-2010, 12:57 PM (This post was last modified: 09-09-2012, 02:58 PM by Nakeib.)
Triggers list:

ON_SERVERSTART - onTrigger(NIL, NIL, NIL, NIL, NIL, NIL, NIL),
ON_LOGIN - onTrigger(cid, player, playerPos, NIL, NIL, firstLogin, NIL),
ON_LOGOUT - onTrigger(cid, player, playerPos, NIL, NIL, NIL, NIL),
ON_POSITION - onTrigger(cid, NIL, playerPos, NIL, NIL, NIL, NIL),
ON_ITEMTHROW - onTrigger(cid, fromItem, fromPos, toItem, toPos, NIL, NIL),
ON_LEVELUP - onTrigger(cid, NIL, playerPos, NIL, NIL, NIL, NIL),
ON_MLEVELUP - onTrigger(cid, NIL, playerPos, NIL, NIL, NIL, NIL),
ON_ADVANCE - onTrigger(cid, NIL, playerPos, NIL, NIL, NIL, NIL),
ON_ATTACK - onTrigger(cid, creature, creaturePos, NIL, NIL, NIL, NIL),
ON_KILL - onTrigger(cid, creature, creaturePos, NIL, NIL, NIL, NIL),
ON_DEATH - onTrigger(cid, killer, killerPos, NIL, NIL, NIL, NIL),
ON_BUYHOUSE - onTrigger(cid, NIL, playerPos, NIL, NIL, NIL, NIL),
ON_LOOK - onTrigger(cid, thing, thingPos, NIL, NIL, NIL, NIL),
ON_SAY - onTrigger(cid, player, playerPos, NIL, NIL, option, text),
ON_QUESTLOG - onTrigger(cid, NIL, playerPos, NIL, NIL, NIL, NIL),
ON_OPENCHANNEL - onTrigger(cid, NIL, playerPos, NIL, NIL, channelId, NIL)

XML structure:
Code:
[triggers]
    [trigger id="X" type="ON_SERVERSTART" script="triggers/triggers_template.lua" /]

    [trigger id="X" type="ON_LOGIN" script="triggers/triggers_template.lua" /]

    [trigger id="X" type="ON_LOGOUT" script="triggers/triggers_template.lua" /]

    [trigger id="X" type="ON_POSITION" script="triggers/triggers_template.lua"]
        [position x="504" y="492" z="7" /]
        [actionpos x="504" y="488" z="7" /]
    [/trigger]

    [trigger id="X" type="ON_POSITION" script="triggers/triggers_template.lua"]
        [position x="504" y="484" z="7" /]
        [actionpos x="503" y="485" z="7" /]
    [/trigger]

    [trigger id="X" type="ON_ITEMTHROW" script="triggers/triggers_template.lua"]
        [item itemid="1234" /]
        [item actionid="4321" /]
    [/trigger]

    [trigger id="X" type="ON_LEVELUP" script="triggers/triggers_template.lua"]
        [level value="10" /]
    [/trigger]

    [trigger id="X" type="ON_MLEVELUP" script="triggers/triggers_template.lua"]
        [mlevel value="10" /]
    [/trigger]

    [trigger id="X" type="ON_ADVANCE" script="triggers/triggers_template.lua"]
        [skill type="0" value="13" /]
    [/trigger]

    [trigger id="X" type="ON_ATTACK" script="triggers/triggers_template.lua"]
        [attack creature="any" /]
        [attack creature="Ghoul Master" /]
    [/trigger]

    [trigger id="X" type="ON_KILL" script="triggers/triggers_template.lua"]
        [kill creature="any" /]
        [kill creature="Ghoul Master" /]
    [/trigger]

    [trigger id="X" type="ON_DEATH" script="triggers/triggers_template.lua" /]

    [trigger id="X" type="ON_BUYHOUSE" script="triggers/triggers_template.lua"]
        [buyhouse name="any" /]
        [buyhouse name="Carlin Street I" /]
    [/trigger]

    [trigger id="X" type="ON_LOOK" script="triggers/triggers_template.lua"]
        [look itemid="0" /]        [!-- Any item --]
        [look itemid="2969" /]
    [/trigger]

    [trigger id="X" type="ON_SAY" script="triggers/triggers_template.lua"]
        [say id="1" words="one" /]
        [say id="2" words="two" /]
    [/trigger]    

    [trigger id="X" type="ON_QUESTLOG" script="triggers/triggers_template.lua" /]

    [trigger id="X" type="ON_OPENCHANNEL" script="triggers/triggers_template.lua" /]

[/triggers]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode