Jump to content

Kudo

Members
  • Posts

    94
  • Joined

  • Last visited

Posts posted by Kudo

  1. On 8/16/2020 at 11:50 PM, Kudo said:

    xsssdddsss.JPG

    i already solved the 1st problem which is 10% and up will announcing instead of 10% and below.. i just need to place to 1% in the 1st array and so on... 
    but still i cannot manage to solved my 2nd problem which is when you get 1 of the random items that chances are 10% and below.. it will announce, the problem is. it will repeat 10 times even though i only got 1 items from the 10 random  

    bump~

  2. Spoiler
    function    script    CustomBox    {
    
            set [email protected],65;
            setarray [email protected][0],90,983,5; //Black Dyestuff
            setarray [email protected][0],91,981,5; //Violet Dyestuff
            setarray [email protected][0],93,13517,1; //YGGBOX
            setarray [email protected][0],94,12534,1; //YGGSEED
            setarray [email protected][0],80,3016,1; //HOKAGEHAT
            setarray [email protected][0],81,3696,1; //LUFFYHAT
            setarray [email protected][0],85,740,10; //PUPPET
            setarray [email protected][0],89,720,10; //AQUAMARINE
            setarray [email protected][0],87,14176,1; //ENRICHEDELU
            setarray [email protected][0],88,14177,1; //ENRICHEDORI
            setarray [email protected][0],60,50005,1; //PREMIUMCREDIT
            setarray [email protected][0],70,3676,1; //HOLLOWMASK
            setarray [email protected][0],75,3678,1; //ROBOEARS
            setarray [email protected][0],50,19130,1; //MAGICEYES
            setarray [email protected][0],51,5184,1; //CAPTAINSHAT
                setarray [email protected][0],52,8327,1; //EVOLVED POOPOO
            setarray [email protected][0],53,3782,1; //DARKLORDHELM
            setarray [email protected][0],54,18534,1; //FANCYPHANTOM
            setarray [email protected][0],55,5325,1; //ROBOEYE
            setarray [email protected][0],51,19176,1; //FALLENANGELBLESSING
            setarray [email protected][0],56,5517,1; //HAWKEYES
            setarray [email protected][0],57,3661,1; //DEVILING WINGS
            setarray [email protected][0],58,3000,1; //ANGELINGWINGS
            setarray [email protected][0],59,3001,1; //ARTICWINGS
            setarray [email protected][0],60,3003,1; //DEMONWINGS
            setarray [email protected][0],61,3005,1; //GARGOYLEWINGS
            setarray [email protected][0],62,3007,1; //PHOENIXWINGS
            setarray [email protected][0],63,3008,1; //TORNWINGS
            setarray [email protected][0],64,3002,1; //BLACKBUTTERFLYWING
            setarray [email protected][0],65,3009,1; //WHITEBUTTERFLYWING
            setarray [email protected][0],65,2726,1; //ICARUSWINGS
            setarray [email protected][0],40,7828,1; //BRAVERYBADGE
            setarray [email protected][0],41,45078,1; //NEKOHOOD
            setarray [email protected][0],42,20073,1; //MVPHAT
            setarray [email protected][0],43,rand(45066,45072),1; //BUNDANNA
            setarray [email protected][0],40,rand(45099,45101),1; //RUNES
            setarray [email protected][0],40,45084,1; //BLACKRUNES
            setarray [email protected][0],40,rand(45026,45028),1; //BLACKAURA-PINK
            setarray [email protected][0],40,rand(45062,45065),1; //BLACKAURA-WHITE
            setarray [email protected][0],20,rand(3515,3526),1; //DRAGONWEAPON
            setarray [email protected][0],20,28605,1; //DRAGONBOOK
            setarray [email protected][0],20,3536,1; //DRAGONSHURIKEN
            setarray [email protected][0],15,rand(45211,45214),1; //FUSHIONVALKYIRE
            setarray [email protected][0],10,rand(8032,8033),1; //DIABLOSPIRIT
            setarray [email protected][0],10,20727,1; //BRILLIANTGOLDEN
            setarray [email protected][0],9,82517,1; //INVOKERCAPE
            setarray [email protected][0],2,4549,1; //UPDMAYA
            setarray [email protected][0],3,4359,1; //SINXCARD
            setarray [email protected][0],3,4357,1; //LKCARD
            setarray [email protected][0],3,4361,1; //WSCARD
            setarray [email protected][0],3,4363,1; //HIGHPRIESTCARD
            setarray [email protected][0],3,4365,1; //HIGHWIZARDCARD
            setarray [email protected][0],5,4128,1; //GTB
            setarray [email protected][0],7,3742,1; //GOLDENSWORDAURA
            setarray [email protected][0],4,40016,1; //DRAGONRING
            setarray [email protected][0],5,rand(40006,40012),1; //DRAGONSET
            setarray [email protected][0],1,rand(4480,4504),1; //SEALED
            setarray [email protected][0],1,rand(4535,4544),1; //SEALED
                setarray [email protected][0],100,7227,rand(1,5); // TCG
            setarray [email protected][0],100,7227,rand(5,10); // TCG
            setarray [email protected][0],95,6767,rand(1,10); //MVPCOIN
            setarray [email protected][0],96,3100,rand(1,10); //CREDIT
            setarray [email protected][0],97,7608,rand(1,5); //LOTTITICKET
            setarray [email protected][0],96,6420,rand(1,10); //HOURLYCOIN
            setarray [email protected][0],2,rand(40033,40034),1; //VIPBOX
       for([email protected] = 0;[email protected] < 10;[email protected]++){
        do{
            set [email protected], rand(1,[email protected]);
        }while( rand(1,100) > getd("[email protected]"[email protected]+"[0]") );
        
        for(set [email protected],1; [email protected]<getarraysize(getd("[email protected]"[email protected])); set [email protected],[email protected]+2)
        {
            getitem getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
            if ([email protected][0])
            {
                set [email protected],[email protected];
                setarray [email protected][0], getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
                break;
            }
        }
        if( [email protected] && [email protected] <= 10 ) // 10% equal or below will announce
        announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname([email protected][0])+" x "[email protected][1]+" From Supply Box",0;
        specialeffect2 248;
     }
    end;
    }

    eto po ang aking script ok naman sya working sya pero meron lang konting problema kasi pag nag open ako ng box ok sampu ang nakukuha.. base dito sa script ang mag aannounce lang ay ang item na 10% pababa tama po ba? pero bakit ganun parang baliktad yung sakin imbis na yung 10% pababa eh ang inaanounce nya ay yung 10% pataas....

    eto 2nd question ko refer po sa screenshot para sa details

    kasi pag naka kuha sya ng example dyestuff na kasama dun sa 10 random items eh sampung beses din nya inaanounce kahit na isa lang naman ang nakuha ko,.. pero still sampung announce ang ginagawa nya

    paano ko po kaya eto ma reresolve dun sa mga naka ecounter or alam ayusin to baka pwedeng maka hingi ng konting tulong
    salamat po in advance

    xsssdddsss.JPG.202863934b11000718773bf3aa5766b1.jpg

  3. 23 minutes ago, Kreustoo said:

    In my answer there's already the loop, you just had to copy/paste to replace, but whatever:

    function    script    CustomBox    {
    
            set [email protected],65;
            setarray [email protected][0],90,983,5; //Black Dyestuff
            setarray [email protected][0],91,981,5; //Violet Dyestuff
            setarray [email protected][0],93,13517,1; //YGGBOX
            setarray [email protected][0],94,12534,1; //YGGSEED
            setarray [email protected][0],80,3016,1; //HOKAGEHAT
            setarray [email protected][0],81,3696,1; //LUFFYHAT
            setarray [email protected][0],85,740,10; //PUPPET
            setarray [email protected][0],89,720,10; //AQUAMARINE
            setarray [email protected][0],87,14176,1; //ENRICHEDELU
            setarray [email protected][0],88,14177,1; //ENRICHEDORI
            setarray [email protected][0],60,50005,1; //PREMIUMCREDIT
            setarray [email protected][0],70,3676,1; //HOLLOWMASK
            setarray [email protected][0],75,3678,1; //ROBOEARS
            setarray [email protected][0],50,19130,1; //MAGICEYES
            setarray [email protected][0],51,5184,1; //CAPTAINSHAT
                setarray [email protected][0],52,8327,1; //EVOLVED POOPOO
            setarray [email protected][0],53,3782,1; //DARKLORDHELM
            setarray [email protected][0],54,18534,1; //FANCYPHANTOM
            setarray [email protected][0],55,5325,1; //ROBOEYE
            setarray [email protected][0],51,19176,1; //FALLENANGELBLESSING
            setarray [email protected][0],56,5517,1; //HAWKEYES
            setarray [email protected][0],57,3661,1; //DEVILING WINGS
            setarray [email protected][0],58,3000,1; //ANGELINGWINGS
            setarray [email protected][0],59,3001,1; //ARTICWINGS
            setarray [email protected][0],60,3003,1; //DEMONWINGS
            setarray [email protected][0],61,3005,1; //GARGOYLEWINGS
            setarray [email protected][0],62,3007,1; //PHOENIXWINGS
            setarray [email protected][0],63,3008,1; //TORNWINGS
            setarray [email protected][0],64,3002,1; //BLACKBUTTERFLYWING
            setarray [email protected][0],65,3009,1; //WHITEBUTTERFLYWING
            setarray [email protected][0],65,2726,1; //ICARUSWINGS
            setarray [email protected][0],40,7828,1; //BRAVERYBADGE
            setarray [email protected][0],41,45078,1; //NEKOHOOD
            setarray [email protected][0],42,20073,1; //MVPHAT
            setarray [email protected][0],43,rand(45066,45072),1; //BUNDANNA
            setarray [email protected][0],40,rand(45099,45101),1; //RUNES
            setarray [email protected][0],40,45084,1; //BLACKRUNES
            setarray [email protected][0],40,rand(45026,45028),1; //BLACKAURA-PINK
            setarray [email protected][0],40,rand(45062,45065),1; //BLACKAURA-WHITE
            setarray [email protected][0],20,rand(3515,3526),1; //DRAGONWEAPON
            setarray [email protected][0],20,28605,1; //DRAGONBOOK
            setarray [email protected][0],20,3536,1; //DRAGONSHURIKEN
            setarray [email protected][0],15,rand(45211,45214),1; //FUSHIONVALKYIRE
            setarray [email protected][0],10,rand(8032,8033),1; //DIABLOSPIRIT
            setarray [email protected][0],10,20727,1; //BRILLIANTGOLDEN
            setarray [email protected][0],9,82517,1; //INVOKERCAPE
            setarray [email protected][0],2,4549,1; //UPDMAYA
            setarray [email protected][0],3,4359,1; //SINXCARD
            setarray [email protected][0],3,4357,1; //LKCARD
            setarray [email protected][0],3,4361,1; //WSCARD
            setarray [email protected][0],3,4363,1; //HIGHPRIESTCARD
            setarray [email protected][0],3,4365,1; //HIGHWIZARDCARD
            setarray [email protected][0],5,4128,1; //GTB
            setarray [email protected][0],7,3742,1; //GOLDENSWORDAURA
            setarray [email protected][0],4,40016,1; //DRAGONRING
            setarray [email protected][0],5,rand(40006,40012),1; //DRAGONSET
            setarray [email protected][0],1,rand(4480,4504),1; //SEALED
            setarray [email protected][0],1,rand(4535,4544),1; //SEALED
                setarray [email protected][0],100,7227,rand(1,5); // TCG
            setarray [email protected][0],100,7227,rand(5,10); // TCG
            setarray [email protected][0],95,6767,rand(1,10); //MVPCOIN
            setarray [email protected][0],96,3100,rand(1,10); //CREDIT
            setarray [email protected][0],97,7608,rand(1,5); //LOTTITICKET
            setarray [email protected][0],96,6420,rand(1,10); //HOURLYCOIN
            setarray [email protected][0],2,rand(40033,40034),1; //VIPBOX
       for([email protected] = 0;[email protected] < 10;[email protected]++){
        do{
            set [email protected], rand(1,[email protected]);
        }while( rand(1,100) > getd("[email protected]"[email protected]+"[0]") );
        
        for(set [email protected],1; [email protected]<getarraysize(getd("[email protected]"[email protected])); set [email protected],[email protected]+2)
        {
            getitem getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
            if ([email protected][0])
            {
                set [email protected],[email protected];
                setarray [email protected][0], getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
                break;
            }
        }
        if( [email protected] && [email protected] <= 10 ) // 10% equal or below will announce
        announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname([email protected][0])+" x "[email protected][1]+" From Supply Box",0;
        specialeffect2 248;
     }
    end;
    }

     

    it works dude.. but theres another problem.. the script announce the 10% and up instead of 10% and below...
    and one thing is. if the announce is triggered it also announce in 10 times even if the i got the item 1 out of 10.. 

     

     

    xsssdddsss.JPG

  4. 4 hours ago, Kreustoo said:

    Hello,

    You can put a for around the logical that goes from 0 to 10

    for([email protected] = 0;[email protected] < 10;[email protected]++){
        do{
            set [email protected], rand(1,[email protected]);
        }while( rand(1,100) > getd("[email protected]"[email protected]+"[0]") );
        
        for(set [email protected],1; [email protected]<getarraysize(getd("[email protected]"[email protected])); set [email protected],[email protected]+2)
        {
            getitem getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
            if ([email protected][0])
            {
                set [email protected],[email protected];
                setarray [email protected][0], getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
                break;
            }
        }
        if( [email protected] && [email protected] <= 10 ) // 10% equal or below will announce
        announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname([email protected][0])+" x "[email protected][1]+" From Supply Box",0;
        specialeffect2 248;
     }

     

    sir.. the question is how can i do that? and where should i put the for loop can you do it for me sir?

  5. function    script    CustomBox    {
    
            set [email protected],65;
            setarray [email protected][0],90,983,5; //Black Dyestuff
            setarray [email protected][0],91,981,5; //Violet Dyestuff
            setarray [email protected][0],93,13517,1; //YGGBOX
            setarray [email protected][0],94,12534,1; //YGGSEED
            setarray [email protected][0],80,3016,1; //HOKAGEHAT
            setarray [email protected][0],81,3696,1; //LUFFYHAT
            setarray [email protected][0],85,740,10; //PUPPET
            setarray [email protected][0],89,720,10; //AQUAMARINE
            setarray [email protected][0],87,14176,1; //ENRICHEDELU
            setarray [email protected][0],88,14177,1; //ENRICHEDORI
            setarray [email protected][0],60,50005,1; //PREMIUMCREDIT
            setarray [email protected][0],70,3676,1; //HOLLOWMASK
            setarray [email protected][0],75,3678,1; //ROBOEARS
            setarray [email protected][0],50,19130,1; //MAGICEYES
            setarray [email protected][0],51,5184,1; //CAPTAINSHAT
                setarray [email protected][0],52,8327,1; //EVOLVED POOPOO
            setarray [email protected][0],53,3782,1; //DARKLORDHELM
            setarray [email protected][0],54,18534,1; //FANCYPHANTOM
            setarray [email protected][0],55,5325,1; //ROBOEYE
            setarray [email protected][0],51,19176,1; //FALLENANGELBLESSING
            setarray [email protected][0],56,5517,1; //HAWKEYES
            setarray [email protected][0],57,3661,1; //DEVILING WINGS
            setarray [email protected][0],58,3000,1; //ANGELINGWINGS
            setarray [email protected][0],59,3001,1; //ARTICWINGS
            setarray [email protected][0],60,3003,1; //DEMONWINGS
            setarray [email protected][0],61,3005,1; //GARGOYLEWINGS
            setarray [email protected][0],62,3007,1; //PHOENIXWINGS
            setarray [email protected][0],63,3008,1; //TORNWINGS
            setarray [email protected][0],64,3002,1; //BLACKBUTTERFLYWING
            setarray [email protected][0],65,3009,1; //WHITEBUTTERFLYWING
            setarray [email protected][0],65,2726,1; //ICARUSWINGS
            setarray [email protected][0],40,7828,1; //BRAVERYBADGE
            setarray [email protected][0],41,45078,1; //NEKOHOOD
            setarray [email protected][0],42,20073,1; //MVPHAT
            setarray [email protected][0],43,rand(45066,45072),1; //BUNDANNA
            setarray [email protected][0],40,rand(45099,45101),1; //RUNES
            setarray [email protected][0],40,45084,1; //BLACKRUNES
            setarray [email protected][0],40,rand(45026,45028),1; //BLACKAURA-PINK
            setarray [email protected][0],40,rand(45062,45065),1; //BLACKAURA-WHITE
            setarray [email protected][0],20,rand(3515,3526),1; //DRAGONWEAPON
            setarray [email protected][0],20,28605,1; //DRAGONBOOK
            setarray [email protected][0],20,3536,1; //DRAGONSHURIKEN
            setarray [email protected][0],15,rand(45211,45214),1; //FUSHIONVALKYIRE
            setarray [email protected][0],10,rand(8032,8033),1; //DIABLOSPIRIT
            setarray [email protected][0],10,20727,1; //BRILLIANTGOLDEN
            setarray [email protected][0],9,82517,1; //INVOKERCAPE
            setarray [email protected][0],2,4549,1; //UPDMAYA
            setarray [email protected][0],3,4359,1; //SINXCARD
            setarray [email protected][0],3,4357,1; //LKCARD
            setarray [email protected][0],3,4361,1; //WSCARD
            setarray [email protected][0],3,4363,1; //HIGHPRIESTCARD
            setarray [email protected][0],3,4365,1; //HIGHWIZARDCARD
            setarray [email protected][0],5,4128,1; //GTB
            setarray [email protected][0],7,3742,1; //GOLDENSWORDAURA
            setarray [email protected][0],4,40016,1; //DRAGONRING
            setarray [email protected][0],5,rand(40006,40012),1; //DRAGONSET
            setarray [email protected][0],1,rand(4480,4504),1; //SEALED
            setarray [email protected][0],1,rand(4535,4544),1; //SEALED
                setarray [email protected][0],100,7227,rand(1,5); // TCG
            setarray [email protected][0],100,7227,rand(5,10); // TCG
            setarray [email protected][0],95,6767,rand(1,10); //MVPCOIN
            setarray [email protected][0],96,3100,rand(1,10); //CREDIT
            setarray [email protected][0],97,7608,rand(1,5); //LOTTITICKET
            setarray [email protected][0],96,6420,rand(1,10); //HOURLYCOIN
            setarray [email protected][0],2,rand(40033,40034),1; //VIPBOX
        do{
            set [email protected], rand(1,[email protected]);
        }while( rand(1,100) > getd("[email protected]"+[email protected]+"[0]") );
        
        for(set [email protected],1; [email protected]<getarraysize(getd("[email protected]"[email protected])); set [email protected],[email protected]+2)
        {
            getitem getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
            if ([email protected][0])
            {
                set [email protected],[email protected];
                setarray [email protected][0], getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
                break;
            }
        }
        if( [email protected] && [email protected] <= 10 ) // 10% equal or below will announce
        announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname([email protected][0])+" x "[email protected][1]+" From Supply Box",0;
        specialeffect2 248;
    end;
    }

    this is my script on random box can someone edit this script to get 10 random items instead of 1 only

  6. 9 hours ago, Poring King said:
            set [email protected],12;    
            setarray [email protected][0],1,1230,1; //Ice Pick
            setarray [email protected][0],1,5135,1; //Cyclops
            setarray [email protected][0],1,4365,1; // HW Card
            setarray [email protected][0],1,4451,1; // Crothen Card
            setarray [email protected][0],1,18885,1; // Jejecap
            setarray [email protected][0],1,20036,1; // Sword Master Crown
            setarray [email protected][0],1,4357,1; // LK Card
            setarray [email protected][0],1,4403,1; // kiel card
            setarray [email protected][0],20,12210,20; // BGUM
            setarray [email protected][0],30,7227,20; // TCG
            setarray [email protected][0],100,7227,2; // TCG
            setarray [email protected][0],100,7227,2; // TCG
        do{
            set [email protected], rand(1,[email protected]);
        }while( rand(1,100) > getd("[email protected]"[email protected]+"[0]") );
        
        for(set [email protected],1; [email protected]<getarraysize(getd("[email protected]"[email protected])); set [email protected],[email protected]+2)
        {
            getitem getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
            if ([email protected][0])
            {
                set [email protected],[email protected];
                setarray [email protected][0], getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]");
                break;
            }
        }
        if( [email protected] && [email protected] <= 10 ) // 10% equal or below will announce
        announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname([email protected][0])+" x "[email protected][1]+" from Lotti Girl",0;
        specialeffect2 248;
        close;

     

    this script is from lotti npc right? is it alright to use this in random box?? what is the difference between this 2 script...

  7. 3 minutes ago, Kreustoo said:

    Hello,

    rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983)

    You need F_rand to do that (a script function). rand is just for maximum 2 numbers:

    *rand(<number>{,<number>});
    
    This function returns a number ...
    (if you specify one) ... randomly positioned between 0 and the number you specify -1.
    (if you specify two) ... randomly positioned between the two numbers you specify.
    
    rand(10)  would result in 0,1,2,3,4,5,6,7,8 or 9
    rand(0,9) would result in 0,1,2,3,4,5,6,7,8 or 9
    rand(2,5) would result in 2,3,4 or 5

    The rest seems good to me

    so you mean its ok if i put this one?
      setarray [email protected][0],10,512,1; //Gallon Hat of Flame
        setarray [email protected][0],10,512,1; //Crow_Tengu_Mask
        setarray [email protected][0],10,512,1; //Canopy 
        setarray [email protected][0],10,7179,10; //PODS
        setarray [email protected][0],10,969,150; //(Gold) 
    all %  = 10% there is no conflict on that?

  8. here is the script 
    set [email protected],9;
        //<%>,<ItemID>,<Amount>
        setarray [email protected][0],1,512,1; //Gallon Hat of Flame
        setarray [email protected][0],2,512,1; //Crow_Tengu_Mask
        setarray [email protected][0],3,512,1; //Canopy 
        setarray [email protected][0],5,7179,10; //PODS
        setarray [email protected][0],30,969,150; //(Gold) 
        setarray [email protected][0],80,12016,10; //Speed_Up_Potion
        setarray [email protected][0],90,12214,5; //12214
        setarray [email protected][0],95,12412,5; //HE_Bubble_Gum
        setarray [email protected][0],70,12103,5; //Bubble Gum
        setarray [email protected][0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
        set [email protected], rand(1,[email protected]);
        if (rand(1,100) > getd("[email protected]"[email protected]+"[0]"))

    i want to know if it is ok to put same % of items on array or it will have a conflict?
    and for the default array did i make the right codes?

  9. pwede bang sa chance % ng items ay mag kaparehas for example eto po  

    setarray [email protected][0],1,512,1; //Gallon Hat of Flame << same 1 %

    setarray [email protected][0],1,512,1; //Crow_Tengu_Mask  << same 1 %

    pag parehas ba 1% mag kakaron ba ng conflict?? or ok lang na may kaparehas ng chances


    Sample Script.. 
    set [email protected],9;
        //<%>,<ItemID>,<Amount>
        setarray [email protected][0],1,512,1; //Gallon Hat of Flame
        setarray [email protected][0],2,512,1; //Crow_Tengu_Mask
        setarray [email protected][0],3,512,1; //Canopy 
        setarray [email protected][0],5,7179,10; //PODS
        setarray [email protected][0],30,969,150; //(Gold) 
        setarray [email protected][0],80,12016,10; //Speed_Up_Potion
        setarray [email protected][0],90,12214,5; //12214
        setarray [email protected][0],95,12412,5; //HE_Bubble_Gum
        setarray [email protected][0],70,12103,5; //Bubble Gum
        setarray [email protected][0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
        set [email protected], rand(1,[email protected]);
        if (rand(1,100) > getd("[email protected]"[email protected]+"[0]"))

  10. On 8/9/2020 at 2:07 PM, Patskie said:

    Change

    DATE_ADD(NOW(), INTERVAL 7 DAY)

    To

    COALESCE(DATE_ADD(`expiration_date`, INTERVAL 7 DAY), DATE_ADD(NOW(), INTERVAL 7 DAY))

     

    why do i need to  add the date_add(now(), interval 7 day)) on the last part?
    DATE_ADD(NOW(), INTERVAL 7 DAY)) is for new record right ? correct me if im wrong
    i just need to update the the expiration_date to 7 more days when i click some items...

    image.thumb.png.13b7ec885a0beddead662df907bc856e.pngi can 

    i found some error when trying the script sir... please help me 

    sorry for the post but i manage to fixed it.. i forgot to add the other codes... thanks anyway @Patskie

  11. i have some question guys!.. 

    This is my query in some script
    query_sql "UPDATE go_premium SET `expiration_date` = DATE_ADD(NOW(), INTERVAL 7 DAY) WHERE `account_id` = "+ getcharid(3) +"";

    it works fine for me but my question is how can i change the "DATE_ADD(NOW(), INTERVAL 7 DAY" to  the value of the expiration date table + 7 days can someone teach me some tricks?

  12. i have some question guys!.. 

    This is my query in some script
    query_sql "UPDATE go_premium SET `expiration_date` = DATE_ADD(NOW(), INTERVAL 7 DAY) WHERE `account_id` = "+ getcharid(3) +"";

    it works fine for me but my question is how can i change the "DATE_ADD(NOW(), INTERVAL 7 DAY" to  the value of the expiration date table + 7 days can someone teach me some tricks?

  13. 16 minutes ago, Poring King said:

    Create a custom function and call it using { callfunc "Test"},{ Bonus script2},{ bonus script 3};

    thx for the info 1 more thing is i already make this script.. but i need another information.. like i use the old purple box(example box only) 
    how to make this 1.. if i have already existing information in database my box will not open or you cant use the box and will tell you that you already have record on our database

×
×
  • Create New...

Important Information

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