Henrybk

Mob Nro

Jul 8th, 2015
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.18 KB | None | 0 0
  1. Index: src/Network/Receive.pm
  2. ===================================================================
  3. --- src/Network/Receive.pm  (revision 8979)
  4. +++ src/Network/Receive.pm  (working copy)
  5. @@ -512,8 +512,9 @@
  6.     }
  7.  
  8.     #### Step 1: create the actor object ####
  9. -
  10. +   message "[Type]type is ".$args->{type}."\n";
  11.     if ($object_class eq 'Actor::Player') {
  12. +       message "[Actor]Actor is a Player\n";
  13.         # Actor is a player
  14.         $actor = $playersList->getByID($args->{ID});
  15.         if (!defined $actor) {
  16. @@ -529,6 +530,7 @@
  17.         }
  18.         $actor->{nameID} = $nameID;
  19.     } elsif ($object_class eq 'Actor::Slave') {
  20. +       message "[Actor]Actor is a Slave\n";
  21.         # Actor is a homunculus or a mercenary
  22.         $actor = $slavesList->getByID($args->{ID});
  23.         if (!defined $actor) {
  24. @@ -542,6 +544,7 @@
  25.         }
  26.         $actor->{nameID} = $nameID;
  27.     } elsif ($object_class eq 'Actor::Portal') {
  28. +       message "[Actor]Actor is a Portal\n";
  29.         # Actor is a portal
  30.         $actor = $portalsList->getByID($args->{ID});
  31.         if (!defined $actor) {
  32. @@ -561,6 +564,7 @@
  33.         }
  34.         $actor->{nameID} = $nameID;
  35.     } elsif ($object_class eq 'Actor::Pet') {
  36. +       message "[Actor]Actor is a Pet\n";
  37.         # Actor is a pet
  38.         $actor = $petsList->getByID($args->{ID});
  39.         if (!defined $actor) {
  40. @@ -583,6 +587,7 @@
  41.  
  42.         }
  43.     } elsif ($object_class eq 'Actor::Monster') {
  44. +       message "[Actor]Actor is a Monster\n";
  45.         $actor = $monstersList->getByID($args->{ID});
  46.         if (!defined $actor) {
  47.             $actor = new Actor::Monster();
  48. @@ -599,6 +604,7 @@
  49.             $actor->{nameID} = $args->{type};
  50.         }
  51.     } elsif ($object_class eq 'Actor::NPC') {
  52. +       message "[Actor]Actor is a Npc\n";
  53.         # Actor is an NPC
  54.         $actor = $npcsList->getByID($args->{ID});
  55.         if (!defined $actor) {
  56. @@ -622,6 +628,10 @@
  57.     $actor->{time_move_calc} = distance(\%coordsFrom, \%coordsTo) * $actor->{walk_speed};
  58.     # 0086 would need that?
  59.     $actor->{object_type} = $args->{object_type} if (defined $args->{object_type});
  60. +   my ($key1,$value1);
  61. +   while (($key1,$value1) = each %{$actor}) {
  62. +        message "[Actor]$key1=$value1\n";
  63. +    }
  64.  
  65.     if (UNIVERSAL::isa($actor, "Actor::Player")) {
  66.         # None of this stuff should matter if the actor isn't a player... => does matter for a guildflag npc!
Advertisement
Add Comment
Please, Sign In to add comment