Player Ideas NPC: <-- BY ME ONLY
Add this in NPCDialog.cs
Add this to NPC.txt
Code:
#region Player Ideas NPC case 88634: // Coded by 5supertao { if (Control == 0) { GC.AddSend(Packets.NPCSay("Hello, do you have any ideas for the server?")); GC.AddSend(Packets.NPCLink("Yes.", 1)); GC.AddSend(Packets.NPCLink("Just Passing By.", 255)); GC.AddSend(Packets.NPCSetFace(30)); GC.AddSend(Packets.NPCFinish()); } if (Control == 1) { GC.AddSend(Packets.NPCSay("Go find a player with [PM] or [GM] in their name, and give them an idea for the server")); GC.AddSend(Packets.NPCSay(" . If the idea is liked, and not heard before, you will get 50,000 CPs, Interested?")); GC.AddSend(Packets.NPCLink("Yes, but where is a player with [GM/PM] in their name?", 2)); GC.AddSend(Packets.NPCLink("Just passing by.", 255)); GC.AddSend(Packets.NPCSetFace(30)); GC.AddSend(Packets.NPCFinish()); } if (Control == 2) { Game.World.SendMsgToAll("[Owner] Player", GC.MyChar.Name + " has a idea for the server, go to him. ", 2011, 0); } break; } #endregion
Code:
88634 1540 2 0 1002 439 399
Dismount Steed When Attacking: <-- By me 100% that I know of
Go to PacketHandler.cs and search for
then you will see
Replace all of this with
Code:
case 1022:
Code:
default: if (GC.MyChar.Loc.Map != 1036) PacketHandling.Attack.Handle(GC, Data); break;
Code:
default: // Coded by 5supertao if (GC.MyChar.Loc.Map != 1036) { [COLOR="Green"] if (GC.MyChar.StatEff.Contains(NewestCOServer.Game.StatusEffectEn.Ride)) { GC.MyChar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.Ride); return; } [/COLOR] PacketHandling.Attack.Handle(GC, Data); } break;
2nt hand weapon UnEquip NPC: <--- Credits to .Arco AND I
NPC IS USED FOR Tao's who put on sheild, and cannot get off, because it won't show the 2nt handed weapon slot.
Go to NPCDialog.cs and add this
Code:
#region Shield UnEquip case 9246: // Coded by 5supertao { if (Control == 0) { GC.AddSend(Packets.NPCSay("Would you like to UnEquip your 2nt Hand weapon?")); GC.AddSend(Packets.NPCLink("Yes Please", 1)); GC.AddSend(Packets.NPCLink("Just passing by.", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } if (Control == 1) { GC.MyChar.ShieldUn(); } break; } #endregion
Code:
public void ShieldUn() // Coded by 5supertao { if (Equips.RightHand.ID != 0) { Inventory.Add(Equips.Get(5)); EquipStats(5, false); Game.World.Spawn(this, false); Equips.UnEquip(5, this); } }
Code:
9246 1540 2 0 1036 179 204
Level 120 Trojan PKMap: <-- Edited release/Fixed by me
Add this in NPCDialog.cs
And add this to NPC.txt
Code:
#region Pk Trojan Map case 19992: // Coded by 5supertao { if (Control == 0) { GC.AddSend(Packets.NPCSay("Hey There, " + GC.MyChar.Name + ".You want teleport to PK Map??? ")); GC.AddSend(Packets.NPCLink("Yes! I'm more than level 120.", 1)); GC.AddSend(Packets.NPCLink("Are You Crazy?", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } if (Control == 1) { if (GC.MyChar.Level >= 120) { GC.MyChar.Teleport(1507, 095, 113); GC.AddSend(Packets.NPCSay("Good luck.")); GC.AddSend(Packets.NPCLink("Thanks.", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You are not level 120, Sorry.")); GC.AddSend(Packets.NPCLink("Sorry.", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } break; } #endregion
Code:
19992 280 2 67 1002 421 386
Let people PK in Twin City: 100% by me.. Its its a release.
Open World.cs and search for
change the whole entire line to
Code:
public static ArrayList NoPKMaps = new ArrayList() {
Code:
public static ArrayList NoPKMaps = new ArrayList() { (ushort)1036, (ushort)1039, (ushort)700, (ushort)1004 }; // Coded by 5supertao