Concept:
To make a new whole system like Role play for Shockwave based.
Why Shockwave and not Flash?
Because Shockewave is more better and you can do loads of stuff.
COD?
Call Of Duty.
Impossible?
Was in client side like visually but then i so lab-hotel's thread and said FUCK YEH!
Codes:
Xp Class:
Call Of Duty Core With API SystemCode:using Ion.Storage; using Holo.Virtual.Users; using Holo; using System.Text; using System.Data; using System.Collections; using System; using System.Collections.Generic; namespace Zak.COD.Human.Properties.XP { public class XP { #region Declares // Max amount of XP user can get [value based on MW2 Xbox]. private const int MAX_XP = 2434700; // Array XP using MAX_XP. private string[] mXP = new string[MAX_XP]; // XP Array. // Get User By Using VirtualUser. private virtualUser U; // Declare ID. int ID; public List<XP> ExperincePoints; int GotKill; int XPoints; #endregion #region Contructure public XP() { //Credits to Quackster for telling me how to do this with Stringbuilder but im using List now. ExperincePoints = new List<XP>(); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { foreach (DataRow XPRow in dbClient.getTable("SELECT * FROM users").Rows) { // Previously using Convert.ToInt32 now using Explict cast conversion. ExperincePoints.Add(new XP( (int)(XPRow["gotkill"]), (int)(XPRow["xp"]), (string)(XPRow["matchname"]))); } } } public XP(int mGotKill, int mXP, string mMatchName) { mGotKill = this.GotKill; mXP = this.XPoints; mMatchName = this.U.MatchName; } #endregion #region Indexer // Advanced int indexer public string this[int XP] { // Get properties. get { //Define index using variable XP = this.XPoints; // if index is greater then 0 and is low than max xp. if (XP >= 0 && XP < MAX_XP) { // return amount of XP user has. return mXP[XP]; } else { // XP is higher than MAX_XP value throw new System.IndexOutOfRangeException(); } } // Set properties. set { // if index is greater then 0 and is low than max xp. if (XP >= 0 && XP < MAX_XP) { //Array mXP value is set to the amount of the index value. mXP[XP] = value; } else { // If value is higher then MAX_XP throw new System.IndexOutOfRangeException(); } } } #endregion #region Methods // Advanced Maths system coming soon. public void UpdateXP(int ID) { int GotKill = this.GotKill; int XP = this.XPoints; // Kill greater then 0. if (GotKill > 0) { // If match is search and destroy. if (U.MatchName.Contains("[S&D]")) { // Update UserXp by 500. GotKill = +500; // Remove kill so it does not loop and give loads of xp. GotKill = -1; } else { // Update UserXp by 100. XP = +100; // Remove kill so it does not loop and give loads of xp. GotKill = -1; } } } #endregion } }
Health ClassCode:using System; using System.Collections.Generic; using System.Linq; using System.Text; using Zak.COD.Human.Properties.Health; using Zak.COD.Human.Properties.XP; using Holo.Source.Weapons; using Holo.Virtual; using Holo.Virtual.Users; using Holo.Source.Call_Of_Duty_Plugin.KillStreaks.BlackBird; namespace Holo.Source.Call_Of_Duty_Plugin.Main { public class CallOfDutyCore { #region Fields #region Get Fields public HealthSystem fHealth; public XP fXP; public Snipers fSniper; public Zombies fZombie; public virtualUser fUser; public virtualRoomUser fRoomuser; public BlackBirdMainCore fBlackBird; #endregion #endregion #region Get System / API public HealthSystem Health() { return fHealth; } public Snipers Sniper() { return fSniper; } public XP XP() { return fXP; } public Zombies Zombie() { return fZombie; } public virtualUser User() { return fUser; } public virtualRoomUser RoomUser() { return fRoomuser; } public BlackBirdMainCore BlackBird() { return fBlackBird; } #endregion #region Key Properties // Chracter Keys public void CharKeysApply(int Character) { char Char; switch (Character) { // 1 = UP. case 1: { Char = (char)1; char.IsDigit(Char); Character = RoomUser().goalY + 1; break; } } } #endregion #region KillStreaks // Killstreak Carepackage #region Care_Package //Team Care Package #region TeamCarePackge public void GetTeamCarePackage(string Colour, string Killstreak, int Kills,List<string> Builder) { // Default Colour. Colour = "Green"; // Add Killstreak Weapons. Builder.Add(BlackBird().BlackBirdCarePackage); } #endregion //Enemy Care Package #region EnemyCarePackage #endregion #endregion #endregion } }
Human ClassCode:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using Ion.Storage; using Holo; using Holo.Virtual.Users; namespace Zak.COD.Human.Properties.Health { public class HealthSystem { private virtualUser U; // Usage: User gets hit instead of a query it's a void it will improve the performance as this void will be used multiple features. // Example: if(UserHitted == true) { TakeAwayHealth(Health); // Amount hitted. or TakeAwayHealth(20); Take away 20 health points. } public void TakeAwayHealth(int Amount) { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { DataRow HealthInfo = dbClient.getRow("SELECT * FROM users WHERE id = '" + U.userID + "'"); int Value = (int)HealthInfo["health"] - Amount; } } public int GetHealth(int ID) { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { DataRow HealthInfo = dbClient.getRow("SELECT health FROM users WHERE id = '" + U.userID + "'"); return (int)HealthInfo["health"]; } } } }
Loads more remember these classes are not completed they are just a base to work from i released this so people can develop further on this i will be also developing on this.Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using Holo.Source.Call_Of_Duty_Plugin.Main; namespace Zak.Call_Of_Duty_Plugin.UserProperties { public class Human { public CallOfDutyCore Call_Of_Duty_Core; int ID; int Health; int XP; public Human() { ID = Call_Of_Duty_Core.User().userID; Health = Call_Of_Duty_Core.Health().GetHealth(ID); } } }
Guns (what they will look like [not all guns])
Download Link: http://www.mediafire.com/?kbke615u5da6rgl







