Advertisement
RaythEvony

Valley cap and release by Rayth

Nov 25th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. //Fill in values below to cap and release a valley. used for medal farming.
  2. VALC = "773,90" //Coordinates of valley
  3. HERO = "any,!mayor,!trainer" //Hero string for attack
  4. WAVES = 3 //Number of waves to have at a time.
  5. MODIFIER = 1 //Use for adjustments such as when evony add buffs that slow march down (Thanksgiving 2015).Usually just leave at 1
  6.  
  7. //------------STOP EDITING------------
  8. TROOPS = ["a:50","a:100","a:200","w:1,s:1,p:1,sw:1,a:400,wo:1","w:1,s:1,p:1,sw:1,c:1,a:800,wo:1","w:1,s:1,p:1,sw:1,c:1,a:1600,wo:1","w:1,s:1,p:1,sw:1,c:1,a:3200,wo:1","wo:1,w:1,s:1,p:1,sw:1,a:8000,c:1,b:1","wo:1,w:1,s:1,p:1,sw:1,a:12800,c:1,b:10","wo:1,w:1,s:1,p:1,sw:1,a:25000,c:1,b:150"]
  9.  
  10. label gettroops
  11. id = GetFieldId(VALC)
  12. lev = GetLevel(id)
  13. TRP = TROOPS[lev-1]
  14. //TRP = "wo:1,w:1,s:1,p:1,sw:1,a:32000,c:1,b:150,t:100"
  15. if (TRP == null) goto gettroops
  16. echo "Troops are: " + TRP
  17. journeyTime = city.getTravelTime(city.fieldId, GetFieldId(VALC), GetTroops(TRP), 5) * MODIFIER
  18. waittime = round( journeyTime * 2 / WAVES + 2)
  19.  
  20. label doIt
  21. execute "abandon " + VALC
  22. repeat 1
  23. sleep 3
  24. execute "attack " + VALC + " " + HERO + " " + TRP
  25. execute "sleep " + waittime
  26. loop doIt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement