Rock, Paper, Sissors (edit)

Results 1 to 14 of 14
  1. #1
    Valued Member goldstory is offline
    MemberRank
    Jan 2010 Join Date
    132Posts

    Rock, Paper, Sissors (edit)

    PHP Code:

    /* 90% to " watzmename " For making
       10% to me " goldstory " For Editing
    */
    var compchoice
    var 
    playerchoice
    var 
    Frock "#fUI/UIWindow.img/RpsGame/Frock#"
    var 
    Fpaper "#fUI/UIWindow.img/RpsGame/Fpaper#"
    var 
    Fscissor "#fUI/UIWindow.img/RpsGame/Fscissor#"
    var 
    rock "#fUI/UIWindow.img/RpsGame/rock#"
    var 
    paper "#fUI/UIWindow.img/RpsGame/paper#"
    var 
    scissor "#fUI/UIWindow.img/RpsGame/scissor#"
    var 
    win "#fUI/UIWindow.img/RpsGame/win#"
    var 
    lose "#fUI/UIWindow.img/RpsGame/lose#"
    var 
    draw "#fUI/UIWindow.img/RpsGame/draw#"
    var 
    spacing "                                   "
    var 
    beta "#fUI/UIWindow.img/BetaEdition/BetaEdition#\r\n"

    var 
    winmatch false
    var 
    losematch false 
    var drawmatch false

    function 
    start() { 
        
    status = -1
        
    action(100); 


    function 
    action(modetypeselection) { 
        if (
    mode == -1) { 
            
    cm.dispose(); 
        } else { 
            if (
    status == && mode == 0) { 
                
    cm.dispose(); 
                return; 
            } else if (
    status == && mode == 0) { 
                
    cm.sendOk("Why of course, your to chicken to face me in Rock, Paper, Scissors!"); 
                
    cm.dispose(); 
                return; 
            } 
            if (
    mode == 1) { 
                
    status++; 
            } else { 
                
    status--; 
            } 
            if (
    status == 0) { 
                
    cm.sendNext(beta "#eI am the master of Rock, Paper, Scissors...\r\n\r\nMade by \r\n\r\n #r"Whoever"#k");
            } else if (
    status == 1) { 
                
    cm.sendAcceptDecline("Would you like to challenge me to a game of Rock, Paper Scissors?"); 
            } else if (
    status == 2) { 
                
    cm.sendSimple("Choose one...\r\n" 
                
    "#L0##fUI/UIWindow.img/RpsGame/Frock##l" 
                
    "#L1##fUI/UIWindow.img/RpsGame/Fpaper##l" 
                
    "#L2##fUI/UIWindow.img/RpsGame/Fscissor##l" 
                
    ); 
            } else if (
    status == 3) { 
                if (
    selection == 0) { 
                    
    playerchoice "rock"
                } else if (
    selection == 1) { 
                    
    playerchoice "paper"
                } else if (
    selection == 2) { 
                    
    playerchoice "scissor"
                } 
                var 
    random Math.floor(Math.random()*4); 
                if (
    random <= 1) { 
                    
    compchoice "rock"
                } else if (
    random <= 2) { 
                    
    compchoice "paper"
                } else if (
    random <= 4) { 
                    
    compchoice "scissor"
                } 
                
    cm.sendNext("And the results are..."); 
            } else if (
    status == 4) { 
                if (
    playerchoice == "rock" && compchoice == "rock") { 
                    
    cm.sendOk(Frock spacing rock draw); 
                    
    drawmatch true
                } else if (
    playerchoice == "rock" && compchoice == "paper") { 
                    
    cm.sendOk(Frock spacing paper lose); 
                    
    losematch true
                } else if (
    playerchoice == "rock" && compchoice == "scissor") { 
                    
    cm.sendOk(Frock spacing scissor win); cm.gainItem(AddYourItemIDAmount); 
                    
    winmatch true
                } else if (
    playerchoice == "paper" && compchoice == "rock") { 
                    
    cm.sendOk(Fpaper spacing rock win); cm.gainItem(AddYourItemIDAmount); 
                    
    winmatch true
                } else if (
    playerchoice == "paper" && compchoice == "paper") { 
                    
    cm.sendOk(Fpaper spacing paper draw); 
                    
    drawmatch true
                } else if (
    playerchoice == "paper" && compchoice == "scissor") { 
                    
    cm.sendOk(Fpaper spacing scissor lose); 
                    
    losematch true
                } else if (
    playerchoice == "scissor" && compchoice == "rock") { 
                    
    cm.sendOk(Fscissor spacing rock lose); 
                    
    losematch true
                } else if (
    playerchoice == "scissor" && compchoice == "paper") { 
                    
    cm.sendOk(Fscissor spacing paper win); cm.gainItem(AddYourItemIDAmount); 
                    
    winmatch true
                } else if (
    playerchoice == "scissor" && compchoice == "scissor") { 
                    
    cm.sendOk(Fscissor spacing scissor draw); 
                    
    drawmatch true
                } else { 
                    
    cm.sendOk("Error"); 
                } 
            } else if (
    status == 5) { 
                
    cm.dispose(); 
            } 
        } 

    *Edit Screen Shots:




    This script Includes prizes Just press
    CTLR+F and seach" cm.gainItem(AddYourItemID, Amount); " No quotes

    Then edit your itemID and the amount. For example if your server is a gold leaf system "4000313 is the ItemID" and the amount varries

    Have fun!!!!!!!!!
    Also press the Thanks Button!!
    Last edited by goldstory; 05-01-10 at 07:15 PM.


  2. #2
    Account Upgraded | Title Enabled! KZSH is offline
    MemberRank
    May 2008 Join Date
    New YorkLocation
    382Posts

    Re: Rock, Paper, Sissors (edit)

    Screenshots?

  3. #3
    Valued Member goldstory is offline
    MemberRank
    Jan 2010 Join Date
    132Posts

    Re: Rock, Paper, Sissors (edit)

    Lol i know, they were uploading

    -Done.

  4. #4
    Alpha Member Hennessy`' is offline
    MemberRank
    Dec 2009 Join Date
    in a CaveLocation
    2,298Posts

    Re: Rock, Paper, Sissors (edit)

    Thank you! =D

  5. #5
    Alpha Member watzmename is offline
    MemberRank
    Aug 2008 Join Date
    2,835Posts

    Re: Rock, Paper, Sissors (edit)

    If they can't easily add prizes into it, they shouldn't be making a server.
    The way you implemented prizes is horrible.

  6. #6
    Smoke & Fly Kars is offline
    MemberRank
    Apr 2008 Join Date
    The NetherlandsLocation
    3,383Posts

    Re: Rock, Paper, Sissors (edit)

    Credits:
    ninety-nine,99% watzmename for making it.
    00,01% you for digging it up.

  7. #7
    Account Upgraded | Title Enabled! shlomivman is offline
    MemberRank
    Jan 2006 Join Date
    284Posts

    Re: Rock, Paper, Sissors (edit)

    dude you fucked it up

  8. #8
    Valued Member goldstory is offline
    MemberRank
    Jan 2010 Join Date
    132Posts

    Re: Rock, Paper, Sissors (edit)

    Quote Originally Posted by watzmename View Post
    If they can't easily add prizes into it, they shouldn't be making a server.
    The way you implemented prizes is horrible.
    Dude i added them in like 5 seconds? Just a quick post, for nibs who cant code.

  9. #9
    CRACK DEALER IWannaWin is offline
    MemberRank
    Apr 2008 Join Date
    Ontario, CanadaLocation
    801Posts

    Re: Rock, Paper, Sissors (edit)

    Quote Originally Posted by goldstory View Post
    Dude i added them in like 5 seconds? Just a quick post, for nibs who cant code.

    Just add this after check...

    PHP Code:
    if(winmatch)
        
    cm.gainItem(AddYourItemIDAmount); 

  10. #10
    Valued Member goldstory is offline
    MemberRank
    Jan 2010 Join Date
    132Posts

    Re: Rock, Paper, Sissors (edit)

    Quote Originally Posted by IWannaWin View Post
    Just add this after check...

    PHP Code:
    if(winmatch)
        
    cm.gainItem(AddYourItemIDAmount); 
    Its already there

  11. #11
    CRACK DEALER IWannaWin is offline
    MemberRank
    Apr 2008 Join Date
    Ontario, CanadaLocation
    801Posts

    Re: Rock, Paper, Sissors (edit)

    Quote Originally Posted by goldstory View Post
    Its already there
    This is better.

    Replace this with your shit:
    PHP Code:
    var winItemID = -1// WIN ITEM ID
    var winItemCount 0// WIN ITEM COUNT

    var drawItemID = -1// DRAW ITEM ID
    var drawItemCount 0// DRAW ITEM COUNT 
    PHP Code:
    var compchoice
    var 
    playerchoice
    var 
    Frock "#fUI/UIWindow.img/RpsGame/Frock#"
    var 
    Fpaper "#fUI/UIWindow.img/RpsGame/Fpaper#"
    var 
    Fscissor "#fUI/UIWindow.img/RpsGame/Fscissor#"
    var 
    rock "#fUI/UIWindow.img/RpsGame/rock#"
    var 
    paper "#fUI/UIWindow.img/RpsGame/paper#"
    var 
    scissor "#fUI/UIWindow.img/RpsGame/scissor#"
    var 
    win "#fUI/UIWindow.img/RpsGame/win#"
    var 
    lose "#fUI/UIWindow.img/RpsGame/lose#"
    var 
    draw "#fUI/UIWindow.img/RpsGame/draw#"
    var 
    spacing "                                   "
    var 
    beta "#fUI/UIWindow.img/BetaEdition/BetaEdition#\r\n"

    var 
    winmatch false
    var 
    losematch false 
    var drawmatch false;

    var 
    winItemID = -1// WIN ITEM ID
    var winItemCount 0// WIN ITEM COUNT

    var drawItemID = -1// DRAW ITEM ID
    var drawItemCount 0// DRAW ITEM COUNT

    function start() { 
        
    status = -1
        
    action(100); 


    function 
    action(modetypeselection) { 
        if (
    mode == -1) { 
            
    cm.dispose(); 
        } else { 
            if (
    status == && mode == 0) { 
                
    cm.dispose(); 
                return; 
            } else if (
    status == && mode == 0) { 
                
    cm.sendOk("Why of course, your to chicken to face me in Rock, Paper, Scissors!"); 
                
    cm.dispose(); 
                return; 
            } 
            if (
    mode == 1) { 
                
    status++; 
            } else { 
                
    status--; 
            } 
            if (
    status == 0) { 
                
    cm.sendNext(beta "#eI am the master of Rock, Paper, Scissors...\r\n\r\nMade by \r\n\r\n #r"Whoever"#k");
            } else if (
    status == 1) { 
                
    cm.sendAcceptDecline("Would you like to challenge me to a game of Rock, Paper Scissors?"); 
            } else if (
    status == 2) { 
                
    cm.sendSimple("Choose one...\r\n" 
                
    "#L0##fUI/UIWindow.img/RpsGame/Frock##l" 
                
    "#L1##fUI/UIWindow.img/RpsGame/Fpaper##l" 
                
    "#L2##fUI/UIWindow.img/RpsGame/Fscissor##l" 
                
    ); 
            } else if (
    status == 3) { 
                if (
    selection == 0) { 
                    
    playerchoice "rock"
                } else if (
    selection == 1) { 
                    
    playerchoice "paper"
                } else if (
    selection == 2) { 
                    
    playerchoice "scissor"
                } 
                var 
    random Math.floor(Math.random()*4); 
                if (
    random <= 1) { 
                    
    compchoice "rock"
                } else if (
    random <= 2) { 
                    
    compchoice "paper"
                } else if (
    random <= 4) { 
                    
    compchoice "scissor"
                } 
                
    cm.sendNext("And the results are..."); 
            } else if (
    status == 4) { 
                if (
    playerchoice == "rock" && compchoice == "rock") { 
                    
    cm.sendOk(Frock spacing rock draw); 
                    
    drawmatch true
                } else if (
    playerchoice == "rock" && compchoice == "paper") { 
                    
    cm.sendOk(Frock spacing paper lose); 
                    
    losematch true
                } else if (
    playerchoice == "rock" && compchoice == "scissor") { 
                    
    cm.sendOk(Frock spacing scissor win);
                    
    winmatch true
                } else if (
    playerchoice == "paper" && compchoice == "rock") { 
                    
    cm.sendOk(Fpaper spacing rock win);
                    
    winmatch true
                } else if (
    playerchoice == "paper" && compchoice == "paper") { 
                    
    cm.sendOk(Fpaper spacing paper draw); 
                    
    drawmatch true
                } else if (
    playerchoice == "paper" && compchoice == "scissor") { 
                    
    cm.sendOk(Fpaper spacing scissor lose); 
                    
    losematch true
                } else if (
    playerchoice == "scissor" && compchoice == "rock") { 
                    
    cm.sendOk(Fscissor spacing rock lose); 
                    
    losematch true
                } else if (
    playerchoice == "scissor" && compchoice == "paper") { 
                    
    cm.sendOk(Fscissor spacing paper win);
                    
    winmatch true
                } else if (
    playerchoice == "scissor" && compchoice == "scissor") { 
                    
    cm.sendOk(Fscissor spacing scissor draw); 
                    
    drawmatch true
                } else { 
                    
    cm.sendOk("Error"); 
                }
                if(
    winmatch)
                    if(
    winItemID !== -&& winItemAmount 0)
                        
    cm.gainItem(winItemIDwinItemAmount);
                else if(
    drawmatch)
                    if(
    drawItemID !== -&& drawItemAmount 0)
                        
    cm.gainItem(drawItemIDdrawItemAmount); 
            } else if (
    status == 5) { 
                
    cm.dispose(); 
            } 
        } 

    Last edited by IWannaWin; 06-01-10 at 11:32 PM.

  12. #12
    Valued Member goldstory is offline
    MemberRank
    Jan 2010 Join Date
    132Posts

    Re: Rock, Paper, Sissors (edit)

    i know what your trying to say.
    but mine works perfectly fine, no one sees the script so does it matter.

  13. #13
    Valued Member SexyStory is offline
    MemberRank
    Dec 2009 Join Date
    147Posts

    Re: Rock, Paper, Sissors (edit)

    Were do i add it and also Do i deleate the Npc info im gona use for this or just leaveit with the regular npc info and just add this code? help me
    Also Tel me were do add it and ty :3

  14. #14
    Valued Member goldstory is offline
    MemberRank
    Jan 2010 Join Date
    132Posts

    Re: Rock, Paper, Sissors (edit)

    Quote Originally Posted by SexyStory View Post
    Were do i add it and also Do i deleate the Npc info im gona use for this or just leaveit with the regular npc info and just add this code? help me
    Also Tel me were do add it and ty :3

    see, iWannaWin's Code will confuse you, just use mine it works better.
    Also you can change around the prizes with mine like

    if you pick paper and computer picks rock, you win... 10 Leafs
    if you pick scissors and he picks paper, you win.... 3 Leafs, like that,
    Last edited by goldstory; 07-01-10 at 12:04 AM.



Advertisement