Current time: 10.04.2025, 15:36 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Updating the erm help, please contribute
Author Message
Valery Offline

Posts: 2196
Post: #31

A script from Hawaiing, gives multiple melee attacks. Need hooker plugin.

  1. !?BG0;[example]
  2. !!SN:W^007.AttackA.Times^/0;[reset flag]
  3. !!BG:A?y1 N?y2 E?y3;
  4. !!FU|y1<>6:E;
  5. !!BMy2:T?y4;
  6. !!SN&y4=132:W^007.AttackA.Times^/2;[AzureDragon has 2 extra_attack_times]
  7. ********************HOOK_CODE******************************
  8. !?BA0&1000;
  9. !!SN:L^EraPlugins\erm_hooker.era^/?y1 Ay1/^SetHook^/?y2;
  10. !!SN:Ey2/1/7381311/101310;
  11. !?BA1&1000;
  12. !!SN:L^EraPlugins\erm_hooker.era^/?y1 Ay1/^UnsetHook^/?y2;
  13. !!SN:Ey2/1/7381311;
  14. !?FU101310;
  15. !!SN:X?y1/1;[edi]
  16. !!SN:W^007.AttackA.Times^/?y30;
  17. !!SN:W^007.AttackA.Times^/0;
  18. !!FU&y30<1:E;
  19. !!UN:Cy1/4/?y10;[y10=A_STACK]
  20. !!VRy2:Sy1+8;
  21. !!UN:Cy2/4/?y3; [y3=ebp]
  22. !!VRy4:Sy3+8; [ebp+8]
  23. !!UN:Cy4/4/?y5; y5=[ebp+08]
  24. !!VRy6:Sy1+4;
  25. !!UN:Cy6/4/?y20;[y20=D_STACK]10#
  26. !!VRy11:Sy10+52; 11#
  27. !!VRy12:Sy10+76;
  28. !!VRy13:Sy10+656;
  29. !!VRy14:Sy10+688;
  30. !!VRy15:Sy10+704;
  31. !!UN:Cy11/4/?y31;
  32. !!UN:Cy12/4/?y32;
  33. !!UN:Cy13/4/?y33;
  34. !!UN:Cy14/4/?y34;
  35. !!UN:Cy15/4/?y35;
  36. !!VRy21:Sy20+52;
  37. !!VRy22:Sy20+76;
  38. !!UN:Cy21/4/?y41;
  39. !!UN:Cy22/4/?y42;
  40. !!FU|y31<0/y32<1/y41<0/y42<1/y33>0/y34>0/y35>0:E;
  41. !!SN:E4461360/2/y10/y20/y5;
  42. !!VRy30:-1;
  43. !!SN&y30>0:G11;
(This post was last modified: 28.08.2015 20:22 by Valery.)
28.08.2015 20:21
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #32

From Hawaiing too, multiple shoot + multiple melee

  1. ZVSE
  2. *Extra <metee attack> or <shoot> for stack.
  3. *need <erm_hooker.era>
  4. *<SN:W^007.AttackA.Times^> flag holds the attack times.
  5. *<SN:W^007.ShootA.Times^> flag holds the shoot times(not for 149#Tower)(and 146# is different from other shooters)
  6. ********************PUT YOUR CODE HERE******************************
  7. !?BG0;[example]
  8. !!SN:W^007.AttackA.Times^/0;[reset flag](or reset it at BG1)
  9. !!SN:W^007.ShootA.Times^/0;[reset flag](or reset it at BG1)
  10. !!BG:A?y1 N?y2 E?y3;
  11. !!BMy2:T?y4;
  12. !!if&y1=6:;
  13. !!SN&y4=132:W^007.AttackA.Times^/2;[AzureDragon has 2 extra_attack_times]
  14. !!en:;
  15. !!if&y1=7:;
  16. !!SN&y4=196:W^007.ShootA.Times^/2;[Dracolich has 2 extra_shoot_times]
  17. !!en:;
  18. ********************HOOK_CODE******************************
  19. !?BA0&1000;
  20. !!SN:L^EraPlugins\erm_hooker.era^/?y1 Ay1/^SetHook^/?y2;
  21. !!SN:Ey2/1/7381311/101310; [hook at <after metee_attack>]
  22. !!SN:Ey2/1/4456346/101311; [hook at <after shoot>]
  23. !?BA1&1000;
  24. !!SN:L^EraPlugins\erm_hooker.era^/?y1 Ay1/^UnsetHook^/?y2;
  25. !!SN:Ey2/1/7381311;
  26. !!SN:Ey2/1/4456346;
  27. !?FU101310;[extra_metee_attack]
  28. !!SN:X?y1/1;[edi]
  29. !!SN:W^007.AttackA.Times^/?y30;
  30. !!SN:W^007.AttackA.Times^/0;
  31. !!FU&y30<1:E;
  32. !!UN:Cy1/4/?y10;[y10=A_STACK]
  33. !!VRy2:Sy1+8;
  34. !!UN:Cy2/4/?y3; [y3=ebp]
  35. !!VRy4:Sy3+8; [ebp+8]
  36. !!UN:Cy4/4/?y5; y5=[ebp+08]
  37. !!VRy6:Sy1+4;
  38. !!UN:Cy6/4/?y20;[y20=D_STACK]10#
  39. !!VRy11:Sy10+52; 11#
  40. !!VRy12:Sy10+76;
  41. !!VRy13:Sy10+656;
  42. !!VRy14:Sy10+688;
  43. !!VRy15:Sy10+704;
  44. !!VRy21:Sy20+52;
  45. !!VRy22:Sy20+76;
  46. !!UN:Cy11/4/?y31; 18#
  47. !!UN:Cy12/4/?y32;
  48. !!UN:Cy13/4/?y33;
  49. !!UN:Cy14/4/?y34;
  50. !!UN:Cy15/4/?y35;
  51. !!UN:Cy21/4/?y41;
  52. !!UN:Cy22/4/?y42;
  53. !!FU|y31<0/y32<1/y41<0/y42<1/y33>0/y34>0/y35>0:E;
  54. !!SN:E4461360/2/y10/y20/y5;
  55. !!VRy30:-1;
  56. !!SN&y30>0:G18;
  57. !?FU101311;[extra_shoot]
  58. !!SN:X?y1/1;[edi]
  59. !!SN:W^007.ShootA.Times^/?y30;
  60. !!SN:W^007.ShootA.Times^/0;
  61. !!FU&y30<1:E;
  62. !!VRy2:Sy1+4; esi
  63. !!UN:Cy2/4/?y10;[A_STACK]
  64. !!VRy3:Sy1+16; ebx
  65. !!UN:Cy3/4/?y20;[D_STACK]
  66. !!VRy11:Sy10+52;[8#]
  67. !!VRy12:Sy10+76;
  68. !!VRy13:Sy10+656;
  69. !!VRy14:Sy10+688;
  70. !!VRy15:Sy10+704;
  71. !!VRy16:Sy10+216;
  72. !!VRy21:Sy20+52;
  73. !!VRy22:Sy20+76;
  74. !!UN:Cy11/4/?y31;[BM:T]16#
  75. !!UN:Cy12/4/?y32;[BM:N]
  76. !!UN:Cy13/4/?y33;[BM:G62]
  77. !!UN:Cy14/4/?y34;[BM:G70]
  78. !!UN:Cy15/4/?y35;[BM:G74]
  79. !!UN:Cy16/4/?y36;[BM:U3]
  80. !!UN:Cy21/4/?y41;[BM:T]
  81. !!UN:Cy22/4/?y42;[BM:N]
  82. !!FU|y31<0/y32<1/y41<0/y42<1/y33>0/y34>0/y35>0/y36<1:E;
  83. !!SN:E4453920/2/y10/y20;
  84. !!VRy30:-1;
  85. !!SN&y30>0:G16;
(This post was last modified: 29.08.2015 14:47 by Valery.)
29.08.2015 14:33
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #33

Change town buildings name and description, by hawaiing

  1. !?PI;
  2. !!VRz998:S^Super Star^;
  3. !!VRz999:S^create by Hawaiing^;
  4. !!FU222222:P0/37/0/998;[castle upgraded dwelling 1]
  5. !!FU222222:P0/37/1/999;[description]
  6. !_!FU222222:P0/37/1/100000;[ERT100000]
  7. !?GM0;
  8. ...
  9. !?FU222222;
  10. *Change the building's name&description , ByHawaiing
  11. *x1=TownType(0-8)
  12. *x2=building_ID(0-43)
  13. *x3=0 - building name,1- building description
  14. *x4=z-var or ert index(1-1000,>=100000)
  15. !!VRy10:S0;
  16. !!VRy11:S0;
  17. !!VRy12:S0;
  18. !!if&x2<17:;[ID=0-16]
  19. !!VRy10&x2=15:Sx1*44+6968420;[15=Resource Silo]
  20. !!VRy11&x2=15:Sx1*44+6977692;
  21. !!VRy10&x2<>15:Sx2*4+6972748;
  22. !!VRy11&x2<>15:Sx2*4+6979212;
  23. !!en:;
  24. !!if&x2>=17/x2<30:;[ID=17-29]
  25. !!VRy10:Sx1*11+x2*4+6968312;
  26. !!VRy11:Sx1*11+x2*4+6977584;
  27. !!en:;
  28. !!if&x2>=30:;[ID=30-43]dwelling
  29. !!VRy10:Sx1*14+x2*4+6972056;
  30. !!VRy11:Sx1*14+x2*4+6973876;
  31. !!en:;
  32. !!VRy12&x4>0/x4<1001:Sx4*512+9597416;[Z-var]
  33. !!if&x4>=100000:;[ERT]
  34. !!SN:E7824928/1/x4;
  35. !!VRy12:Sv1;
  36. !!en:;
  37. !!FU|y10=0/y11=0/y12=0:E;
  38. !!UN&x3=0:Cy10/4/y12;
  39. !!UN&x3=1:Cy11/4/y12;

Changing buildings cost, by Hawaiing:

  1. !!FU101404:P0/30/0/?y1/?y2/?y3/?y4/?y5/?y6/?y7;[get <castle dwelling 1> cost]
  2. y1-y7 sould be 0/0/10/0/0/0/500, see <Building.txt> pikeman.
  3. !!FU101404:P0/30/1/0/0/5/0/0/0/5000;[set pikeman cost]
  4. !?FU101404;
  5. **get/set town buiding cost , Hawaiing
  6. *x1=TownType 0-8
  7. *x2=BuidingID 0-43
  8. *x3=0 get value, 1 set value
  9. *x4-x10=Resource value=Wood/Mercury/Ore/Sulfur/Crystal/Gems/Gold
  10. !!FU|x1<0/x1>8/x2<0/x2>43:E;
  11. !!FU&x2>25/x2<30:E;
  12. !!if&x2>=0/x2<=16:;
  13. !!VRy1:Sx2*28+6979936;
  14. !!en:;
  15. !!if&x2>=17/x2<=25:;
  16. !!VRy2:Sx2-17*28;
  17. !!VRy1:Sx1*252+y2+6980420;
  18. !!en:;
  19. !!if&x2>=30/x2<=43:;
  20. !!VRy2:Sx2-30*28;
  21. !!VRy1:Sx1*392+y2+6985856;
  22. !!en:;
  23. !!VRy3:Sy1; !!VRy4:Sy1+4;
  24. !!VRy5:Sy1+8; !!VRy6:Sy1+12;
  25. !!VRy7:Sy1+16; !!VRy8:Sy1+20;
  26. !!VRy9:Sy1+24;
  27. !!if&x3=0:;[get]
  28. !!UN:Cy3/4/?x4 Cy4/4/?x5 Cy5/4/?x6 Cy6/4/?x7;
  29. !!UN:Cy7/4/?x8 Cy8/4/?x9 Cy9/4/?x10;
  30. !!el:;[set]
  31. !!UN:Cy3/4/x4 Cy4/4/x5 Cy5/4/x6 Cy6/4/x7;
  32. !!UN:Cy7/4/x8 Cy8/4/x9 Cy9/4/x10;
  33. !!en:;
09.11.2015 22:10
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:

Powered by MyBB Copyright © 2002-2025 MyBB Group