[RP] Bank Robbing System! [SLEDMORE]

Page 1 of 2 12 LastLast
Results 1 to 25 of 29
  1. #1
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    [RP] Bank Robbing System! [SLEDMORE]

    Hey guys,

    So i have not coded in abit, and wanted to see if i'm still quite good, I saw an hotel named lollero and they pissed me off so i decided to code a bank robbing command like theirs... :').

    Right, i've not tested this at all it should work. :') - If it does not, then please do give me the errors!

    What does this do?
    Well, it allows you to rob the banks vault, and achieve 200 credits. (That is editable) And then it automatically sends an alert to the police!

    Right, heres a quick tutorial to set it up!

    1) Open up your virtualusers.cs and do ctrl + f and put in "private Thread workoutDosLooper;" (No quote marks).

    2) Underneath that add this "private Thread bankRobLooper;" (No quote marks).

    3) Do ctrl + f and put in this "private void jailBreak()" (No quote marks).

    4) Underneath that add this;

    PHP Code:
    private void bankRob()
            {
                
    int iCount 0;
                try
                {
                    while (
    true)
                    {
                        
    using (DatabaseClient dbClient Eucalypt.dbManager.GetClient())
                        {
                            if (
    _roomID != BANK VAULT ID HERE || roomUser.!= BANK VAULT Y CORD HERE || roomUser.!= BANK VAULT X CORD HERE)
                            {
                                
    userManager.sendToCop(1false"BK" "The bank is being robbed get there fast!");
                                
    Room.sendSaying(roomUser"*stops robbing the banks vault*");
                                
    jailBreakLooper null;
                                
    jailBreakLooper.Abort();
                            }
                            if (
    iCount == 60)
                            {
                                
    Room.sendSaying(roomUser"*needs three more minutes to succesfully rob the banks vault*");
                            }

                            if (
    iCount == 120)
                            {
                                
    Room.sendSaying(roomUser"*needs two more minutes to succesfully rob the banks vault*");
                            }

                            if (
    iCount == 180)
                            {
                                
    Room.sendSaying(roomUser"*needs one more minute to succesfully rob the banks vault*");
                            }

                            
    iCount++;

                            if (
    iCount 180)
                            {
                                
    Room.sendSaying(roomUser"*successfully breaks into to the banks vault and claims 200 credits!*");
                                
    dbClient.runQuery("UPDATE users SET credits = credits + 200 WHERE id = '" userID "' LIMIT 1");
                                
    refreshValueables(truetrue);
                                
    bankRobLooper null;
                                
    bankRobLooper.Abort();
                            }
                            
    Thread.Sleep(1000);
                        }
                    }
                }
                catch
                {
                    
    Thread.CurrentThread.Abort();
                    
    bankRobLooper null;
                }
            } 
    Right, next step, in that code you can edit this line;
    "if (_roomID != BANK VAULT ID HERE || roomUser.Y != BANK VAULT Y CORD HERE || roomUser.X != BANK VAULT X CORD HERE)"

    Its obvious what you do, you put in the bank vault room id where it says "BANK VAULT ID HERE" and then you do the same for the "ANK VAULT Y CORD HERE" and the "BANK VAULT X CORD HERE".

    WAIT!?! HOW DO I KNOW WHERE TO PUT THIS? HOW DO I FIND THE CORDS?

    Simples, go above the tile you want it to go on and input this command :cords (on the client obviously)

    If you do not have the ':cords' command then here you are;

    PHP Code:
    #region :cords
                        
    case "cords"// Returns the cords of the user
                            
    {
                                if (
    rankManager.containsRight(_Rank"fuse_administrator_access"userID) == false)
                                    return 
    false;
                                else
                                    
    sendData("BK" "X: " roomUser."\rY: " roomUser."\rH: " roomUser.H);
                                break;
                            }
                        
    #endregion 
    -EDIT-

    The :bankrob command!
    PHP Code:
    #region :bankrob
                        
    case "bankrob":
                            {
                                if (
    bankRobLooper == null && _roomID == YOUR BANK VAULT ID HERE && roomUser.== THE Y CORD OF THE TILE && roomUser.== THE X CORD OF THE TILE)
                                {
                                    
    userManager.sendToCop(1false"BK" "The bank is being robbed get there fast!");
                                    
    Room.sendSaying(roomUser"*Starts to rob the banks vault*");
                                    
    Room.sendSaying(roomUser"*needs four more minutes to succesfully rob the banks vault*");

                                    
    ThreadStart bankRobStarter = new ThreadStart(bankRob);
                                    
    bankRobLooper = new Thread(bankRobStarter);
                                    
    bankRobLooper.Priority ThreadPriority.Lowest;
                                    
    bankRobLooper.Start();
                                }
                                break;
                            }
                        
    #endregion 
    Add this with the other commands, remember edit the roomid, X cord and Y cord!

    Then you can debug :') - Also you can edit the ammount the users get at anytime. :')

    - Cheers hope you like this, (Also don't just put Sweet release! Post what i should attempt the code next thanks!).

    Credits to fetariina for reminding me to add the credits refresh variable lol

    ;'D!

    Remember to thank me if you like it ;')
    Last edited by Sledmore; 08-07-10 at 09:49 PM.


  2. #2
    Proficient Member iDream is offline
    MemberRank
    May 2010 Join Date
    NorwayLocation
    176Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    This is really nice mate ;)
    Good work!

  3. #3
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Cheers glad ya like it ;'D!

  4. #4
    yerro Adde is offline
    MemberRank
    Feb 2010 Join Date
    none ur bizzLocation
    2,731Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Dude. This is fucking epic! Keep it up!

  5. #5
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by What? View Post
    Dude. This is fucking epic! Keep it up!
    Cheers buddy! I need ideas on my next releases ;'D. Any ideas? Or anyone else? lol.

  6. #6
    Apprentice fetariina is offline
    MemberRank
    Feb 2009 Join Date
    United KingdomLocation
    7Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Here is little edit to get immediatly credits after succesfully bankrob:

    Edit:
    Code:
    Room.sendSaying(roomUser, "*successfully breaks into to the banks vault and claims 200 credits!*");
                                dbClient.runQuery("UPDATE users SET credits = credits + 200 WHERE id = '" + userID + "' LIMIT 1");
                                bankRobLooper = null;
                                bankRobLooper.Abort();
                            }
                            Thread.Sleep(1000);
    To:

    Code:
    Room.sendSaying(roomUser, "*successfully breaks into to the   banks vault and claims 200 credits!*");
                                dbClient.runQuery("UPDATE users SET credits = credits + 200 WHERE id = '" + userID + "' LIMIT 1");
                                refreshValueables(true, true);
                                bankRobLooper = null;
                                bankRobLooper.Abort();
                            }
                            Thread.Sleep(1000);
    Without refreshValueables(true, true); player should come again to client to see new amount of hes/her credits.

    :P

  7. #7
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by fetariina View Post
    Here is little edit to get immediatly credits after succesfully bankrob:

    Edit:
    Code:
    Room.sendSaying(roomUser, "*successfully breaks into to the banks vault and claims 200 credits!*");
                                dbClient.runQuery("UPDATE users SET credits = credits + 200 WHERE id = '" + userID + "' LIMIT 1");
                                bankRobLooper = null;
                                bankRobLooper.Abort();
                            }
                            Thread.Sleep(1000);
    To:

    Code:
    Room.sendSaying(roomUser, "*successfully breaks into to the   banks vault and claims 200 credits!*");
                                dbClient.runQuery("UPDATE users SET credits = credits + 200 WHERE id = '" + userID + "' LIMIT 1");
                                refreshValueables(true, true);
                                bankRobLooper = null;
                                bankRobLooper.Abort();
                            }
                            Thread.Sleep(1000);
    Without refreshValueables(true, true); player should come again to client to see new amount of hes/her credits.

    :P
    Wow, am so dumb, i completely forgot, LOL Cheers, il add you to credits ;').

  8. #8
    En Français? Bjork is offline
    MemberRank
    Apr 2007 Join Date
    854Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Nice, using Jailbreak functions ;)

    Good Work !!

  9. #9
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by Bjork View Post
    Nice, using Jailbreak functions ;)

    Good Work !!
    Ya, well if its there, you may as well use it ;').

  10. #10
    Enthusiast rangersko is offline
    MemberRank
    Oct 2009 Join Date
    33Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    can u make clothes or hair dressers shop :) commands thanks :)

  11. #11
    Member FCB is offline
    MemberRank
    Mar 2008 Join Date
    52Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Nice Job :)

    9/10

  12. #12
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by rangersko View Post
    can u make clothes or hair dressers shop :) commands thanks :)
    I'l think about that, i got another few commands im working one at first :').

    Quote Originally Posted by FCB View Post
    Nice Job :)

    9/10
    Cheers matey.

  13. #13
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Cheers Sledy Very Good Release Mayb Puts them On Most wanted Page

  14. #14
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by Habboretromaker View Post
    Cheers Sledy Very Good Release Mayb Puts them On Most wanted Page
    Glad ya like it Zak ;'D!

  15. #15
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    That will show lollero to stop having frequent periods ;D

  16. #16
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by Him. View Post
    That will show lollero to stop having frequent periods ;D
    Yup, indeed it sure will!

  17. #17
    Apprentice fetariina is offline
    MemberRank
    Feb 2009 Join Date
    United KingdomLocation
    7Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Lol xD I know you like LolleroRP ;)

    - LolleroRP Co-Owner (David-Santas)

  18. #18
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by fetariina View Post
    Lol xD I know you like LolleroRP ;)

    - LolleroRP Co-Owner (David-Santas)
    I don't not when roger abuses.

  19. #19
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Quote Originally Posted by fetariina View Post
    Lol xD I know you like LolleroRP ;)

    - LolleroRP Co-Owner (David-Santas)
    Ikr?
    Im Banned because of that fag x]
    And does this mean your back Sledmonster? x]

  20. #20
    Member diegoharsh is offline
    MemberRank
    Mar 2010 Join Date
    63Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Wait how do i use it (what do i type)

  21. #21
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    LOL, it appears i rushed and forgot to code that gimme 3 minutes.

    -EDIT-
    PHP Code:
    #region :bankrob
                        
    case "bankrob":
                            {
                                if (
    bankRobLooper == null && _roomID == YOUR BANK VAULT ID HERE && roomUser.== THE Y CORD OF THE TILE && roomUser.== THE X CORD OF THE TILE)
                                {
                                    
    userManager.sendToCop(1false"BK" "The bank is being robbed get there fast!");
                                    
    Room.sendSaying(roomUser"*Starts to rob the banks vault*");
                                    
    Room.sendSaying(roomUser"*needs four more minutes to succesfully rob the banks vault*");

                                    
    ThreadStart bankRobStarter = new ThreadStart(bankRob);
                                    
    bankRobLooper = new Thread(bankRobStarter);
                                    
    bankRobLooper.Priority ThreadPriority.Lowest;
                                    
    bankRobLooper.Start();
                                }
                                break;
                            }
                        
    #endregion 
    Should work not tested :').
    Last edited by Sledmore; 08-07-10 at 09:47 PM.

  22. #22
    Apprentice xixclan is offline
    MemberRank
    Jul 2010 Join Date
    24Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    NICE! will defo try this :)

  23. #23
    "Snort Snort" "HEYGUYS!" starkey98 is offline
    MemberRank
    Aug 2009 Join Date
    North CarolinaLocation
    304Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    If I was gay i would marry you CHEERS! :D

  24. #24
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    Lol, thank you @ the above!

  25. #25
    Occasional Visitor Cecer is offline
    MemberRank
    Aug 2006 Join Date
    EnglandLocation
    743Posts

    Re: [RP] Bank Robbing System! [SLEDMORE]

    FANTASTIC!
    Not the coding, that is pretty good for the retro community but still not amazing.
    (I only looked at about half of it, but this post isn't about that).

    I am on about your attitude.

    If a hotel pisses you off, do something constructive.
    You can't steal ideas.

    This is what you have done.
    The hotel now needs to put effort into being unique again.
    Have some "Thanks" for your maturity



Page 1 of 2 12 LastLast

Advertisement