Jump to content

merot19

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by merot19

  1. how can i change this into Class example paladin,assassin,stalker and more..

    prontera,150,150,5    script    iunhouihuo    456,{
        if( freebie_item ) end;
    
        switch( BaseClass ) {
            case Job_Novice:    setarray [email protected],501,2,503,4;    break;
            case Job_Swordman:    setarray [email protected],501,2,503,4;    break;
            case Job_Mage:        setarray [email protected],501,2,503,4;    break;
            case Job_Archer:    setarray [email protected],501,2,503,4;    break;
            case Job_Acolyte:    setarray [email protected],501,2,503,4;    break;
            case Job_Merchant:    setarray [email protected],501,2,503,4;    break;
            case Job_Thief:        setarray [email protected],501,2,503,4;    break;
            case Job_SuperNovice:    setarray [email protected],501,2,503,4;    break;
            case Job_Gunslinger:    setarray [email protected],501,2,503,4;    break;
            case Job_Ninja:        setarray [email protected],501,2,503,4;    break;
            default:
        }
        [email protected] = getarraysize( [email protected] );
        for ( [email protected] = 0; [email protected] < [email protected]; [email protected] += 2 )
            getitem [email protected][[email protected]], [email protected][[email protected]+1];
        freebie_item = 1;
        end;
    }
    
  2. prontera,151,88,5 script Lottery Scratch 715,{
    setarray @scratch_price,  20080,//Phreeoni price: currently blue gemstones
     674,//Dark Snake Lord price: currently star crumps
     7227,//Baphomet price: currently Elunium
     7227,//Golden Thiefbug price: currently Gold
     5377,//Dark Lord price: currently Emperium Anvil
     2737; // Thanatos price: currenly a random item for godlike equipment
    setarray @scratch_amount, 1,
      1,
      1,
      1,
      1,
      1 ;
    setarray @scratch_sign$,  "K",
     "A",
     " Z ",
     "U",
     "R",
     "O";
    setarray @scratch_chance, 4050, // Phr: 40,5%
     3250, // DSL: 32,5%
     2550, // Bap: 25,5%
      750, // GTB: 7,5%
      250, // DaL: 2,5%
      150; // Tha: 1,5%
    
    for(set [email protected], 0; [email protected]<getarraysize(@scratch_chance);set [email protected], [email protected]+1)
    {
    for( set [email protected], [email protected]+1; [email protected]<getarraysize(@scratch_chance); set [email protected], [email protected]+1)
    {
    set @scratch_chance[[email protected]], @scratch_chance[[email protected]][email protected]_chance[[email protected]];
    }
    }
    
    cleararray @slot$, "", 9;
    set [email protected], 20080; 
    
    
    function Slotbelegung;
    function checkRow;
    //function restore;
    
    set @menu, 0;
    
    while(@menu!=1)
    {
    mes "[Merot]";
    mes "Hi do want to buy Lottery Scratch Tickets?";
    mes "Only 1 Pod/Round and you can win prizes";
    
    if(select("Give me one ^^:What does i need to win:No I hold my money") > 1)
    {
    if(@menu&1)
    {
    mes "Ok have a lucky day";
    close;
    }
    else
    {
    mes "You need 3 same Objects in a slot";
    mes "[K] Soul Potion";
    mes "[A] Mithril Coin";
    mes "[Z] ET";
    mes "[U] TCG";
    mes "###### Criminal Pipe";
    mes "[O] Ultimate Accessory";
    next;
    }
    }
    }
    setarray [email protected], 0, 1, 2;
    setarray [email protected], 0, 3, 6;
    setarray [email protected], 0, 4, 8;
    setarray [email protected], 1, 4, 7;
    setarray [email protected], 6, 4, 2;
    setarray [email protected], 2, 5, 8;
    setarray [email protected], 3, 4, 5;
    setarray [email protected], 6, 7, 8;
    
    set [email protected], 8;
    
    if( 1 > countitem( [email protected] ) )
    {
    
    mes "I'm sorry you dont have enough Pods.";
    close;
    }
    
    //set zeny, zeny [email protected];
    delitem [email protected],1;
    //"You now have ^FF0000"+countitem( [email protected] )+" "+getitemname( [email protected] )+"^000000 left.";
    mes "Here my friend ^^";
    for(set [email protected], 0;; set [email protected], [email protected]+1)
    {
    mes "["[email protected]$[0]+"] ["[email protected]$[1]+"] ["[email protected]$[2]+"]";
    mes "["[email protected]$[3]+"] ["[email protected]$[4]+"] ["[email protected]$[5]+"]";
    mes "["[email protected]$[6]+"] ["[email protected]$[7]+"] ["[email protected]$[8]+"]";
    next;
    if([email protected] > 8) break;
    Slotbelegung([email protected]);
    }
    
    for(set [email protected], 0; [email protected]<[email protected];set [email protected],[email protected]+1)
    {
    set [email protected], [email protected]+checkRow(getd("[email protected]"+([email protected]+1)+"[0]"),getd("[email protected]"+([email protected]+1)+"[1]"),getd("[email protected]"+([email protected]+1)+"[2]"));
    }
    if ([email protected])
    {
    next;
    mes "You got your prizes now go.";
    close;
    }
    mes "Sorry, but you didn't win anything.";
    close;
    
    function Slotbelegung {
    set [email protected], rand(1,10000);
    for(set [email protected], 0; [email protected]<getarraysize(@scratch_sign$)-1;set [email protected], [email protected]+1)
    {
    if(@scratch_chance[(getarraysize(@scratch_sign$)[email protected]] >= [email protected]) break;
    }
    set @slot$[getarg(0)], @scratch_sign$[(getarraysize(@scratch_sign$)[email protected]];
    }
    
    function checkRow {
    function Win;
    if(@slot$[getarg(0)] == @slot$[getarg(1)] && @slot$[getarg(0)] == @slot$[getarg(2)])
    {
    Win(@slot$[getarg(0)]);
    return 1;
    }
    return 0;
    }
    
    function Win {
    for(set [email protected],0; [email protected]<getarraysize(@scratch_sign$); set [email protected],[email protected]+1)
    {
    if(getarg(0) == @scratch_sign$[[email protected]] )
    {
    mes "You got 1 "[email protected]_sign$[[email protected]]+"!";
    getitem @scratch_price[[email protected]],@scratch_amount[[email protected]];
    }
    }
    
    }
    
    
    
    
    OnInit:
    disablenpc "Lottery Scratch";
    end;
    
    
    }
    

    Need help Please

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.