Guest User

Fake pc Data

a guest
Jul 28th, 2012
1,105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5.90 KB | None | 0 0
  1. Index: /trunk/Data/dist/game/data/scripts/handlers/admincommandhandlers/AdminAdmin.java
  2. ===================================================================
  3. --- /trunk/Data/dist/game/data/scripts/handlers/admincommandhandlers/AdminAdmin.java    (revision 339)
  4. +++ /trunk/Data/dist/game/data/scripts/handlers/admincommandhandlers/AdminAdmin.java    (revision 340)
  5. @@ -25,4 +25,5 @@
  6.  import com.l2jserver.gameserver.datatables.AdminTable;
  7.  import com.l2jserver.gameserver.datatables.DoorTable;
  8. +import com.l2jserver.gameserver.datatables.FakePcsTable;
  9.  import com.l2jserver.gameserver.datatables.ItemTable;
  10.  import com.l2jserver.gameserver.datatables.MultiSell;
  11. @@ -306,4 +307,9 @@
  12.                     activeChar.sendMessage("All Doors have been reloaded");
  13.                 }
  14. +               else if (type.startsWith("fakenpc"))
  15. +               {
  16. +                   FakePcsTable.getInstance().reloadData();
  17. +                   activeChar.sendMessage("All Fake NPC have been reloaded");
  18. +               }
  19.                 activeChar.sendMessage("WARNING: There are several known issues regarding this feature. Reloading server data during runtime is STRONGLY NOT RECOMMENDED for live servers, just for developing environments.");
  20.             }
  21. Index: /trunk/Data/dist/sql/Custom  sql  for server/fake_pcs/fake_pcs.sql
  22. ===================================================================
  23. --- /trunk/Data/dist/sql/Custom  sql  for server/fake_pcs/fake_pcs.sql  (revision 340)
  24. +++ /trunk/Data/dist/sql/Custom  sql  for server/fake_pcs/fake_pcs.sql  (revision 340)
  25. @@ -0,0 +1,75 @@
  26. +SET FOREIGN_KEY_CHECKS=0;
  27. +-- ----------------------------
  28. +-- Table structure for `fake_pcs`
  29. +-- ----------------------------
  30. +DROP TABLE IF EXISTS `fake_pcs`;
  31. +CREATE TABLE `fake_pcs` (
  32. +  `npc_id` int(11) NOT NULL,
  33. +  `race` int(11) NOT NULL DEFAULT '0',
  34. +  `sex` int(11) NOT NULL DEFAULT '0',
  35. +  `class` int(11) NOT NULL DEFAULT '0',
  36. +  `title` varchar(255) NOT NULL,
  37. +  `title_color` int(11) NOT NULL DEFAULT '0',
  38. +  `name` varchar(255) NOT NULL,
  39. +  `name_color` int(11) NOT NULL DEFAULT '0',
  40. +  `hair_style` int(11) NOT NULL DEFAULT '0',
  41. +  `hair_color` int(11) NOT NULL DEFAULT '0',
  42. +  `face` int(11) NOT NULL DEFAULT '0',
  43. +  `mount` tinyint(4) NOT NULL DEFAULT '0',
  44. +  `team` tinyint(4) NOT NULL DEFAULT '0',
  45. +  `hero` tinyint(4) NOT NULL DEFAULT '0',
  46. +  `pd_under` int(11) NOT NULL DEFAULT '0',
  47. +  `pd_under_aug` int(11) NOT NULL DEFAULT '0',
  48. +  `pd_head` int(11) NOT NULL DEFAULT '0',
  49. +  `pd_head_aug` int(11) NOT NULL DEFAULT '0',
  50. +  `pd_rhand` int(11) NOT NULL DEFAULT '0',
  51. +  `pd_rhand_aug` int(11) NOT NULL DEFAULT '0',
  52. +  `pd_lhand` int(11) NOT NULL DEFAULT '0',
  53. +  `pd_lhand_aug` int(11) NOT NULL DEFAULT '0',
  54. +  `pd_gloves` int(11) NOT NULL DEFAULT '0',
  55. +  `pd_gloves_aug` int(11) NOT NULL DEFAULT '0',
  56. +  `pd_chest` int(11) NOT NULL DEFAULT '0',
  57. +  `pd_chest_aug` int(11) NOT NULL DEFAULT '0',
  58. +  `pd_legs` int(11) NOT NULL DEFAULT '0',
  59. +  `pd_legs_aug` int(11) NOT NULL DEFAULT '0',
  60. +  `pd_feet` int(11) NOT NULL DEFAULT '0',
  61. +  `pd_feet_aug` int(11) NOT NULL DEFAULT '0',
  62. +  `pd_back` int(11) NOT NULL DEFAULT '0',
  63. +  `pd_back_aug` int(11) NOT NULL DEFAULT '0',
  64. +  `pd_lrhand` int(11) NOT NULL DEFAULT '0',
  65. +  `pd_lrhand_aug` int(11) NOT NULL DEFAULT '0',
  66. +  `pd_hair` int(11) NOT NULL DEFAULT '0',
  67. +  `pd_hair_aug` int(11) NOT NULL DEFAULT '0',
  68. +  `pd_hair2` int(11) NOT NULL DEFAULT '0',
  69. +  `pd_hair2_aug` int(11) NOT NULL DEFAULT '0',
  70. +  `pd_rbracelet` int(11) NOT NULL DEFAULT '0',
  71. +  `pd_rbracelet_aug` int(11) NOT NULL DEFAULT '0',
  72. +  `pd_lbracelet` int(11) NOT NULL DEFAULT '0',
  73. +  `pd_lbracelet_aug` int(11) NOT NULL DEFAULT '0',
  74. +  `pd_deco1` int(11) NOT NULL DEFAULT '0',
  75. +  `pd_deco1_aug` int(11) NOT NULL DEFAULT '0',
  76. +  `pd_deco2` int(11) NOT NULL DEFAULT '0',
  77. +  `pd_deco2_aug` int(11) NOT NULL DEFAULT '0',
  78. +  `pd_deco3` int(11) NOT NULL DEFAULT '0',
  79. +  `pd_deco3_aug` int(11) NOT NULL DEFAULT '0',
  80. +  `pd_deco4` int(11) NOT NULL DEFAULT '0',
  81. +  `pd_deco4_aug` int(11) NOT NULL DEFAULT '0',
  82. +  `pd_deco5` int(11) NOT NULL DEFAULT '0',
  83. +  `pd_deco5_aug` int(11) NOT NULL DEFAULT '0',
  84. +  `pd_deco6` int(11) NOT NULL DEFAULT '0',
  85. +  `pd_deco6_aug` int(11) NOT NULL DEFAULT '0',
  86. +  `enchant_effect` tinyint(4) NOT NULL DEFAULT '0',
  87. +  `pvp_flag` int(11) NOT NULL DEFAULT '0',
  88. +  `karma` int(11) NOT NULL DEFAULT '0',
  89. +  `fishing` tinyint(4) NOT NULL DEFAULT '0',
  90. +  `fishing_x` int(11) NOT NULL DEFAULT '0',
  91. +  `fishing_y` int(11) NOT NULL DEFAULT '0',
  92. +  `fishing_z` int(11) NOT NULL DEFAULT '0',
  93. +  `invisible` tinyint(4) NOT NULL DEFAULT '1',
  94. +  PRIMARY KEY (`npc_id`)
  95. +) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  96. +
  97. +-- ----------------------------
  98. +-- Records of fake_pcs
  99. +-- ----------------------------
  100. +INSERT INTO `fake_pcs` VALUES ('9023', '0', '0', '88', '--', '64672', 'Flash', '64672', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '16015', '0', '0', '0', '43102', '0', '43100', '0', '43101', '0', '43103', '0', '21716', '0', '0', '0', '40023', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '30', '0', '0', '0', '0', '0', '0', '0');
  101. Index: /trunk/Data/dist/sql/Custom  sql  for server/fake_pcs/fake_pcs_Npc edit.sql
  102. ===================================================================
  103. --- /trunk/Data/dist/sql/Custom  sql  for server/fake_pcs/fake_pcs_Npc edit.sql (revision 340)
  104. +++ /trunk/Data/dist/sql/Custom  sql  for server/fake_pcs/fake_pcs_Npc edit.sql (revision 340)
  105. @@ -0,0 +1,2 @@
  106. +INSERT INTO custom_npc VALUES ('9023', '32365', 'Finish', '1', 'Event Manager', '1', 'LineageNPC2.TP_game_staff', '5.00', '12.50', '70', 'male', 'L2Monster', '40', '2444.000000000000000', '1225.000000000000000', '0.000000000000000', '0.000000000000000', '40', '43', '30', '21', '20', '20', '0', '0', '1086.00000', '471.00000', '749.00000', '313.00000', '230', '1', '333', '0', '0', '0', '68.00000', '109.00000', '0', '0');
  107. +INSERT INTO custom_npcaidata VALUES ('9023', '7', '15', '0', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', null, '0', null, '0', '0', 'fighter');
Advertisement
Add Comment
Please, Sign In to add comment