Odpowiedz 
Triggers List
28-10-2010, 12:57 PM (Ten post był ostatnio modyfikowany: 09-09-2012 02:58 PM przez Nakeib.)
Post: #1
Triggers List
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:
Kod:
[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]
Znajdź wszystkie posty użytkownika
Odpowiedz cytując ten post
Odpowiedz 


Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości