diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-05 11:34:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-10 20:07:09 +0300 |
commit | 1033b3b78d2fe9c70c7385249d6996e4b0b110a6 (patch) | |
tree | cdd52385c2312ed552a0f72ea8f8ea9ca2b50d0e /npc/custom/etc/rpsroulette.txt | |
parent | 57d8f453702d4a0136cc8b71f1656352b7fa9aa1 (diff) | |
download | hercules-1033b3b78d2fe9c70c7385249d6996e4b0b110a6.tar.gz hercules-1033b3b78d2fe9c70c7385249d6996e4b0b110a6.tar.bz2 hercules-1033b3b78d2fe9c70c7385249d6996e4b0b110a6.tar.xz hercules-1033b3b78d2fe9c70c7385249d6996e4b0b110a6.zip |
Remove conf dir.
Diffstat (limited to 'npc/custom/etc/rpsroulette.txt')
-rw-r--r-- | npc/custom/etc/rpsroulette.txt | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/npc/custom/etc/rpsroulette.txt b/npc/custom/etc/rpsroulette.txt deleted file mode 100644 index 331c0f0af..000000000 --- a/npc/custom/etc/rpsroulette.txt +++ /dev/null @@ -1,127 +0,0 @@ -//===== Hercules Script ====================================== -//= Rock Scissors Roulette -//===== By: ================================================== -//= acky -//===== Current Version: ===================================== -//= 1.2 -//===== Compatible With: ===================================== -//= Hercules SVN -//===== Description: ========================================= -//= Plays a hybrid Russian Roulette Rock Scissors Paper game. -//===== Additional Comments: ================================= -//= Prizes customizable, Added emotions. -//= 1.2 Fixes by Blackthunder and me [Poki#3] -//============================================================ - -cmd_in02,182,126,2 script Crazy Boris 4_M_03,{ - mes "Hey you! Up for Rock Scissors Roulette?"; - next; - switch (select("Let me play.","Explain the rules.","Leave")) { - case 1: - break; - case 2: - mes "Ok here are the rules:"; - mes "I have with me a ^FF00006^000000 chamber pistol with ^FF00001^000000 round. First we play ^FF0000Scissors ^00FF00Paper ^0000FFRock^000000. The loser pulls the trigger. The winner is whoever comes out best."; - mes "Beat me to win a prize."; - next; - if (select("Let me play.","No thanks.") == 1) { - mes "Ok here we go..."; - break; - } - // else fall through - case 3: - mes "Pansy."; - close; - } - .@counter = 1; - while(true) { - mes "Rock... Paper..."; - - .@choice = select("^0000FFROCK!","^0000FFSCISSORS!","^0000FFPAPER!"); - if (.@lastchoice == .@choice) { - if (.@lastchoice == 1) - .@opponent = rand(1,3); - else if (.@lastchoice == 2) - .@opponent = rand(1,2); - else - .@opponent = rand(2,3); - } else { - .@opponent = rand(1,3); - } - .@lastchoice = .@choice; - - if (.@opponent == 1) - emotion e_rock; - else if (.@opponent == 2) - emotion e_scissors; - else - emotion e_paper; - - if (.@opponent == .@choice) { - // SAME - mes "Draw! Again!"; - continue; - } - - if ((.@choice == 1 && .@opponent == 3) - || (.@choice == 2 && .@opponent == 1) - || (.@choice == 3 && .@opponent == 2) - ) { - // LOSE - emotion e_heh; - mes "Boorah! You Lose!"; - next; - .@win = false; - } else { - //WIN - mes "Damnit, You Win!"; - emotion e_swt2; - next; - .@win = true; - } - - mes .@counter +" of 6"; - if (.@counter == 6) - mes "Say your prayers"; - .@pull = rand(1, 7 - .@counter); - ++.@counter; - next; - if (.@pull > 1) { - emotion e_pif; - mes "*^0000FFClick^000000* whew..."; - continue; - } - if (!.@win) { - specialeffect EF_SUI_EXPLOSION; - mes "*^0000FFClick^000000* *^FF0000BANG^000000*"; - mes "You're dead!"; - emotion e_gg; - Sp = 0; - unitkill getcharid(CHAR_ID_ACCOUNT); - close; - } - specialeffect EF_SUI_EXPLOSION; - mes "*^0000FFClick^000000* *^FF0000BANG^000000*"; - mes "OWWW @#$%^!! THAT HURT LIKE HELL!!"; - emotion e_omg; - next; - mes "Congratulations! You have won..."; - switch (rand(1,10)) { - case 1: setarray .@reward[0], 10,984; break; - case 3: setarray .@reward[0],100,601; break; // 100x Fly Wings - case 4: setarray .@reward[0], 8,603; break; // 8x Old Blue Box - case 5: setarray .@reward[0], 4,617; break; // 4x Old Violet Box - case 6: setarray .@reward[0], 1,616; break; // 1x Old Card Album - case 7: setarray .@reward[0], 10,604; break; // 10x Dead Branch - case 8: setarray .@reward[0], 3,969; break; // 3x Gold - case 10: setarray .@reward[0],20,505; break; // 20x Blue Potion - case 2: - case 9: - setarray .@reward[0], 10,985; - } - mes .@reward[0] +"x "+ getitemname(.@reward[1]) +"!"; - getitem .@reward[1], .@reward[0]; - close; - } - end; -} |