Jump to content

hadiesyafiq

Members
  • Content Count

    160
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by hadiesyafiq


  1. hai all i already update for some new costumes..but i already at on iteminfo.lua/accessoryid.lub/accname.lub

    but when i wear nothing happen..

    my client is 2015-10-29

    here the picture...

    can someone show me how to do it?

    error.png


  2. 1 hour ago, Dastgir said:

    - script VIP script FAKE_NPC,{ OnPCLoginEvent: if (#AccountVIP >= gettimetick(2)) { ModExp = 100; ModDrop = 100; } else if (getgroupid() == 2) { ModExp = 150; ModDrop = 150; } end; } function script F_TicketAddVip_3 { #AccountVIP = gettimetick(2) + (60*60*24*3); ModExp = 150; ModDrop = 150; mes "[ ^990099Geovani^000000 ]"; mes "You received 3 days of VIP Account!"; close; }

    
    -   script  VIP script  FAKE_NPC,{
    
    OnPCLoginEvent:
        if (#AccountVIP >= gettimetick(2)) {
            ModExp = 100;
            ModDrop = 100;
        } else if (getgroupid() == 2)  {
            ModExp = 150;
            ModDrop = 150;
        }
        end;
    
    
    }
    
    function    script    F_TicketAddVip_3    {
        #AccountVIP = gettimetick(2) + (60*60*24*3);
        ModExp = 150;
        ModDrop = 150;
        mes "[ ^990099Geovani^000000 ]";
        mes "You received 3 days of VIP Account!";
        close;
    }

    Try this

    thank you sir @Dastgir but without SQL how can i use vip status script?

    here the script 

    Quote

    -    script    VIP_STATUS    FAKE_NPC,{
    OnPCLoginEvent:
        if (getgroupid() >= 1) {
            query_sql "SELECT DATE(DATE_ADD(`insert_on`, INTERVAL `days` DAY)), DATEDIFF(DATE_ADD(`insert_on`, INTERVAL `days` DAY), NOW()) FROM `viptable` WHERE `vipacc_id` = '"+getcharid(3)+"'", .@expire_date$, .@days_left;
                dispbottom "You're currently a VIP Member.";
                dispbottom "============================================";
                dispbottom "Account Status : EXP & DROP Increase 50%.";
                dispbottom "VIP rates are: Base EXP - 150% | Base DROP - 150%.";
                dispbottom "Expire Date : " + .@expire_date$;
                dispbottom "Days left : "+ .@days_left;
                dispbottom "============================================";
            end;
        }
    }

    thanks again sir


  3. hi all this is vip script to make account be group id 2 for 3 days...but after 3 days the accounte stil vip status..how to change?

    After 5 days it wil be -2days

     

    Quote

    function    script    F_TicketAddVip_3    {
        query_sql "DELETE FROM `viptable` WHERE `vipacc_id` = '"+getcharid(3)+"' AND DATEDIFF(DATE_ADD(`insert_on`, INTERVAL `days` DAY), NOW()) < 0"; // remove expired VIP status before reapplying
        query_sql "SELECT `days` FROM `viptable` WHERE `vipacc_id` = '"+getcharid(3)+"'", .@checkDays;
        if (.@checkDays > 0) {
            set .@setDays, (.@checkDays + 3);
            query_sql "UPDATE `viptable` SET `days`='"+.@setDays+"' WHERE `vipacc_id`='"+getcharid(3)+"'";
            query_sql "SELECT `group_id` FROM `login` WHERE `account_id`='"+getcharid(3)+"'", .@userLevel;
            if (.@userLevel < 1) 
                query_sql "UPDATE `login` SET `group_id`='1' WHERE `account_id`='"+getcharid(3)+"'";
        }
        else {
            query_sql "UPDATE `login` SET `group_id`='1' WHERE `account_id`='"+getcharid(3)+"'";
            query_sql "SELECT `userid` FROM `login` WHERE `account_id`='"+getcharid(3)+"'", .@userID$;
            query_sql "SELECT `email` FROM `login` WHERE `account_id`='"+getcharid(3)+"'", .@userEmail$;
            query_sql "INSERT INTO `viptable` (`vipacc_id`,`vip_id`,`days`,`email`) VALUES ('"+getcharid(3)+"','"+.@userID$+"','3','"+.@accEmail$+"')";
        }
        mes "[ ^990099Geovani^000000 ]";
        mes "You received 3 days of VIP Account!";
        mes "Please relog to see the changes in your account.";
        close;
    return;
    }
     

     

    viptime.png


  4. 22 minutes ago, Cretino said:

    This can't be done without source modification.

    But you can add a buff for VIPs to improve the drop rate: 'SC_CASH_RECEIVEITEM'.

    Search in your 'item_db' for more information.

     

     

    Can you teach me how to put double drop rate script on your script that you give me?


  5. On 1/14/2020 at 2:41 PM, Cretino said:

    What you want to do is not possible with these script commands.

      Reveal hidden contents

    *setbattleflag("<battle flag>", <value>) *getbattleflag("<battle flag>") Sets or gets the value of the given battle flag. Battle flags are the flags found in the conf/map/battle/*.conf files and is also used in Lupus' variable rates script. Examples: // Will set the base experience rate to 20x (2000%) setbattleflag("base_exp_rate", 2000); // Will return the value of the base experience rate (when used after the // above example, it would print 2000). mes(getbattleflag("base_exp_rate"));

    
    
    *setbattleflag("<battle flag>", <value>)
    *getbattleflag("<battle flag>")
    
    Sets or gets the value of the given battle flag.
    Battle flags are the flags found in the conf/map/battle/*.conf files and is
    also used in Lupus' variable rates script.
    
    Examples:
    
    // Will set the base experience rate to 20x (2000%)
    	setbattleflag("base_exp_rate", 2000);
    
    // Will return the value of the base experience rate (when used after the
    // above example, it would print 2000).
    	mes(getbattleflag("base_exp_rate"));

     

    Using 'setbattleflag' you'll change the server rate for all when reload.

     

    If you only want give 2x EXP to 'VIP' players, you can do this:

     

    Hi sir your script is to get base/job exp right?can add double drop rate too sir


  6. On 12/1/2019 at 10:07 AM, Kenpachi said:
    • Open script file in editor.
    • Find the line which contains query_sql "DELETE FROM `viptable` ......
    • Set cursor to the end of that line (click behind the semicolon)
    • Press Backspace.
    • Save file.

    You'll notice that the semicolon wasn't removed, because you deleted the hidden character (whitespace) behind it.


    ~Kenpachi

    Thank you very much sir @Kenpachi all working nice


  7. 3 hours ago, Cretino said:

    What you want to do is not possible with these script commands.

      Reveal hidden contents

    *setbattleflag("<battle flag>", <value>) *getbattleflag("<battle flag>") Sets or gets the value of the given battle flag. Battle flags are the flags found in the conf/map/battle/*.conf files and is also used in Lupus' variable rates script. Examples: // Will set the base experience rate to 20x (2000%) setbattleflag("base_exp_rate", 2000); // Will return the value of the base experience rate (when used after the // above example, it would print 2000). mes(getbattleflag("base_exp_rate"));

    
    
    *setbattleflag("<battle flag>", <value>)
    *getbattleflag("<battle flag>")
    
    Sets or gets the value of the given battle flag.
    Battle flags are the flags found in the conf/map/battle/*.conf files and is
    also used in Lupus' variable rates script.
    
    Examples:
    
    // Will set the base experience rate to 20x (2000%)
    	setbattleflag("base_exp_rate", 2000);
    
    // Will return the value of the base experience rate (when used after the
    // above example, it would print 2000).
    	mes(getbattleflag("base_exp_rate"));

     

    Using 'setbattleflag' you'll change the server rate for all when reload.

     

    If you only want give 2x EXP to 'VIP' players, you can do this:

     

    Thanks sir...i will try and let you know

×
×
  • Create New...

Important Information

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