diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-11 08:38:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-11 08:38:20 -0300 |
commit | ed39c7518c82ede371b9b74f6eca8deb66a73e31 (patch) | |
tree | e6fe9662612df7fc4ec55e9ed32fd87c97ab93dc /npc/functions | |
parent | edf822b99c36c7bede00aef3202b2cbe42cde37b (diff) | |
download | serverdata-ed39c7518c82ede371b9b74f6eca8deb66a73e31.tar.gz serverdata-ed39c7518c82ede371b9b74f6eca8deb66a73e31.tar.bz2 serverdata-ed39c7518c82ede371b9b74f6eca8deb66a73e31.tar.xz serverdata-ed39c7518c82ede371b9b74f6eca8deb66a73e31.zip |
Fix bugs, prepare to implement the *real* skill loop
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/global_event_handler.txt | 7 | ||||
-rw-r--r-- | npc/functions/main.txt | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index 75a2fabc..8e1116dc 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -4,9 +4,10 @@ OnPCLoginEvent: @login_event = 1; + adddefaultskills(); //callfunc "fixHeadStyles"; // convert headstyles //callfunc "ClearVariables"; // removes / converts old variables - callfunc "DisplayMOTD"; // send the motd to the client, if enabled + DisplayMOTD(); // send the motd to the client, if enabled // add more here @login_event = 2; end; @@ -16,7 +17,7 @@ OnPCKillEvent: end; OnMobKillEvent: - callfunc "MobPoints"; + MobPoints(); end; OnPCDieEvent: @@ -25,6 +26,6 @@ OnPCDieEvent: end; OnInit: - callfunc "MOTD"; // set the MOTD array + MOTD(); // set the MOTD array end; } diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 8dd7c95f..18441094 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -87,9 +87,6 @@ function script adddefaultskills { if (getskilllv(TMW2_FAKESKILL) < 1) { skill TMW2_FAKESKILL, 1, 0; } - if (getskilllv(TMW2_FAKESKILL2) < 1) { - skill TMW2_FAKESKILL2, 1, 0; - } return; } |