- The default event script behaviour is to trigger on labels rather than NPCs now.

- Removed several script config options which break NPC compatibility when you mess with them (event_script_type, event_requires_trigger, die_event_name, kill_pc_event_name, kill_mob_event_name, logout_event_name, login_event_name, loadmap_event_name, baselvup_event_name, joblvup_event_name)
- LoadMap events no longer set the variable "@maploaded$" to the name of the new map.
- Optimized/simplified the code now that the previous config options were removed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11859 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2007-12-06 12:59:12 +00:00
parent 655100c9e2
commit fc7b4eaef0
12 changed files with 79 additions and 223 deletions

View File

@@ -21,40 +21,4 @@ check_cmdcount: 655360
check_gotocount: 2048
//---- Custom script functions ----
// 0 - Event script is defined as an NPC by itself
// 1 - Event script can be called by script label
event_script_type: 0
// For events to be activated do we require
// a 'set [EventName],1;' to be called first?
event_requires_trigger: no
// Name of event when a player has died
die_event_name: OnPCDieEvent
// Name of event when a player kills a player
kill_pc_event_name: OnPCKillEvent
// Name of event when a player kills a monster
kill_mob_event_name: OnNPCKillEvent
// Name of event when a player logs out
logout_event_name: OnPCLogoutEvent
// Name of event when a player logs in
login_event_name: OnPCLoginEvent
// Name of event when a player changes map
// NOTE: This event will only trigger on maps with the "loadevent" flag active.
loadmap_event_name: OnPCLoadMapEvent
// Name of event when a player levels up (base lv)
baselvup_event_name: OnPCBaseLvUpEvent
// Name of event when a player levels up (job lv)
joblvup_event_name: OnPCJobLvUpEvent
import: conf/import/script_conf.txt