123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- require "host"
- STD_ERR = require "errno"
- MAXRAND = 10000
- DAY_SEC = 86400
- HOUR_SEC = 3600
- MIN_SEC = 60
- MONEY_PARAM = 100
- GOODS_NONE = 0
- GOODS_HERO = 1
- GOODS_CARD = 2
- GOODS_EQUIP = 3
- GOODS_MONEY = 4
- GOODS_DEBRIS = 5
- GOODS_BOX = 6
- CURRENCY_ID_COINS = 100001
- CURRENCY_ID_STM = 110001
- CURRENCY_ID_DACTIVITY = 110003
- CURRENCY_ID_WACTIVITY = 110004
- CURRENCY_ID_RELIC_SCORE = 110005
- CURRENCY_ID_RELIC_COIN = 110006
- CURRENCY_ID_EQUIP_COIN = 110009
- CURRENCY_ID_DIA = 130001
- CURRENCY_ID_IRON = 140001
- CURRENCY_ID_WOOD = 140002
- CURRENCY_ID_ROLE_EXP = 140003
- CURRENCY_ID_EXP_STONE = 140004
- CURRENCY_ID_EXP_BOOK = 140005
- CURRENCY_ID_TALENT_STONE = 140006
- CURRENCY_ID_WEAPON_SCROLL = 140007
- CURRENCY_ID_JEWELRY_SCROLL = 140008
- CURRENCY_ID_WRISTER_SCROLL = 140009
- CURRENCY_ID_CUIRASS_SCROLL = 140010
- CURRENCY_ID_BELT_SCROLL = 140011
- CURRENCY_ID_SHOE_SCROLL = 140012
- CURRENCY_ID_DRAW_COIN = 140050
- CURRENCY_ID_DRAW_COIN2 = 140051
- CURRENCY_TYPE_RANDOM_BOX = 8
- CURRENCY_TYPE_SELECT_BOX = 9
- HERO_TYPE_CARD= 5
- HERO_TYPE_CITY = 6
- STAR_COLOR_PURPLE = 4
- STAR_COLOR_ORANGE = 7
- STAR_COLOR_RED = 11
- DAILY_QUEST = 1
- WEEKLY_QUEST = 2
- ACHI_QUEST = 3
- MAIN_QUEST = 4
- QUEST_PROGRESS = 0
- QUEST_REACHED = 1
- QUEST_END = 2
- RANKING_ADV = 1
- RANKING_POWER = 2
- PAY_TYPE_FREE = 0
- PAY_TYPE_GIFT = 1
- PAY_TYPE_ITEM = 2
- LIMIT_TYPE_NONE = 0
- LIMIT_TYPE_DAILY = 1
- LIMIT_TYPE_WEEKLY = 2
- LIMIT_TYPE_MONTHLY = 3
- LIMIT_TYPE_LONG = 4
- OTHER_REDIS_KEY = "other"
- STATE_OPEN = 0
- STATE_CLOSE = 1
- STATE_OVER = 2
- MODULE_ID_RELIC_MANUA = 50
- MODULE_ID_QUEST = 15
- MODULE_ID_SIGN_IN = 18
- MODULE_ID_DIA_DRAW = 20
- MODULE_ID_SHOP = 45
- MODULE_ID_DAILY_DUNGEONS = 53
- MODULE_ID_FUND = 61
- MODULE_ID_LOTTERY = 76
- MODULE_ID_RELIC = 2003
- MODULE_ID_DRAW_EQUIP = 2004
- MODULE_ID_DIA_SHOP = 2009
- MODULE_ID_ADV_GIFT = 2010
- MODULE_ID_PRIVILEGE_CARD = 2011
- MODULE_ID_AD_CARD = 2012
- MODULE_ID_MONTH_CARD = 2013
- MODULE_ID_SUPREME_CARD = 2014
- MODULE_ID_KEEP_RECHARGE = 2015
- MODULE_ID_LEVEL_GIFT = 2017
- MODULE_ID_FIRST_RECHARGE1 = 54
- MODULE_ID_FIRST_RECHARGE2 = 3002
- MODULE_ID_FIRST_RECHARGE3 = 3003
- MODULE_ID_FUND1 = 3006
- MODULE_ID_FUND2 = 3007
- MODULE_ID_FUND3 = 3008
- MODULE_ID_FUND4 = 3009
- MODULE_ID_FUND5 = 3010
- MODULE_ID_POP_GIFT = 3011
- MODULE_ID_HERO_RANK = 4001
- MODULE_ID_SIMPLE_BATTLE_RANK = 4002
- MODULE_ID_POWER_RANK = 4003
- MODULE_ID_ELITE_BATTLE_RANK = 4004
- MODULE_ID_TREASURE = 4005
- MONESTER_TYPE_ORDINARGY = 21
- MONESTER_TYPE_ELITE = 22
- MONESTER_TYPE_BOSS = 23
- ATTR_ADV_COIN = 100
- ATTR_ADV_EXP_STONE = 101
- ATTR_FARM_ADD = 102
- ATTR_COIN_ADD = 103
- ATTR_WOOD_ADD = 104
- ATTR_IRON_ADD = 105
|