Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.87 KB | None | 0 0
  1. Guild Level:
  2. Custom value on guild mysql (how to increase the guild level? :S)
  3.  
  4. Currencies:
  5. -Gold (referred to guild vault gold)
  6. -Workers (referred to custom value - guild mysql)
  7. -Stone (referred to custom value - guild mysql)
  8. -Wood (referred to custom value - guild mysql)
  9. -Special: (referred to custom value -guild mysql, will be set togheder with the mask at guild creation)
  10. can be:
  11. 0;steel (humans)
  12. 1;mana (b/helfs)
  13. 2;mithril (dwarfs)
  14. 3;plague (forsaken)
  15. 4;thorium(orcs)
  16. 5;ley(nelfs)
  17. 6;mojo(troll)
  18. 7;energy(gnomes)
  19. 8;herbs(taurens)
  20. 9;crystal(draenei),
  21. Currencies Limits:
  22. -MaxWorkers (referred to custom value - guild mysql, is the population limit - the formula is 15+3*guild level + building bonuses)
  23. -MaxStorage (referred to custom value - guild mysql, is the max amount of stone and wood - ie: 400 means ma 400 stone and 400 wood and 400 special - the formula is 500+50*guild level + building bonuses)
  24.  
  25. Shop Types:
  26.  
  27. -Buildings/Ships
  28. -Armory
  29. -Units
  30. -Trade Goods
  31.  
  32. Shop Masks
  33.  
  34. -Buildings masks:                -Buildings Submask:
  35.  
  36. 1;HUMAN BUILDINGS                1;ENCAMPMENT
  37. 2;ORC BUILDINGS                        2;MILITARY
  38. 3;DWARF BUILDINGS                3;RESOURCES
  39. 4;NIGHTELF BUILDINGS                4;DEFENSE
  40. 5;UNDEAD BUILDINGS                5;SHIPS
  41. 6;TAUREN BUILDINGS                6;MISC
  42. 7;GNOME BUILDINGS
  43. 8;TROLL BUILDINGS
  44. 9;BLOODELF BUILDINGS
  45. 0;DRAENEI BUILDINGS
  46.  
  47. -Unit Masks:                        -Unit Submasks:
  48.  
  49. 1;HUMAN UNITS                        1;COMMONER
  50. 2;ORC UNITS                        2;GATHERER
  51. 3;DWARF UNITS                        3;SOLDIER
  52. 4;NIGHTELF UNITS                4;PIRATE
  53. 5;UNDEAD UNITS                        5;ADVANCED
  54. 6;TAUREN UNITS                        6;MISC
  55. 7;GNOME UNITS
  56. 8;TROLL UNITS
  57. 9;BLOODELF UNITS
  58. 0;DRAENEI UNITS
  59.  
  60. -Armory Masks:                        -Armory Submasks:
  61.  
  62. 1;ARMORS                        1;BASIC
  63. 2;WEAPONS                        2;ADVANCED
  64. 3;ARTILLERY                        3;ELITE
  65. 4;TABARDS
  66. 5;CLOTHING
  67. 6;MISC
  68.  
  69. -Trade Goods Masks:
  70.  
  71. 1;RESOURCES
  72. 2;FURNITURE
  73. 3;UTILITIES
  74. 4;FOOD/WATER
  75. 5;EXPENSIVE
  76. 6;MISC
  77.  
  78. Income formulas:
  79.  
  80. Gold per week: 400+100*guild level
  81. Workers per week: 5+4*guild level
  82. Stone per day: 50+20*guild level + building/worker bonuses
  83. Wood per day: 50+20*guild level + building/worker bonuses
  84. Special per day: 20+10*guild level + building/worker bonuses
  85.  
  86. So guild table structure:
  87.  
  88. ID(referring to guild id on the original DB, where takes other ifos), Level, Gold(not sure), Workers, MaxWorkers, Stone, Wood, Special, SpecialName*, MaxStorage, BuildingsMask*, BuildingsSubmask*, UnitMask*, UnitSubmask*, ArmoryMask*, ArmorySubmask*, GoodsMask*, GoldIncome, WorkerIncome, StoneIncome, WoodIncome, SpecialIncome
  89.  
  90. *Default is NULL (masks are counted for EACH number, so if the value of buildingsmask is 145 the guild will see in the shop the masks 1 4 and 5, in that case orc, undead and tauren buildings, with a 02 buildingssubmask, will see of those buildings only 0 and 2 that are encampment and gathering buildings)
  91.  
  92. Cost: w=workers / g=gold / l=wood / p=stone /s=special
  93.  
  94. Then, shop table DB would be
  95.  
  96. ID, Name, Level, Type, WorkerCost, GoldCost, WoodCost, StoneCost, SpecialCost, Mask, Submask1, Submask2, Submask3, Submask4, Time, Tooltip, Income1, Income1type, Income2, Income2type, Income3, Income3type, RequiredLevel, RequiredID1, RequiredID2, RequiredExtra, ItemID, Icon
  97.  
  98. where
  99.  
  100. ID -the id
  101. Name -the name
  102. Level -item level (could be useful for later stuff)
  103. Type -1 building, 2 unit, 3 armory, 4 good
  104. WorkerCost - the following are how much they cost
  105. GoldCost
  106. WoodCost
  107. StoneCost
  108. SpecialCost
  109. Mask - the relative mask (related to type of course)
  110. Submask1 - the relative submasks (related to the type...
  111. Submask2 ...i've split them because maybe it's easier to manage for you)
  112. Submask3
  113. Submask4
  114. Time - the time that requires to be built (we will need a cooldown storage DB i think, and i'm not sure of the format)
  115. Tooltip - description of the item
  116. Income1 - the amount of the income (works like the stats at the items)
  117. Income1type - the type of the income (1 worker, 2gold, 3wood, 4stone, 5special)
  118. Income2
  119. Income2type
  120. Income3
  121. Income3type
  122. RequiredLevel - guild level required to buy this
  123. RequiredID1 - you need at least one of that ID before buying this
  124. RequiredID2
  125. RequiredExtra - may serve for something
  126. ItemID - the ref ID to the Ingame item (like build contract or recruit token)
  127. Icon - the path in the website to the item icon (should be a 100x100 pic)
  128.  
  129. Buildings
  130.  
  131. --basic--
  132.  
  133. Tent
  134. Cost: 50l 90g                        Time: 1day   Income: +2 worker limit
  135. Mask all Submask 1
  136.  
  137. Wooden Tower
  138. Cost: 150l 100g                        Time: 2days  (defensive building)
  139. Mask all Submask 4
  140.  
  141. Wooden Palisade
  142. Cost: 40l 40g                        Time: Istant (defensive building)
  143. Mask all Submask 4
  144.  
  145. Well
  146. Cost: 30l 60p 70g                Time: 1day   (water supply for the camp)
  147. Mask all Submask 1,3,6
  148.  
  149. Command Tent
  150. Cost 70l 150g                        Time: 2days  Income: +20 gold/day
  151. Mask all Submask 2
  152.  
  153. Storage Pile
  154. Cost 2w 100l 100g                Time: 2days  Income: +50 storage limit
  155. Mask all Submask 3
  156.  
  157. Forge
  158. Cost 1w 80p 120g                Time: 1day   (allow weapon/armor upgrades)
  159. Mask all Submask 1,3,6
  160.  
  161. --Human--
  162.  
  163. Human Farm
  164. Cost: 2w 150l 50p 140g                Time: 5days  Income: +5 worker limit
  165. Mask 1 Submask 3
  166.  
  167. Human House
  168. Cost: 1w 150l 80p 160g                Time: 6days  Income: +1 worker/day
  169. Mask 1 Submask 3
  170.  
  171. Human Blacksmith
  172. Cost: 2w 160l 120p 170g                Time: 6days  Income: +20 special/day
  173. Mask 1 Submask 2,3
  174.  
  175. Human Stable
  176. Cost: 2w 180l 50p 100g                Time: 4days  (allow horses)
  177. Mask 1 Submask 2,3
  178.  
  179. Human Inn
  180. Cost: 4w 200l 120p 120g                Time: 5days  Income: +40 gold/day
  181. Mask 1 Submask 3,6
  182.  
  183. Human Chapel
  184. Cost: 4w 200l 120p 120g                Time: 5days  (holy upgrades)
  185. Mask 1 Submask 2,6
  186.  
  187. Human Barn
  188. Cost: 3w 180l 50p 130g                Time: 6days  Income: +200 storage limit
  189. Mask 1 Submask 3
  190.  
  191. Human Watchtower
  192. Cost 3w 50l 450p 300g 40s        Time: 3days  (defensive building)
  193. Mask 1 Submask 4
  194.  
  195. Human Wall (low quality)
  196. Cost 2w 50l 600p 250g 20s        Time: 2days  (defensive building)
  197. Mask 1 Submask 4
  198.  
  199. Human Wall (high quality)
  200. Cost 3w 100l 800p 450g 60s        Time: 2days  (defensive building)
  201. Mask 1 Submask 4
  202.  
  203. Human Gate
  204. Cost 3w 120l 500p 240g 30s        Time: 2days  (defensive building)
  205. Mask 1 Submask 4
  206.  
  207. Human Town Hall
  208. Cost 5w 600l 920p 550g 50s        Time: 7days  Income: +15 woker limit +20 gold/day
  209. Mask 1 Submask 2,3,6
  210.  
  211. Human Mage Tower
  212. Cost 7w 800l 1000p 1300g 60s        Time: 8days  (ultimate mage building)
  213. Mask 1 Submask 2,6
  214.  
  215. Human Cathedral
  216. Cost 7w 200l 1500p 2300g 20s        Time: 7days  (ultimate paladin building)
  217. Mask 1 Submask 2,6
  218.  
  219. Human Barracks
  220. Cost 10w 1200l 3000p 2500g 250s Time: 10days (ultimate command building)
  221. Mask 1 Submask 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement