Cancelor

CAN-SetGoals.txt

Sep 10th, 2020 (edited)
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //////////////////////////////////////////////////////////
  2. ////                                                  ////
  3. ////    CAN-Goals.txt                                 ////
  4. ////                                                  ////
  5. ////    Called by CAN-CoreScript.txt                  ////
  6. ////    To use in situ :-                             ////
  7. ////    call "https://pastebin.com/raw/ddr7k1Ga"      ////
  8. //////////////////////////////////////////////////////////
  9.  
  10. //////////////////////////////////////////////////////////
  11. ////                                                  ////
  12. ////    Runs once at startup.                         ////
  13. ////                                                  ////
  14. ////    Uses CanCount and CanDebug                    ////
  15. ////                                                  ////
  16. ////    Load different Goals based on requirements.   ////
  17. ////                                                  ////
  18. //////////////////////////////////////////////////////////
  19.  
  20. if CanDebug > 0 echo "=== Starting CAN-Goals.txt - Cycle {CanCount}. ==="
  21.  
  22. if CanCount != 0 return       // Only set goals at startup.
  23.  
  24. resetgoals                    // Reset ALL goals including prepend goals!
  25.  
  26. echo ">>> Running CAN-Goals.txt <<<"
  27.  
  28. config comfort:0
  29. taxpolicy 50 80
  30. config warrules:1
  31. defensepolicy /usetruce:95 /usespeech:3 /junktroop:1000 /usecorselet:1
  32. config hero:1
  33. nolevelheroes any
  34. //// config trade:0
  35. config buildnpc:0
  36. config npc:5
  37. fortification tra:1,ab:1
  38.  
  39. troop /idlequeuetime:1 /usereserved:1 p:1,sw:1,wo:1,w:1
  40. troop /idlequeuetime:2 /usereserved:1 wo:10,w:10,s:10,p:10,sw:10,a:10,c:10,cata:10
  41. troop t:440,b:550
  42. troop t:4400,b:5500
  43. troop t:10k,b:6k
  44.  
  45. config trade:1
  46. tradepolicy /type:gold /min:100m
  47. tradepolicy /type:food /min:4d /max:500b
  48. tradepolicy /type:wood /min:1m /max:2m /allowselltomin
  49. tradepolicy /type:stone /min:1m /max:2m /allowselltomin
  50. tradepolicy /type:iron /min:2b /max:10b
  51.  
  52. research ag:2,lu:2,mas:2,mi:2
  53. research ms:4,lu:4
  54. research ar:3,lu:5
  55. research met:5,ar:6,con:5
  56. research mt:3,in:3,ir:3,com:3
  57. research lo:4,ms:5
  58. research ar:7,ho:4,mt:5
  59. research in:4,ir:4,com:4
  60. research lo:5
  61. research ar:8,ho:5,mt:7
  62. research ho:6
  63. research ag:4,mas:4,mi:4
  64. research in:5,ir:5,com:5
  65. research ag:6,lu:6,mas:6,mi:6
  66. research lo:6,ms:6,met:6,con:6
  67. research in:6,ir:6,com:6
  68. research med:5,en:5,mac:5
  69. research mt:9,ms:9,met:9,con:9,en:9,med:9
  70. research ag:9,lu:9,mas:9,mi:9,lo:9
  71.  
  72. echo ">>> Goals set. <<<"
  73.  
  74. return
  75.  
  76. //////////////////////////////////////////////////////////
  77.  
  78. //  Do different stuff for different Lords.
  79. ##  if player.playerInfo.userName == "Lord1"  goto Lord1Goals
  80. ##  if player.playerInfo.userName == "Lord2"  goto Lord2Goals
  81.  
  82. //  Do different stuff for different Cities.
  83. ##  if city.name == "Base"  goto BaseGoals
  84. ##  if city.name == "Dump"  goto DumpCityGoals
  85. ##  if city.name == "War"   goto WarCityGoals
  86.  
  87. //  Per city examples. (N.B. Lord1 never reaches this line.)
  88. ##  if (player.playerInfo.userName == "Lord3" && city.timeSlot == 0) goto Lord3City1Goals
  89. ##  if (player.playerInfo.userName == "Lord4" && city.timeSlot == 1) goto Lord4City2Goals
  90. ##  if (player.playerInfo.userName == "Lord4" && city.name == "War") goto Lord4WarCityGoals
  91.  
  92. //  Do different stuff at different times.
  93. ##  if m_context.serverHours  <= 5  config npc:0
  94. ##  if m_context.serverHours  <= 5  echo "No farming"
  95. ##  if m_context.serverHours  >= 6  config npc:5
  96.  
  97. //////////////////////////////////////////////////////////
  98.  
Add Comment
Please, Sign In to add comment