viewing paste Unknown #14020 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
//======Name========================================
// Dice Event
//======Version=====================================
// 1.0
//======Author(s)===================================
// Sandbox
//======Comments====================================
// In loving memory of AstralRO
//==================================================
 
-       script  AutoEventTrigger        -1,{
 
 
OnWhisperGlobal:
        if (getgmlevel() >= 90) {
        donpcevent "DiceTrigger::OnDiceETrigger";
        end;
}
 
OnClock2030:
OnClock2330:
OnClock1730:
OnClock1430:
OnClock1130:
donpcevent "DiceTrigger::OnDiceETrigger";
 
}
 
-       script  DiceTrigger     -1,{
 
OnInit:
disablenpc "Dice Event Warper#dice";
disablenpc "Claim Your Prize!#dice";
 
OnJoinDice:
warp "quiz_02",55,87;
 
OnDiceETrigger:
if(agitcheck() == 1) end;
bindatcmd "joindice",strnpcinfo(3)+"::OnJoinDice",0,99;
announce "Dice Event: We are going to have a Dice Event",bc_all,0xFF7F50;
sleep2 3000;
announce "Dice Event: For those who want to join, please use @joindice!",bc_all,0xFF7F50;
sleep2 3000;
announce "Dice Event: You have 2 Minutes to join!",bc_all,0xFF7F50;
sleep2 60000;
announce "Dice Event: Last 60 Seconds! use @joindice now!",bc_all,0xFF7F50;
sleep2 60000;
announce "Dice Event: Portal Closed!",bc_all,0xFF7F50;
unbindatcmd "joindice";
donpcevent "DiceEvent::OnDiceStart";
 
}
 
quiz_02,55,90,3 script  Got Stuck?#dice 779,{
 
mes "[ Got Stuck? ]";
mes "Do you wish to go back?";
menu "Yes",-;
warp "prontera",156,153;
 
}
 
 
quiz_02,37,80,3 script  Box 1   111,{
 
warp "quiz_02",37,70;
 
}
 
quiz_02,49,80,3 script  Box 2   111,{
 
warp "quiz_02",49,70;
 
}
 
quiz_02,61,80,3 script  Box 3   111,{
 
warp "quiz_02",61,70;
 
}
 
 
quiz_02,73,80,3 script  Box 4   111,{
 
warp "quiz_02",73,70;
 
}
 
quiz_02,37,64,3 script  Go Back#1       858,{
 
warp "quiz_02",55,76;
 
}
 
 
quiz_02,49,64,3 script  Go Back#2       858,{
 
warp "quiz_02",55,76;
 
}
 
quiz_02,61,64,3 script  Go Back#3       858,{
 
warp "quiz_02",55,76;
 
}
 
quiz_02,73,64,3 script  Go Back#4       858,{
 
warp "quiz_02",55,76;
 
}
 
 
-       script  DiceEvent       -1,{
 
OnDiceStart:
mapannounce "quiz_02","We are about to start the Dice event.",bc_blue;
sleep2 1000;
mapannounce "quiz_02","Rules are simple:",bc_blue;
sleep2 1000;
mapannounce "quiz_02","I'm going to pick a number, 1 to 4. Then I'll do a countdown from 5 to 0",bc_blue;
sleep2 1000;
mapannounce "quiz_02","All you have to do is go to box of the number you want",bc_blue;
sleep2 1000;
mapannounce "quiz_02","Example, If I get the number 4, All players standing on number 1 to 3 loses.",bc_blue;
sleep2 1000;
mapannounce "quiz_02","We'll do it again and again until we have 1 player left on this map.",bc_blue;
sleep2 2000;
mapannounce "quiz_02","Before I forget, you must GO INSIDE THE BOX! because if you're caught standing outside the box you'll be automatically disqualified!",bc_blue;
sleep2 2000;
mapannounce "quiz_02","That's it.. Now let's get it on!",bc_blue;
sleep2 3000;
goto L_start;
 
 
L_start:
enablenpc "Go Back#1";
enablenpc "Go Back#2";
enablenpc "Go Back#3";
enablenpc "Go Back#4";
if(getmapusers("quiz_02") == 1) goto L_winner;
enablenpc "Box 1";
enablenpc "Box 2";
enablenpc "Box 3";
enablenpc "Box 4";
if(getmapusers("quiz_02") == 0) goto L_noone;
if(getmapusers("quiz_02") > 1) {
set $@number,rand(1,4);
sleep2 1000;
mapannounce "quiz_02","I'm ready to pick a number. Please go to the box of the number you want! Go go go!",bc_blue;
sleep2 20000;
mapannounce "quiz_02","5",bc_blue;
sleep2 1500;
mapannounce "quiz_02","4",bc_blue;
sleep2 1500;
mapannounce "quiz_02","3",bc_blue;
sleep2 1500;
mapannounce "quiz_02","2",bc_blue;
sleep2 1500;
mapannounce "quiz_02","1",bc_blue;
disablenpc "Box 1";
disablenpc "Box 2";
disablenpc "Box 3";
disablenpc "Box 4";
disablenpc "Go Back#1";
disablenpc "Go Back#2";
disablenpc "Go Back#3";
disablenpc "Go Back#4";
areawarp "quiz_02",32,95,79,76,"prontera",156,153;
areawarp "quiz_02",80,85,80,76,"prontera",156,153;
areawarp "quiz_02",31,85,31,76,"prontera",156,153;
if(getmapusers("quiz_02") == 0) goto L_noone;
sleep2 1000;
mapannounce "quiz_02","Time's Up. Winning number is "+$@number+"!",bc_blue;
        if($@number == 4) goto L_Lose1;
        if($@number == 3) goto L_Lose2;
        if($@number == 2) goto L_Lose3;
        if($@number == 1) goto L_Lose4;
 
}
 
L_Lose1:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"prontera",156,153;
areawarp "quiz_02",45,73,53,52,"prontera",156,153;
areawarp "quiz_02",57,73,65,52,"prontera",156,153;
goto L_start;
 
L_Lose2:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"prontera",156,153;
areawarp "quiz_02",45,73,53,52,"prontera",156,153;
areawarp "quiz_02",69,73,77,52,"prontera",156,153;
goto L_start;
 
L_Lose3:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"prontera",156,153;
areawarp "quiz_02",57,73,65,52,"prontera",156,153;
areawarp "quiz_02",69,73,77,52,"prontera",156,153;
goto L_start;
 
L_Lose4:
//Edit to where will you warp players that lost
areawarp "quiz_02",45,73,53,52,"prontera",156,153;
areawarp "quiz_02",57,73,65,52,"prontera",156,153;
areawarp "quiz_02",69,73,77,52,"prontera",156,153;
goto L_start;
 
L_noone:
announce "No one won the Dice Event!",bc_all,0xFF7F50;
disablenpc "Claim Your Prize!#dice";
disablenpc "Dice Event Warper#dice";
 
L_winner:
enablenpc "Claim Your Prize!#dice";
disablenpc "Dice Event Warper#dice";
 
}
 
quiz_02,55,84,3 script  Claim Your Prize!#dice  904,{
 
getitem 7227,1; //Edit on what prize would you give to the winner
set #RPSPOINTS,#RPSPOINTS+5;
dispbottom "You received 5 RPS Point.";
dispbottom "Your total RPS Points is: "+#RPSPOINTS+" RPS Points";
announce strcharinfo(0)+" won the Dice Event!",bc_all,0xFF7F50;
disablenpc "Claim Your Prize!#dice";
disablenpc "Dice Event Warper#dice";
warp "prontera",156,153;
 
}
 
quiz_02 mapflag nowarp
quiz_02 mapflag nowarpto
quiz_02 mapflag noteleport
quiz_02 mapflag nomemo
quiz_02 mapflag nosave  SavePoint
quiz_02 mapflag noicewall
quiz_02 mapflag noloot
Viewed 815 times, submitted by Pneuma.