Henrybk

Level Changed hook add patch

Feb 6th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.95 KB | None | 0 0
  1. Index: src/Network/Receive/kRO/Sakexe_0.pm
  2. ===================================================================
  3. --- src/Network/Receive/kRO/Sakexe_0.pm (revision 9014)
  4. +++ src/Network/Receive/kRO/Sakexe_0.pm (working copy)
  5. @@ -4964,6 +4964,7 @@
  6.             chatLog("k", TF("Disconnecting on level %s!\n", $config{dcOnLevel}));
  7.             quit();
  8.         }
  9. +       Plugins::callHook('level_changed');
  10.     } elsif ($args->{type} == 12) {
  11.         $char->{points_skill} = $args->{val};
  12.         debug "Skill Points: $args->{val}\n", "parseMsg", 2;
  13. Index: src/Network/Receive/ServerType0.pm
  14. ===================================================================
  15. --- src/Network/Receive/ServerType0.pm  (revision 9014)
  16. +++ src/Network/Receive/ServerType0.pm  (working copy)
  17. @@ -5499,6 +5499,7 @@
  18.             chatLog("k", TF("Disconnecting on level %s!\n", $config{dcOnLevel}));
  19.             quit();
  20.         }
  21. +       Plugins::callHook('level_changed');
  22.     },
  23.     VAR_SPPOINT, sub { $_[0]{points_skill} = $_[1] },
  24.     #VAR_STR
Advertisement
Add Comment
Please, Sign In to add comment