Advertisement
elmzeny

Untitled

Jan 24th, 2017
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.55 KB | None | 0 0
  1. // ☺ Created by David Eid
  2. // ☺ Copyright © 2010 - 2016 TQ Digital
  3. // ☺ Rotana-Co - Project
  4.  
  5. using System;
  6. using System.Collections.Generic;
  7. using COServer.Network.GamePackets;
  8.  
  9. namespace COServer
  10. {
  11.     public unsafe class Constants
  12.     {
  13.         public static readonly MsgTalk
  14.         ArrowsReloaded = new MsgTalk("Arrows Reloaded.", MsgTalk.System),
  15.         TradeRequest = new MsgTalk("Trade request sent.", MsgTalk.System),
  16.         Teleportout = new MsgTalk("You can not Teleport!", MsgTalk.System),
  17.         Dropitemout = new MsgTalk("You can not Dropitem here!", MsgTalk.System),
  18.         PKForbidden = new MsgTalk("PK forbidden in this region.", MsgTalk.System),
  19.         vipteleport = new MsgTalk("you can't teleport in this map.", MsgTalk.System),
  20.         JailItemUnusable = new MsgTalk("You can't use this item in here!", MsgTalk.System),
  21.         FullInventory = new MsgTalk("There is not enough room in your inventory!", MsgTalk.System),
  22.         ExpBallsUsed = new MsgTalk("You can use only ten exp balls a day. Try tomorrow.", MsgTalk.System),
  23.         TradeInProgress = new MsgTalk("An trade is already in progress. Try again later.", MsgTalk.System),
  24.         TradeInventoryFull = new MsgTalk("There is not enough room in your partner inventory.", MsgTalk.System),
  25.         ProficiencyLeveled = new MsgTalk("Congratulation, you have just leveled your proficiency.", MsgTalk.System),
  26.         FloorItemNotAvailable = new MsgTalk("You can`t pick up other player`s loot at the moment. Please wait.", MsgTalk.System);
  27.  
  28.         public static MsgTalk NoDrugs(int time)
  29.         {
  30.             return new MsgTalk("Poison star activated. You will not be able to use drugs for " + time + " seconds.", MsgTalk.System);
  31.         }
  32.         public static MsgTalk SpellLeveled(string Name)
  33.         {
  34.             return new MsgTalk("Congratulation, you have just leveled your spell " + Name + ".", MsgTalk.System);
  35.         }
  36.         public static MsgTalk Accuracy(int time)
  37.         {
  38.             return new MsgTalk("Accuracy activated. Your agility will be increased a bit for " + time + ".", MsgTalk.System);
  39.         }
  40.         public static MsgTalk DummyLevelTooHigh()
  41.         {
  42.             return new MsgTalk("You can't attack this dummy because your level is not high enough.", MsgTalk.System);
  43.         }
  44.         public static MsgTalk NoArrows(string name)
  45.         {
  46.             return new MsgTalk("Can't reload arrows, you are out of " + name + "s!", MsgTalk.System);
  47.         }
  48.         public static MsgTalk Invisibility(int time)
  49.         {
  50.             return new MsgTalk("Invisibility activated. You will be invisible for monsters as long as you don't attack for " + time + ".", MsgTalk.System);
  51.         }
  52.         public static MsgTalk PickupSilver(uint amount)
  53.         {
  54.             return new MsgTalk("You received " + amount + " silver.", MsgTalk.System);
  55.         }
  56.         public static MsgTalk PickupItem(string name)
  57.         {
  58.             return new MsgTalk("You obtained 1 " + name + ".", MsgTalk.System);
  59.         }
  60.         public static MsgTalk Dodge(float percent, int time)
  61.         {
  62.             return new MsgTalk("Dodge activated. Your dodge will be increased with " + percent + " for " + time + ".", MsgTalk.System);
  63.         }
  64.         public static MsgTalk Shield(float percent, int time)
  65.         {
  66.             return new MsgTalk("Shield activated. Your defence will be increased with " + percent + " for " + time + ".", MsgTalk.System);
  67.         }
  68.         public static MsgTalk TeamExperience(uint experience)
  69.         {
  70.             return new MsgTalk("teammates You received " + experience + " Bonus EXP.", MsgTalk.System);
  71.         }
  72.         public static MsgTalk Stigma(float percent, int time)
  73.         {
  74.             return new MsgTalk("Stigma activated. Your attack will be increased with " + percent + " for " + time + ".", MsgTalk.System);
  75.         }
  76.         public static MsgTalk ExtraExperience(uint experience)
  77.         {
  78.             return new MsgTalk("You received " + experience + " Bonus EXP.", MsgTalk.System);
  79.         }
  80.         public static MsgTalk PickupConquerPoints(uint amount)
  81.         {
  82.             return new MsgTalk("You received " + amount + " CPs.", MsgTalk.System);
  83.         }
  84.         public static MsgTalk Enchant(int origEnch, int newEnch)
  85.         {
  86.             if (newEnch <= origEnch)
  87.                 return new MsgTalk("You were unlucky. You didn't gain any more enchantment in your item. Your generated enchant is " + newEnch + ".", MsgTalk.System);
  88.             else return new MsgTalk("You were lucky. You gained more enchantment in your item. Your generated enchant is " + newEnch + ".", MsgTalk.System);
  89.         }
  90.         public static MsgTalk NoobTeamExperience(uint experience)
  91.         {
  92.             return new MsgTalk("One of your teammates killed a monster and because you have a noob inside your team, you gained " + experience + " experience.", MsgTalk.System);
  93.         }
  94.         public static MsgTalk BoothItemSell(string buyername, string itemname, bool conquerpoints, uint cost)
  95.         {
  96.             return new MsgTalk("Congratulations. You just have just sold " + itemname + " to " + buyername + " for " + cost + (conquerpoints ? " ConquerPoints." : " Gold."), MsgTalk.System);
  97.         }
  98.         public static ulong ClientSeal = BitConverter.ToUInt64(System.Text.Encoding.Default.GetBytes("TQClient"), 0);
  99.         public const string
  100.         ServerKey = "TQServer",
  101.         ServerName = "Space-Co",
  102.         DMapsPath = "database\\",
  103.         DataHolderPath = "database\\",
  104.         PortalsPath = "database\\Portals.ini",
  105.         ShopsPath = "database\\shops\\Shop.dat",
  106.         MonstersPath = "database\\Monsters.txt",
  107.         GameCryptographyKey = "rtSDXu0YDsJP1q5l",
  108.             //  GameCryptographyKey = "C238xs65pjy7HU9Q",
  109.         ItemBaseInfosPath = "database\\Items.txt",
  110.         RevivePoints = "database\\RevivePoints.ini",
  111.         ItemPlusInfosPath = "database\\ItemsPlus.ini",
  112.         QuizShow = "database\\Emulator\\QuizShow.txt",
  113.         EShopsPath = "database\\shops\\emoneyshop.ini",
  114.         SoulGearInformation = "database\\soulgear.txt",
  115.         HonorShopPath = "database\\shops\\HonorShop.ini",
  116.         WelcomeMessages = "database\\WelcomeMessages.txt",
  117.         EShopsV2Path = "database\\shops\\emoneyshopV2.ini",
  118.         UnhandledExceptionsPath = "database\\exceptions\\",
  119.         RaceShopPath = "database\\shops\\RacePointShop.ini",
  120.         RewardPath = "database\\Emulator\\operating_prize.txt",
  121.         ChampionShopPath = "database\\shops\\GoldenLeagueShop.ini";
  122.  
  123.         public const int
  124.         MaxBroadcasts = 50;
  125.         public const sbyte
  126.         nScreenDistance = 19,
  127.         pScreenDistance = 19,
  128.         remScreenDistance = 19,
  129.         BombScreenDistanc = 19;
  130.         public const ushort
  131.         FloorItemSeconds = 20,
  132.         SocketOneProgress = 100,
  133.         SocketTwoProgress = 300,
  134.         FloorItemAvailableAfter = 15,
  135.         DisconnectTimeOutSeconds = 10;
  136.         public static uint
  137.         MoneyDropRate,
  138.         ExtraSpellRate,
  139.         MoneyDropMultiple,
  140.         ExtraExperienceRate,
  141.         ExtraProficiencyRate;
  142.  
  143.         public static readonly List<ushort> PKForbiddenMaps = new List<ushort>()
  144.         {
  145.             601,700,1036,1002,15351,1039,1004,1006,8880,
  146.             8881,1950,8800,8801,8802,8803,3055,1858,15454,2351
  147.         };
  148.         public static readonly List<ushort> PKFreeMaps = new List<ushort>()
  149.         {
  150.             4025,1763,3071,1812,1038,1005,6000,6001,6002,6003,8883,1801,
  151.             1508,1518,8877,3333,1090,5000,2071,1730,1731,1732,1733,1734,1735,3935,
  152.             1736,2057,1559,1509,6412,14785,1707,12345,12346,1234,3846,1844,700,16414
  153.         };
  154.         public static readonly List<int> AvaibleSpells = new List<int>()
  155.         {
  156.             1380,1385,1390,1395,1360,1400,1405,1410,1046,
  157.             1045,5030,7001,7002,7003,7020,1415,1418,1416,1417,1419
  158.         };
  159.         public static List<ushort> NoRiding = new List<ushort>
  160.         {
  161.          1090, 1559, 1518, 4021, 12345, 12346, 1707, 14785, 3333, 6412,
  162.          1844, 4025, 3071, 2527, 2522, 1655, 2090, 1459, 1509, 2071,
  163.          12223, 12224, 12225, 12226, 8081, 8082, 16414, 11224, 11225,
  164.          1458, 1459, 1460, 1090, 1707, 1708, 9391, 9392, 44444
  165.         };
  166.         public static List<ushort> QuestsMaps = new List<ushort>
  167.         {
  168.            6752
  169.         };
  170.         public static readonly List<ushort> NoRevHere = new List<ushort>()
  171.         {
  172.             1090,1559,1518,4021,12345,12346,1707,14785,3333,3935,3846,
  173.             6412,1844,4025,3071,2527,2522,1655,2090,2091,1002,2014
  174.         };
  175.     }
  176. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement