viewing paste Unknown #14779 | 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 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
/*//------------------------------------------------------------//
//----------------Edited by Lenya---------------------------------//
//------------------Ascension of Ragnarok---------------------------//
//--------------------Disguise Event NPC -----------------------------//
//-------------------------------------------------------------------//*/
 
prontera,151,176,4  script  Disguise CP     794,{
 
if (getgmlevel()<98)
{
    mes "^3399FF[Disguise CP]^000000"
    mes "Sorry, du hast keine Berechtigung.";
    close;
}
 
mes "^3399FF[Disguise CP]^000000"
mes "Hallo Boss,";
mes "Was möchtest du heute machen?";
switch(select("Event starten:Event stoppen:Anzahl der Runden kalkulieren[^E50000"+$guessrounds+"^000000]:Preis kalkulieren^E50000 ["+getitemname($guessprize)+"]^000000 ^E50000 ["+ $guessprizecount + "]^000000:Nichts"))
{
    case 1: 
    {
        next;
        mes "^3399FF[Disguise CP]^000000";
        mes "Bestätigen sie durch die Eingabe von START."; 
        input .@confirm$;          
        if (.@confirm$ == "START") 
        {
            donpcevent "guessAnnouncer::OnGMStart"; 
            close;
        }
        mes "Bestätigung fehlgeschlagen";
        close;
        break;
    }
    case 2:
    {
        next;
        mes "^3399FF[Disguise CP]^000000";
        mes "Bestätigen sie durch die Eingabe von STOP."; 
        input .@confirm$;          
        if (.@confirm$ == "STOP") 
        {
            donpcevent "guessAnnouncer::OnGMStop";
            close;
        }
        mes "Bestätigung fehlgeschlagen";
        close;
        break;
        
    }
    
    case 3:
    {
        next; mes "^3399FF[Disguise CP]^000000";
        mes "Bitte gib eine neue Nummer ein."; 
        input $guessrounds; 
        if ($guessrounds > 30) set $guessrounds, 30;
        else if ($guessrounds < 1) set $guessrounds, 1;
        close;
    }
    
    case 4:
    {
        next; mes "^3399FF[Disguise CP]^000000";
        mes "Bitte gib eine Preis ID ein."; 
        input .@guessprizeid; 
        if (getitemname(.@guessprizeid) == "null" || getitemname(.@guessprizeid) == "") {next; mes "^3399FF[Disguise CP]^000000"; mes "Error"; mes "This item does not exist in the database..."; close;}
        set $guessprize, .@guessprizeid;
        next; mes "^3399FF[Disguise CP]^000000";
        mes "Bitte gib die Anzahl der Preise an."; 
        input .@guessprizeamount;
        if (!.@guessprizeamount) set .@guessprizeamount,1 ;
        set $guessprizecount,.@guessprizeamount; 
        next; mes "^3399FF[Disguise CP]^000000";
        mes "Der Preis wurde zu ^E50000 "+ getitemname($guessprize)+ "^000000 und die Menge ^E50000 " +$guessprizecount+"^000000";
        close;
    }
    
                    
    case 5:
    {
        next; mes "^3399FF[Disguise CP]^000000";
        mes "Schönen Tag noch."; 
        close;
    }
 
}
 
 
}
 
 
 
 
 
 
 
 
geffen,119,73,4 script  Disguise NPC        794,{
 
 
announce "Weil Zealot einer Kleiner helper is", 0;
if (!$guessbegin)
{
    mes "^3399FF[Disguise NPC]^000000";
    mes "Das Disguise Event wird gleich beginnen.";
    close;
}
end;
 
OnStart:
    set $guessbegin, 1;
    set .DisguiseWon, 0;
    if (!$DisguiseRound)
    {
        npctalk "Okay, lasst uns anfangen!";
        sleep 4000;
        npctalk "Doch bevor es losgeht erkläre ich euch die Regeln.";
        sleep 4000;
        npctalk "Ich verwandle mich per Zufall in ein Monster.";
        sleep 4000;
        npctalk "Ihr müsst den Namen des Monsters erraten.";
        sleep 4000;
        npctalk "Dazu tippt ihr den Namen in den öffentlichen Chat ein.";
        sleep 4000;
        npctalk "Groß-und Kleinschreibung wird nicht beachtet.";
        sleep 4000;
        npctalk "Nun macht euch bereit";
        sleep 4000;
    }
    else if ($DisguiseRound < $guessrounds-1)
    {
        npctalk "Bereit machen für die nächste Runde.";
        setnpctimer 0;
        sleep 8000;
    }
    else
    {   
        npctalk "Letzte Runde!";
        sleep 4000;
        npctalk "Macht euch bereit!";
        sleep 4000;
    }
 
    do
    {
        set .@guessrepeat, 0;
        set $monster, 1000 + rand(1,950);
        for (set .@k, 0; .@k <getarraysize($Forbidden); set .@k, .@k+1)
        {
            if ($monster == $Forbidden[.@k]) 
            {
                set .@guessrepeat, 1;
                break;
            }
        }
    }
    while (.@guessrepeat);
    setnpctimer 0;
    initnpctimer;
    setnpcdisplay "Disguise NPC",$monster;
    set $MonsterName$, strmobinfo(1,$monster);
    defpattern 1, "([^:]+):.*\\s"+$MonsterName$+"(.*)", "winround";
    activatepset 1;
    npctalk "Wie lautet mein Name?";
    sleep 3000;
    npcwalkto 102,103;
    sleep 2000;
    npcwalkto 102,99;
    end;
    
    OnTimer5000:
        if (!.DisguiseWon)
        {
            sleep 3000;
            npcwalkto 102,103;
            sleep 2000;
            npcwalkto 102,99;
 
            if (!$guessactive)  {disablenpc "Disguise NPC"; end;}
        }
        end;
 
 
    OnTimer15000:
        if (!.DisguiseWon) 
        {
            sleep 3000;
            npcwalkto 102,103;
            sleep 2000;
            npcwalkto 102,99;
        }
        end;
 
    OnTimer25000:
        if (!.DisguiseWon) 
        {
            npctalk "Noch 10 Sekunden.";
            sleep 3000;
            npcwalkto 102,103;
            sleep 2000;
            npcwalkto 102,99;
        }
        end;
 
    OnTimer35000:
        if (!.DisguiseWon)
        { 
            npctalk "Runde vorbei.";
            if (!$guessactive)  {disablenpc "Disguise NPC"; end;}
            set $DisguiseRound, $DisguiseRound + 1;
            deletepset 1;
            sleep 5000;
            npctalk $MonsterName$ + " wäre die richtige Antwort.";
            sleep 6000;
            if ($DisguiseRound >= $guessrounds)
            {
                set $DisguiseRound, 0;
                sleep 5000;
                npctalk "Das Disguise Event ist vorbei.";
                sleep 6500;
                npctalk "Bis zum nächsten mal ~";
                sleep 2000;
                emotion 12;
                sleep 1000;
                set $guessactive, 0;
                mapwarp "poring_c01.gat","prt_vilg.gat",99,73;
                setnpcdisplay "Disguise NPC",794;
                disablenpc "Disguise NPC";
                end;
            }
            goto OnStart;
        }
        end;
 
    winround:
        setnpctimer 0;
        deletepset 1;
        set .DisguiseWon, 1;
        set $DisguiseRound, $DisguiseRound + 1;
        npctalk strcharinfo(0) + " hat meinen Namen erraten!";
        getitem $guessprize, $guessprizecount;
        sleep2 3000;
        npctalk $MonsterName$ + " ist die richtige Antwort.";
        if (!$guessactive)  {disablenpc "Disguise NPC"; end;}
        if ($DisguiseRound >= $guessrounds)
            {
                set $DisguiseRound, 0;
                set $guessactive, 0;
                sleep 5000;
                npctalk "Das Disguise Event ist vorbei.";
                sleep 6500;
                npctalk "Bis zum nächsten mal ~";
                sleep 2000;
                emotion 12;
                sleep 1000;
                mapwarp "poring_c01.gat","prt_vilg.gat",99,73;
                setnpcdisplay "Disguise NPC",794;
                disablenpc "Disguise NPC";
                end;
            }
        sleep 5000;
        goto OnStart;
        end;
 
    
 
}
 
//-----------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------
 
-   script  guessAnnouncer  -1,{
 
 
OnGMStart:
    if ($guessactive) end;
    set $guessactive, 1;
    announce "Das Disguise Event wird gleich beginnen!",0;
    set $guessbegin, 0;
    sleep 5000;
    if (!$guessactive) end;
    announce "Um teilzunehmen musst du in den Warp Portal in Prontera Village eintreten",0;
    enablenpc "Disguise NPC";
    sleep 5000;
    announce "Rundenanzahl: "+$guessrounds,0;
    sleep 4000;
    announce "Preis: "+ getitemname($guessprize) + " x " + $guessprizecount,0;
    sleep 5000;
    if (!$guessactive) {disablenpc "Disguise NPC"; end;}
    announce "Das Portal schließt sich in einer Minute.",0;  
    sleep 60000;
    if (!$guessactive) {disablenpc "Disguise NPC"; end;}
    announce "Das Portal wurde geschlossen.",0;
    set $DisguiseRound, 0;
    sleep 5000;
    if (!$guessactive) {disablenpc "Disguise NPC"; end;}
    if(getmapusers("poring_c01") == 0) 
    {
        disablenpc "Disguise NPC";
        set $guessactive, 0;
        end;
    }
 
    donpcevent "Disguise NPC::OnStart";
    end;
 
OnGMStop:
        if ($guessactive)
        {
            set $guessactive, 0;
            announce "Das Disguise Event wurde angehalten.",0;
            set $DisguiseRound, 0;
            mapwarp "poring_c01.gat","prt_vilg.gat",99,73;
            setnpcdisplay "Disguise NPC",794;
            disablenpc "Disguise NPC";
        }
        end;
 
 
OnClock0100:
OnClock0300:
OnClock0500:
OnClock0700:
OnClock0900:
OnClock1100:
OnClock1300:
OnClock1500:
OnClock1700:
OnClock1833:
OnClock2000:
OnClock2205:
    if ($guessactive) end;
    set $guessactive, 1;
    announce "Das Disguise Event wird gleich beginnen!",0;
    set $guessbegin, 0;
    sleep 5000;
    if (!$guessactive) end;
    announce "Um teilzunehmen musst du in den Warp Portal in Prontera Village eintreten",0;
    enablenpc "Disguise NPC";
    sleep 5000;
    announce "Preis: "+ getitemname($guessprize) + " x " + $guessprizecount,0;
    sleep 5000;
    if (!$guessactive)  {disablenpc "Disguise NPC"; end;}
    announce "Das Portal schließt sich in einer Minute.",0;
    sleep 60000;
    if (!$guessactive)  {disablenpc "Disguise NPC"; end;}
    announce "Das Portal wurde geschlossen.",0;
    sleep 5000;
    if (!$guessactive)  {disablenpc "Disguise NPC"; end;}
    announce "Das nächste Event findet in 2 Stunden statt.",0;
    set $DisguiseRound, 0;
    if(getmapusers("poring_c01") == 0) 
    {
        disablenpc "Disguise NPC";
        set $guessactive, 0;
        end;
    }
 
    donpcevent "Disguise NPC::OnStart";
    end;
 
OnInit:
    disablenpc "Disguise NPC";
 
    set $guessactive, 0;
    setarray $Forbidden[0],1003,1006,1017,1021,1022,1027,1043,1136,1137,1168,1171,1172,1173,1181,1210,1217,1218,1223,1284,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1407,1411,1414,1496,1501,1900,1948,1892,1949,1950,1983,1984,2010,1003,1006,1017,1021,1022,1027,1043,1075,1136,1137,1168,1171,1172,1173,1181,1210,1222,1223,1224,1225,1226,1227,1228,1233,1284,1407,1411,1414,1496,1501,1900,1996,2002,2003,2004,2005,2006,2007,2011,2012,2025,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2075,2076,2077,2078,2079,2080,2081,2084,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,1900,1901,1902,1903,1237,1239,1145,1175,1209,1841,1842,1843,1844,3014,3001,3002,2114,2115,2117,2118,2119,2120,6049,6050,6051,6052,2200,2205,2207;
 
}
 
//------------------Map Flags--------------------------------------------------------
poring_c01  mapflag nowarpto
poring_c01  mapflag noskill
poring_c01  mapflag nosave
poring_c01  mapflag nomemo
poring_c01  mapflag noteleport
poring_c01  mapflag nowarp
//-----------------------------------------------------------------------------------
Viewed 814 times, submitted by Normynator.