• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[RP] Release Guns [RP]

Status
Not open for further replies.
Junior Spellweaver
Joined
Feb 10, 2009
Messages
163
Reaction score
14
which version ?

V26+ or R50+

can u rip it o swf please
 
Custom Title Activated
Loyal Member
Joined
Jun 27, 2009
Messages
1,571
Reaction score
170
PHP:
#region :knife <user>
                    case "knife":
                    
                        {
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                if (roomUser.walkLock == true)
                                {
                                    sendData("BK" + "Nice try, but you are either stunned or cuffed and carnt stabb them.");
                                }
                                else
                                {
                                    if (punchCdLooper != null)
                                    {
                                        Room.sendWhisper(roomUser, _Username, "*attempts to stab at " + User._Username + ", but is out of energy*");
                                    }
                                    else
                                    {
                                        int isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                                        int canHit = dbClient.getInt("SELECT violence FROM rooms WHERE id = '" + _roomID + "'");
                                        int isAfk = dbClient.getInt("SELECT afk FROM users WHERE name = '" + User._Username + "'");
                                        if (isAfk == 1)
                                        {
                                            sendData("BK" + "Sorry, but this user is AFK.");
                                        }
                                        else
                                        {

                                            if (isArrested < 1)
                                            {
                                                if (canHit == 1)
                                                {
                                                    sendData("BK" + "Sorry, but this room has been declared a no fighting zone So no fighting.");
                                                }
                                                else
                                                {
                                                    if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
                                                    {
                                                        //db queries
                                                        int myHealth = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
                                                        int knife_mod = dbClient.getInt("SELECT str FROM users WHERE name = '" + _Username + "'");

                                                        //generates a random number
                                                        Random randNum = new Random();
                                                        int hit_dif_0 = randNum.Next(10, 30);
                                                        int hit_dif_1 = randNum.Next(30, 60);

                                                        //what a user hits
                                                        int hit = knife_mod * hit_dif_0 + hit_dif_1;

                                                        int getHit = myHealth - hit;
                                                        if (getHit < 1 && _Username == User._Username)
                                                        {
                                                            sendData("BK" + "Sorry, but you can not knock yourself out by stabbing.");
                                                        }
                                                        else
                                                        {
                                                            dbClient.runQuery("UPDATE users SET health = health - '" + hit + "' WHERE name = '" + User._Username + "'");
                                                            dbClient.runQuery("UPDATE users SET hits = hits + 1 WHERE name = '" + _Username + "'");
                                                            int health_db_ko = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
                                                            Room.sendShout(roomUser, "*Swings at " + args[1] + ", causing " + hit + " damage*");

                                                            ThreadStart punchCdStarter = new ThreadStart(punchCoolDown);
                                                            punchCdLooper = new Thread(punchCdStarter);
                                                            punchCdLooper.Priority = ThreadPriority.Lowest;
                                                            punchCdLooper.Start();

                                                            //if the user has 0 or less helth left
                                                            if (health_db_ko < 1)
                                                            {
                                                                if (User._Mission == "[Game] Deathmatch" || User._Mission == "[Game] Brawl")
                                                                {
                                                                    Room.sendShout(roomUser, "*Knocks out " + args[1] + ", sending them to the lobby*");
                                                                    if (User._Mission == "[Game] Deathmatch")
                                                                    {
                                                                        if (_Mission == "[Game] Deathmatch")
                                                                        {
                                                                            dbClient.runQuery("UPDATE users SET game_dm = game_dm + '10' WHERE name = '" + _Username + "'");
                                                                        }
                                                                        User.sendData("D^" + "H" + Encoding.encodeVL64(272));
                                                                        User.sendData("BK" + "Thank you for playing deathmatch.");
                                                                    }
                                                                    if (User._Mission == "[Game] Brawl")
                                                                    {
                                                                        if (_Mission == "[Game] Brawl")
                                                                        {
                                                                            dbClient.runQuery("UPDATE users SET game_brawl = game_brawl + '10' WHERE name = '" + _Username + "'");
                                                                        }
                                                                        User.sendData("D^" + "H" + Encoding.encodeVL64(181));
                                                                        User.sendData("BK" + "Thank you for playing brawl.");
                                                                    }
                                                                    User.refreshAppearance(true, true, true);
                                                                    dbClient.runQuery("UPDATE users SET health = '100' WHERE name = '" + User._Username + "'");
                                                                }
                                                                else
                                                                {
                                                                    User.sendData("D^" + "H" + Encoding.encodeVL64(153));
                                                                    User.sendData("BK" + "You have been knocked out by another user and sent to the hospital.");
                                                                    Room.sendShout(roomUser, "*Knocks out " + args[1] + ", sending them to the hospital*");
                                                                    dbClient.runQuery("UPDATE users SET kills = kills + 1 WHERE name = '" + _Username + "'");
                                                                    dbClient.runQuery("UPDATE users SET deaths = deaths + 1, dead = '1', time_dead = '10' WHERE name = '" + User._Username + "'");
                                                                    User._Mission = "Dead";

                                                                    refreshAppearance(true, true, true);

                                                                    ThreadStart koStarter = new ThreadStart(User.knockOut);
                                                                    User.deadLooper = new Thread(koStarter);
                                                                    User.deadLooper.Priority = ThreadPriority.Lowest;
                                                                    User.deadLooper.Start();

                                                                    User.roomUser.walkLock = true;
                                                                }
                                                            }
                                                        }
                                                    }
                                                    else
                                                    {
                                                        if (User._roomID == _roomID && (roomUser.Y + 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
                                                        {
                                                            Room.sendShout(roomUser, "*stabs at " + args[1] + ", but misses*");
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            break;
                        }
                    #endregion
 
Newbie Spellweaver
Joined
May 3, 2009
Messages
48
Reaction score
0
How can you be happy with releasing someone else's stuff?
 
Custom Title Activated
Loyal Member
Joined
Oct 21, 2007
Messages
2,098
Reaction score
464
settaz he did a good job because he re-released i because the last release was in share cash and people had to do annoying surverys
 
Newbie Spellweaver
Joined
Mar 6, 2009
Messages
27
Reaction score
1
All i can say is duck off -_-

As you ripped them without consent of the Maker..

And you released without the consent of the Maker..
 
Custom Title Activated
Loyal Member
Joined
Oct 21, 2007
Messages
2,098
Reaction score
464
Dont be a Nub Cobe HHe Released it so everyone can have it. he gave credits.
 
Custom Title Activated
Loyal Member
Joined
Jun 27, 2009
Messages
1,571
Reaction score
170
I told You All the Credits Goes to XAVI

There I made the Size of Text BIGGER for People that cant Freaking Read
 
Last edited:
Junior Spellweaver
Joined
Aug 4, 2010
Messages
117
Reaction score
3
Not that i know of? And before you start bitching, if i have, its been credits to them? Aye.. Gage, Your a little kid, who begs me 24/7 on MSN..
Gage hasen't been on in 4-5 weeks bud. He has been so busy I keep him updated on what is up. So.. Got anything to say?
 
Last edited:
Newbie Spellweaver
Joined
May 3, 2009
Messages
48
Reaction score
0
As I've said, he hasn't asked to release this so he shouldn't have. No if, ands, or buts about it.
 
Joined
Jul 6, 2010
Messages
352
Reaction score
126
Wow, thanks penis, i dont mind the knifes? but my guns. I didnt release them for a reason, there goes all my belief and trust in this community, i was just about to release my 100% clothes, hair and skin CREDITS TO SWIMOTHEBIG FOR BASE, but there goes that. Die

And P.S good luck getting the codes, at least that way i will know no noobs like you cant use my guns, Craig, settaz or anyone else PM me if u want it.

Xavi
 
Last edited:
Status
Not open for further replies.
Back
Top