SHARE
TWEET

Rococo's Code

a guest Nov 19th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name = "Rococo";
  2.                         Description = "He's a good definition of a big kid, very playful and innocent.\nLoves playing kids games, like Hide and Seek.";
  3.                         Size = GuardianSize.Large;
  4.                         Width = 28;
  5.                         Height = 82;
  6.                         DuckingHeight = 52;
  7.                         SpriteWidth = 96;
  8.                         SpriteHeight = 96;
  9.                         Age = 15;
  10.                         Male = true;
  11.                         InitialMHP = 200; //1000
  12.                         LifeCrystalHPBonus = 40;
  13.                         LifeFruitHPBonus = 10;
  14.                         Accuracy = 0.15f;
  15.                         Mass = 0.5f;
  16.                         MaxSpeed = 5.2f;
  17.                         Acceleration = 0.18f;
  18.                         SlowDown = 0.47f;
  19.                         MaxJumpHeight = 15;
  20.                         JumpSpeed = 7.08f;
  21.                         CanDuck = true;
  22.                         ReverseMount = false;
  23.                         DrinksBeverage = false;
  24.                         IsTerraGuardian = true;
  25.                         HurtSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldHurt);
  26.                         DeadSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldDeath);
  27.  
  28.                         AddInitialItem(Terraria.ID.ItemID.WoodenSword, 1);
  29.                         AddInitialItem(Terraria.ID.ItemID.Mushroom, 3);
  30.  
  31.                         Attributes = delegate(TerraGuardian g)
  32.                         {
  33.  
  34.                         };
  35.  
  36.                         //Animation Frames
  37.                         StandingFrame = 0;
  38.                         WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 };
  39.                         PlayerMountedArmAnimation = JumpFrame = 9;
  40.                         HeavySwingFrames = new int[] { 10, 11, 12 };
  41.                         ItemUseFrames = new int[] { 16, 17, 18, 19 };
  42.                         DuckingFrame = 20;
  43.                         DuckingSwingFrames = new int[] { 21, 22, 12 };
  44.                         SittingFrame = 23;
  45.  
  46.                         //Left Hand
  47.                         LeftHandPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point(17 * 2, 31 * 2);
  48.                         LeftHandPoints.AddFramePoint2x(10, 6, 9);
  49.                         LeftHandPoints.AddFramePoint2x(11, 32, 9);
  50.                         LeftHandPoints.AddFramePoint2x(12, 43, 38);
  51.  
  52.                         LeftHandPoints.AddFramePoint2x(16, 8, 6);
  53.                         LeftHandPoints.AddFramePoint2x(17, 34, 7);
  54.                         LeftHandPoints.AddFramePoint2x(18, 39, 19);
  55.                         LeftHandPoints.AddFramePoint2x(19, 34, 31);
  56.  
  57.                         LeftHandPoints.AddFramePoint2x(21, 33, 16);
  58.                         LeftHandPoints.AddFramePoint2x(22, 43, 27);
  59.                         //Right Hand
  60.                         RightHandPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point(31 * 2, 31 * 2);
  61.                         RightHandPoints.AddFramePoint2x(10, 10, 9);
  62.                         RightHandPoints.AddFramePoint2x(11, 34, 9);
  63.                         RightHandPoints.AddFramePoint2x(12, 45, 38);
  64.  
  65.                         RightHandPoints.AddFramePoint2x(16, 11, 6);
  66.                         RightHandPoints.AddFramePoint2x(17, 36, 7);
  67.                         RightHandPoints.AddFramePoint2x(18, 41, 19);
  68.                         RightHandPoints.AddFramePoint2x(19, 37, 31);
  69.  
  70.                         RightHandPoints.AddFramePoint2x(21, 36, 16);
  71.                         RightHandPoints.AddFramePoint2x(22, 45, 27);
  72.                         //Mount Position
  73.                         MountShoulderPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point(18 * 2, 14 * 2);
  74.                         MountShoulderPoints.AddFramePoint2x(11, 22, 20);
  75.                         MountShoulderPoints.AddFramePoint2x(12, 30, 27);
  76.                         MountShoulderPoints.AddFramePoint2x(20, 30, 27);
  77.                         MountShoulderPoints.AddFramePoint2x(21, 30, 27);
  78.                         MountShoulderPoints.AddFramePoint2x(22, 30, 27);
  79.  
  80.                         //Left Arm Positions
  81.                         LeftArmOffSet.DefaultCoordinate = new Microsoft.Xna.Framework.Point(18 * 2, 15 * 2);
  82.                         //LeftArmOffSet.AddFramePoint2x(11, 21, 21);
  83.                         //LeftArmOffSet.AddFramePoint2x(12, 32, 30);
  84.                         //LeftArmOffSet.AddFramePoint2x(19, 32, 30);
  85.  
  86.                         //Right Arm Positions
  87.                         RightArmOffSet.DefaultCoordinate = new Microsoft.Xna.Framework.Point(28 * 2, 15 * 2);
  88.                         //RightArmOffSet.AddFramePoint2x(11, 30, 21);
  89.                         //RightArmOffSet.AddFramePoint2x(12, 38, 32);
  90.                         //RightArmOffSet.AddFramePoint2x(19, 32, 30);
  91.  
  92.                         //Sitting Position
  93.                         SittingPoint = new Point(23 * 2, 37 * 2); //21, 37
  94.  
  95.                         //Head Vanity Position
  96.                         HeadVanityPosition.DefaultCoordinate2x = new Point(-1, 0);
  97.                         HeadVanityPosition.AddFramePoint2x(11, 4 - 1, 6);
  98.                         HeadVanityPosition.AddFramePoint2x(12, 13 - 1, 16);
  99.                         HeadVanityPosition.AddFramePoint2x(20, 13 - 1, 16);
  100.                         HeadVanityPosition.AddFramePoint2x(21, 13 - 1, 16);
  101.                         HeadVanityPosition.AddFramePoint2x(22, 13 - 1, 16);
  102.  
  103.                         GreetText = new string[] { "*At first, the creature got surprised after seeing me, then starts laughing out of happiness*",
  104.             "*That creature waves at you while smiling, It must be friendly, I guess?*",
  105.             "*For some reason, that creature got happy after seeing you, maybe It wasn't expecting another human in this world?*",
  106.             "*What sort of creature is that? Is it dangerous? No, It doesn't looks like it.*"};
  107.  
  108.                         NoRequest = new ConditionalMessage[] { new ConditionalMessage("*[name] says that doesn't need anything right now..*", delegate(TerraGuardian g, Player p) { return true; }),
  109.             new ConditionalMessage("*[name] told me that wants nothing right now.*", delegate(TerraGuardian g, Player p) { return true; })};
  110.  
  111.                         HasRequest = new ConditionalMessage[] { new ConditionalMessage("*[name] is asking me to do something for him.*", delegate(TerraGuardian g, Player p) { return true; }),
  112.             new ConditionalMessage("*[name] is looking at me with a funny face while telling me that he wants something to be done, like as If he didn't wanted to ask for help.*", delegate(TerraGuardian g, Player p) { return true; })};
  113.  
  114.                         CompletedRequest = new ConditionalMessage[] { new ConditionalMessage("*[name] was so happy that started laughing out loud.*", delegate(TerraGuardian g, Player p) { return true; }),
  115.             new ConditionalMessage("*[name] is so impressed that you did what he asked, that even gave you a hug.*", delegate(TerraGuardian g, Player p) { return true; })};
  116.  
  117.                         NormalMessages = new ConditionalMessage[] { new ConditionalMessage("*[name] is happy for seeing you.*", delegate(TerraGuardian g, Player p) { return !Main.bloodMoon; }),
  118.             new ConditionalMessage("*[name] asks you what's up.*", delegate(TerraGuardian g, Player p) { return Main.dayTime && !Main.eclipse; }),
  119.             new ConditionalMessage("*[name] looks scared, maybe he hates blood moons.*", delegate(TerraGuardian g, Player p) { return Main.bloodMoon; }),
  120.             new ConditionalMessage("*[name] is trembling in terror..*", delegate(TerraGuardian g, Player p) { return Main.bloodMoon; }),
  121.             new ConditionalMessage("*[name] seems to be watching some classic horror movie on the tv... No, wait, that's a window.*", delegate(TerraGuardian g, Player p) { return Main.eclipse; }),
  122.             new ConditionalMessage("*As soon as [name] started talking, you hastily asked him to stop, because of the bad trash breath that comes from his mouth.*", delegate(TerraGuardian g, Player p) { return !Main.dayTime && !Main.bloodMoon && NPC.AnyNPCs(Terraria.ID.NPCID.Merchant); }),
  123.             new ConditionalMessage("*[name] is sleeping while awake.*", delegate(TerraGuardian g, Player p) { return !Main.dayTime && !Main.bloodMoon; }),
  124.             new ConditionalMessage("*[name] is trying hard to keep It's eyes opened.*", delegate(TerraGuardian g, Player p) { return !Main.dayTime && !Main.bloodMoon; }),
  125.             new ConditionalMessage("*[name] seems to be enjoying the party.*", delegate(TerraGuardian g, Player p) { return Terraria.GameContent.Events.BirthdayParty.PartyIsUp; }),
  126.             new ConditionalMessage("*[name] is talking something about a jetpack joyride?*", delegate(TerraGuardian g, Player p) { return NPC.AnyNPCs(Terraria.ID.NPCID.Steampunker); }),
  127.             new ConditionalMessage("*[name] seems to be crying, and with a purple left eye, I guess his dialogue with [gn:1] went wrong.*", delegate(TerraGuardian g, Player p) { return NpcMod.HasGuardianNPC(1) && Main.rand.Next(2) == 0; }),
  128.             new ConditionalMessage("*[name] seems to have gotten kicked in his behind. Maybe he annoyed [gn:2]?*", delegate(TerraGuardian g, Player p) { return NpcMod.HasGuardianNPC(3) && Main.rand.Next(2) == 0; }),
  129.             new ConditionalMessage("*[gn:2] is telling [name] that he's lucky that [gn:1] doesn't plays her terrible games with him. But [name] insists that he wanted to play.*", delegate(TerraGuardian g, Player p) { return PlayerMod.PlayerHasGuardianSummoned(p, 2) && PlayerMod.PlayerHasGuardian(p, 1); }),
  130.             new ConditionalMessage("*[name] asked [gn:1] she doesn't plays with him, she told him that she can't even bear seeing him.*", delegate(TerraGuardian g, Player p) { return PlayerMod.PlayerHasGuardianSummoned(p, 1); }),
  131.             new ConditionalMessage("*[name] asked [gn:3] he doesn't plays with him, he told him that It's because he makes [gn:1] upset.*", delegate(TerraGuardian g, Player p) { return PlayerMod.PlayerHasGuardianSummoned(p, 3) && PlayerMod.PlayerHasGuardian(p, 1); }),
  132.             new ConditionalMessage("*[name] seems to be crying, and with his right cheek having a huge red paw marking, I wonder what he were talking about with [gn:1].*", delegate(TerraGuardian g, Player p) { return NpcMod.HasGuardianNPC(1) && Main.rand.Next(2) == 0; }),
  133.             new ConditionalMessage("*[name] is asking why [gn:1] plays with [gn:2] and not with him.*", delegate(TerraGuardian g, Player p) { return NpcMod.HasGuardianNPC(1) && NpcMod.HasGuardianNPC(2) && !NpcMod.HasGuardianNPC(3) && Main.rand.Next(2) == 0; }),
  134.             new ConditionalMessage("*[name] is asking why [gn:3] plays with [gn:2] and not with him.*", delegate(TerraGuardian g, Player p) { return !NpcMod.HasGuardianNPC(1) && NpcMod.HasGuardianNPC(2) && NpcMod.HasGuardianNPC(3) && Main.rand.Next(2) == 0; }),
  135.             new ConditionalMessage("*[name] is asking why [gn:1] and [gn:3] plays with [gn:2] and not with him.*", delegate(TerraGuardian g, Player p) { return NpcMod.HasGuardianNPC(1) && NpcMod.HasGuardianNPC(2) && NpcMod.HasGuardianNPC(3) && Main.rand.Next(2) == 0; })};
  136.  
  137.                         HomelessMessages = new ConditionalMessage[] { new ConditionalMessage("*[name] would like to live close to other Terrarians. Build a house for him.*", delegate(TerraGuardian g, Player p) { return true; }),
  138.             new ConditionalMessage("*[name] is lonely and afraid of the dangers around, I could build him a house.*", delegate(TerraGuardian g, Player p) { return true; }),
  139.             new ConditionalMessage("*[name] looks afraid of the dark, I should give him somewhere to live.*", delegate(TerraGuardian g, Player p) { return !Main.dayTime; }),
  140.             new ConditionalMessage("*[name] seems cold, give him some place to get out of the cold.*", delegate(TerraGuardian g, Player p) { return !Main.dayTime; }),
  141.             new ConditionalMessage("*[name] seems to have caught flu, that wouldn't have happened if he had a place to live. Bad Terrarian.*", delegate(TerraGuardian g, Player p) { return Main.raining; })};
  142.  
  143.                         TalkMessages = new ConditionalMessage[] { new ConditionalMessage("*[name] showed you a rare insect he found, he seems very happy about that.*", delegate(TerraGuardian g, Player p) { return true; }),
  144.                     new ConditionalMessage("*[name] is asking you when is going to happen another party.*", delegate(TerraGuardian g, Player p) { return true; }),
  145.                     new ConditionalMessage("*[name] seems to want to go on an adventure with you.*", delegate(TerraGuardian g, Player p) { return g.ID != 0; }),
  146.                     new ConditionalMessage("*[name] looks surprised at [gn:1], and suddenly forgets what he was going to talk about.*", delegate(TerraGuardian g, Player p) { return g.ID == 1; }),
  147.                     new ConditionalMessage("*[name] is asking if you could let him play with [gn:2].*", delegate(TerraGuardian g, Player p) { return g.ID == 2; }),
  148.                     new ConditionalMessage("*[name] seems to want a new toy, but what could I give him?*", delegate(TerraGuardian g, Player p) { return true; }),
  149.                     new ConditionalMessage("*[name] is enjoying travelling with me.*", delegate(TerraGuardian g, Player p) { return g.ID == 0; }),
  150.                     new ConditionalMessage("*[name] wants to explore the dungeon sometime.*", delegate(TerraGuardian g, Player p) { return true; }),
  151.                     new ConditionalMessage("*[name] is asing me if [nn:"+Terraria.ID.NPCID.Merchant+"] has put his trash can outside.*", delegate(TerraGuardian g, Player p) { return NPC.AnyNPCs(Terraria.ID.NPCID.Merchant); }),
  152.                     new ConditionalMessage("*[name] seems to killing insects with gasoline, I wonder where he acquired that.*", delegate(TerraGuardian g, Player p) { return PlayerMod.PlayerHasGuardianSummoned(p, 0); }),
  153.                     new ConditionalMessage("*[name] is soaked and cold.*", delegate(TerraGuardian g, Player p) { return PlayerMod.PlayerHasGuardianSummoned(p, 0) && (g.Wet || g.HasBuff(Terraria.ID.BuffID.Wet)); })};
  154.  
  155.                         BirthdayMessages = new ConditionalMessage[] { new ConditionalMessage("*[name] is asking why you aren't dancing, It's party time.*", delegate(TerraGuardian g, Player p) { return true; }),
  156.                     new ConditionalMessage("*[name] is curious about what you will give him as gift.*", delegate(TerraGuardian g, Player p) { return !PlayerMod.HasGuardianBeenGifted(p, 0); })};
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top