Genral

ItemScript_how_to_use

Oct 15th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. create new class enter the prev class in link
  2. go to PacketHandler.cs || MsgItemHandler.cs
  3. searchFor public static void UseItem(
  4. go to Default:
  5. under it put this code
  6. ItemHandlerScript.Handle(item, client);
  7. but be careful you put it before break;
  8. then this is DB
  9. /*
  10. Navicat MySQL Data Transfer
  11. Source Host : localhost:3306
  12. Source Database : emulator
  13. Target Host : localhost:3306
  14. Target Database : emulator
  15. Date: 8/24/2017 7:00:08 AM
  16. */
  17.  
  18. SET FOREIGN_KEY_CHECKS=0;
  19. -- ----------------------------
  20. -- Table structure for itemscript
  21. -- ----------------------------
  22. DROP TABLE IF EXISTS `itemscript`;
  23. CREATE TABLE `itemscript` (
  24. `useitemid` int(32) unsigned NOT NULL DEFAULT '0',
  25. `removeused` smallint(8) unsigned DEFAULT '0',
  26. `giveitemid` int(32) unsigned DEFAULT '0',
  27. `givecount` smallint(8) unsigned DEFAULT '1',
  28. `actionid` int(16) unsigned DEFAULT '0',
  29. `removecount` smallint(8) unsigned DEFAULT '1',
  30. `chance` int(32) unsigned DEFAULT '0',
  31. `giveitemplus` smallint(8) unsigned DEFAULT '0',
  32. PRIMARY KEY (`useitemid`)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  34.  
  35. -- ----------------------------
  36. -- Records of itemscript
  37. -- ----------------------------
  38. INSERT INTO `itemscript` VALUES ('3003108', '1', '3001283', '5', '0', '1', '0', '0');
Add Comment
Please, Sign In to add comment