Advertisement
igromanru

Weapon Effects

Apr 26th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.08 KB | None | 0 0
  1. {$lua}
  2. if not syntaxcheck then
  3.   local FirstWeaponId = 0xD68BD4 -- place the weapon ID here, in Hex or Decimal
  4.   local SecondWeaponId = 0xA80548 -- place the weapon ID here, in Hex or Decimal
  5.  
  6.   local WeaponArray = {
  7.     {WeaponId,0x40,"0F C4 00 00"}, --Effect on Hit 1
  8.   --  {WeaponId,0x44,"FF FF FF FF"}, --Effect on Hit 2
  9.   --  {WeaponId,0x48,"FF FF FF FF"}, --Effect on Hit 3
  10.   --  {WeaponId,0x4C,"FF FF FF FF"}, --Effect on Self 1
  11.   --  {WeaponId,0x50,"FF FF FF FF"}, --Effect on Self 2
  12.   --  {WeaponId,0x54,"FF FF FF FF"}, --Effect on Self 3
  13.  
  14.   --  {SecondWeaponId,0x40,"FF FF FF FF"}, --Effect on Hit 1
  15.   --  {SecondWeaponId,0x44,"FF FF FF FF"}, --Effect on Hit 2
  16.   --  {SecondWeaponId,0x48,"FF FF FF FF"}, --Effect on Hit 3
  17.     {SecondWeaponId,0x4C,"78 05 00 00"}, --Effect on Self 1 -- Restore HP
  18.   --  {SecondWeaponId,0x50,"FF FF FF FF"}, --Effect on Self 2
  19.   --  {SecondWeaponId,0x54,"FF FF FF FF"}, --Effect on Self 3
  20.   }
  21.   ParamIterator("EquipParamWeapon",WeaponArray,"WeaponEffects")
  22. end
  23.  
  24. [DISABLE]
  25. {$lua}
  26. if not syntaxcheck then
  27.    ParamDepatcher("WeaponEffects")
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement