Jump to content

Dev Yhams

Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by Dev Yhams

  1. HOW DISABLE COMMAND ON PVP MAP  THIS COMMANDS @QUEST @MALL @DONATES @FREEBIES ! THANK YOU FOR HELPING ! RA 2015

    ser ! this is working on pvp map but i use on prontera no command or not working

    On 11/22/2021 at 1:53 AM, EIysium said:
    -	script	NOWARPCOMMAND	-1,{
    
    OnInit:
    
    bindatcmd "quest", strnpcinfo(0)+"::OnQuestCommand";
    
    function OnQuestCommand {
    	.@map$ = strcharinfo(3);
    	if ( getmapflag( .@map$,mf_pvp ) ) || getmapflag( .@map$,mf_gvg ) || getmapflag( .@map$,mf_nowarp ) || getmapflag( .@map$,mf_nowarpto ) || getmapflag( .@map$,mf_noteleport ) {
    		dispbottom .@atcmd_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
    		end;
    	}else{
    		warp "your quest map",x,x;
    		end;
    		}
    	}	
    }
    
    -	script	NOWARPCOMMAND1	-1,{
    
    OnInit:
    
    bindatcmd "mall", strnpcinfo(0)+"::OnMallCommand";
    
    function OnMallCommand {
    	.@map$ = strcharinfo(3);
    	if ( getmapflag( .@map$,mf_pvp ) ) || getmapflag( .@map$,mf_gvg ) || getmapflag( .@map$,mf_nowarp ) || getmapflag( .@map$,mf_nowarpto ) || getmapflag( .@map$,mf_noteleport ) {
    		dispbottom .@atcmd_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
    		end;
    	}else{
    		warp "your mall map",x,x;
    		end;
    		}
    	}	
    }
    
    -	script	NOWARPCOMMAND2	-1,{
    
    OnInit:
    
    bindatcmd "donate", strnpcinfo(0)+"::OnDonateCommand";
    
    function OnDonateCommand {
    	.@map$ = strcharinfo(3);
    	if ( getmapflag( .@map$,mf_pvp ) ) || getmapflag( .@map$,mf_gvg ) || getmapflag( .@map$,mf_nowarp ) || getmapflag( .@map$,mf_nowarpto ) || getmapflag( .@map$,mf_noteleport ) {
    		dispbottom .@atcmd_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
    		end;
    	}else{
    		warp "your donate map",x,x;
    		end;
    		}
    	}	
    }

     

    i need to avail only prontera map

    ser ! this is working on pvp map but i use on prontera no command or not working

  2. HUNTING MISSION PLEASE HELP ME CREATE THIS SCRIPT . WITH BY LVL WITH PER LVL OR LVL ROUND COOLDOWN 24HRS

    lvl 50-59
    x100 Zombie Prisoner Mob-ID#1197
    x100 Injustice Mob-ID#1257
    x100 High Orc Mob-ID#1213
    x100 Alarm Mob-ID#1193

    lvl 60-69
    x100 Evil Druid Mob-ID#1117
    x100 Minorous Mob-ID#1149
    x100 pasana Mob-ID#1464
    x100  Wraith Mob-ID#1192

    lvl 70-79
    x100 Raydric Mob-ID#1163
    x100 Nightmare Terror Mob-ID#1379
    x100 Phenomena Mob-ID#1216
    x100  Khalitzburg Mob-ID#1132

    lvl 80-89
    x100 Anubis Mob-ID#1098
    x100 Banshee Mob-ID#1867
    x100 Ragged zombie Mob-ID#1865
    x100 Red Ferus Mob-ID#1714

    lvl 90-99
    x100 Blue Acidus
    x100 Ice Titan
    x100 Skogul
    x100 Echio

    REWARD:

    X30 esb Item ID# 14003 (Elite_Siege_Supply_Box)
    Item ID# 12902 (Bubble_Gum_Box)
    Hunting Mission Coin

  3. //==============================================================================//
    //= Script Release : Job Changer + Max Leveler  [ Version 1.5 ]
    //==================================By==========================================//
    //= ManiacSociety
    //==============================================================================//
    //= Idea Came From : ManiacSociety
    //= Helper : Emistry & Kenpachi
    //==============================================================================//
    //= D E S C R I P T I O N S
    //==============================================================================//
    // -- 1. Character can choose a Job which he like to be.
    // -- 2. This NPC only have 1 Time Usage.
    //         If it is set to Account Based then that account can use 1 times.
    //         If it is set to Character Based then all new character can use 1 times.
    // -- 3. Complete skills / Skill Points will be given if it is set to be.
    // -- 4. Base Level and Job Level will be given upon Job Change.
    //==============================================================================//
    //= V E R S I O N S
    //==============================================================================//
    // -- [ 1.5 ] : Added Configuration for Account Based / Character Based Settings
    // -- [ 1.4 ] : Added Baby Classes + 3rd Job Classes.                            
    // -- [ 1.3 ] : Added Configuration Option , 4 Announce Option , Informations.            
    // -- [ 1.2 ] : Simplified Scripts + Shorten the Scripts.                            
    // -- [ 1.1 ] : Added New Job Change Option.                                    
    // -- [ 1.0 ] : Simple Login Auto Max Level + Job Changer.                        
    //==============================================================================//
    //= R U L E S
    //==============================================================================//
    // -- 1. Do not use for exchanging purpose.                                        
    // -- 2. Do not claim it as yours.                                                
    // -- 3. Do not change or remove the credits.
    // -- 4. Do not sell the script in order to get paid.
    // -- 5. Do not re-sharing upon modified without permission.
    //==============================================================================//
    
    
    new_1-1,57,124,1    script    Instant Job Master    651,{
    if (BaseClass == Job_Novice) goto Main_Menu;
            mes "[Starter NPC]";
            mes "You can only use my services";
            mes "once per account, sorry.";
            close; 
        close;
    
    // -- Configuration Option
    set .npcname$,"[ ^0000FF Class Helper ^000000 ]";
    set .InfoMenu,0;                    // Classes Informations Option [ 0 - Disable / 1 - Enable ]
    set .1stClassMenu,0;                // First Job Class Option [ 0 - Disable / 1 - Enable ]
    set .2ndClassMenu,0;                // Second Job Class Option [ 0 - Disable / 1 - Enable ]
    set .High1stClassMenu,0;            // High 1st Class Option [ 0 - Disable / 1 - Enable ]
    set .Trans2ndClassMenu,1;            // Transcendent Class Option [ 0 - Disable / 1 - Enable ]
    set .Trans3rdClassMenu,0;            // Third Job Class Option [ 0 - Disable / 1 - Enable ]
    set .ExpandedClassMenu,1;            // Expanded Class Option [ 0 - Disable / 1 - Enable ]
    set .BabyClassMenu,0;                // Baby Job Class Option [ 0 - Disable / 1 - Enable ]
    set .Baby3rdClassMenu,0;            // Baby Third Job Class Option [ 0 - Disable / 1 - Enable ]
    set .allskills,1;                    // Complete Skills Option [ 0 - Disable / 1 - Enable ]
    
    
    Main_Menu:
        mes "[Instant Job Master]";
        mes "Nice to meet you "+ strcharinfo ( 0 ) +", my name is Instant Job Master";
        mes "Welcome to ^E066FFScarsRO!^000000";
        next;
        switch(select(( .InfoMenu == 0 )?"":"Classes Information",
                    ( .1stClassMenu == 0 )?"":"First Job Classes",
                    ( .2ndClassMenu == 0 )?"":"Second Job Classes",    
                    ( .High1stClassMenu == 0 )?"":"High First Job Classes",    
                    ( .Trans2ndClassMenu == 1 )?"":"Transcendent Job Classes",    
                    ( .Trans3rdClassMenu == 0 )?"":"Third Job Classes",        
                    ( .ExpandedClassMenu == 0 )?"":"Expanded Job Classes",    
                    ( .BabyClassMenu == 0 )?"":"Baby Normal Job Classes",        
                    ( .Baby3rdClassMenu == 0 )?"":"^Baby Third Job Classes",        
                    "^FF0000Sorry, i admire nobody....^000000")) {
    
                        Case 1: goto Classes_info;
                        Case 2:    goto FirstJob_Classes;
                        Case 3:    goto SecondJob_Classes;
                        Case 4:    goto HighFirstJob_Classes;
                        Case 5:    goto TransSecondJob_Classes;
                        Case 6:    goto TransThirdJob_Classes;
                        Case 7:    goto ExpandedJob_Classes;
                        Case 8:    goto BabyJob_Classes;
                        Case 9:    goto BabyThirdJob_Classes;
                        Case 10:    close;
                }
        
    FirstJob_Classes:
        mes .npcname$;
        mes "So, i give you a chance now. Which Classes will you choose to join ? Tell me your desired Classes.";
        next;
        switch(select("Swordman",
                    "Magician",
                    "Archer",
                    "Acolyte",
                    "Merchant",
                    "Thief",
                    "Back")) {
    
    // --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;    
    
                Case 1:    callsub Job_Changing,1,99,50,60,"All";
                Case 2:    callsub Job_Changing,2,99,50,60,"All";
                Case 3:    callsub Job_Changing,3,99,50,60,"All";
                Case 4:    callsub Job_Changing,4,99,50,60,"All";
                Case 5:    callsub Job_Changing,5,99,50,60,"All";
                Case 6:    callsub Job_Changing,6,99,50,60,"All";
                Case 7:    goto Main_Menu;
            }
    
    HighFirstJob_Classes:
        mes .npcname$;
        mes "So, i give you a chance now. Which Classes will you choose to join ? Tell me your desired Classes.";
        next;
        switch(select("High Swordman",
                    "High Magician",
                    "High Archer",
                    "High Acolyte",
                    "High Merchant",
                    "High Thief",
                    "Back")) {
    
    // --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;    
    
                Case 1:    callsub Job_Changing,4002,99,50,60,"All";
                Case 2:    callsub Job_Changing,4003,99,50,60,"All";
                Case 3:    callsub Job_Changing,4004,99,50,60,"All";
                Case 4:    callsub Job_Changing,4005,99,50,60,"All";
                Case 5:    callsub Job_Changing,4006,99,50,60,"All";
                Case 6:    callsub Job_Changing,4007,99,50,60,"All";
                Case 7:    goto Main_Menu;
            }
            
    SecondJob_Classes:
        mes .npcname$;
        mes "So, i give you a chance now. Which Classes will you choose to join ? Tell me your desired Classes.";
        next;
        switch(select("Knight",
                    "Priest",
                    "Wizard",
                    "Blacksmith",
                    "Hunter",
                    "Assassin",
                    "Crusader",
                    "Monk",
                    "Sage",
                    "Rogue",
                    "Alchemist",
                    ( Sex == 0 )?"":"Dancer",        
                    ( Sex == 1 )?"":"Bard",    
                    "Back")) {
    
    // --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;    
                
                Case 1:    callsub Job_Changing,7,99,50,110,"All";
                Case 2:    callsub Job_Changing,8,99,50,110,"All";
                Case 3:    callsub Job_Changing,9,99,50,110,"All";
                Case 4:    callsub Job_Changing,10,99,50,110,"All";
                Case 5:    callsub Job_Changing,11,99,50,110,"All";
                Case 6:    callsub Job_Changing,12,99,50,110,"All";
                Case 7:    callsub Job_Changing,14,99,50,110,"All";
                Case 8:    callsub Job_Changing,15,99,50,110,"All";
                Case 9:    callsub Job_Changing,16,99,50,110,"All";
                Case 10:    callsub Job_Changing,17,99,50,110,"All";
                Case 11:    callsub Job_Changing,18,99,50,110,"All";
                Case 12:    callsub Job_Changing,20,99,50,110,"All";
                Case 13:    callsub Job_Changing,19,99,50,110,"All";
                Case 14:    goto Main_Menu;
            }
    
    TransSecondJob_Classes:
        mes .npcname$;
        mes "So, i give you a chance now. Which Classes will you choose to join ? Tell me your desired Classes.";
        next;
        switch(select("Lord Knight",
                    "High Priest",
                    "High Wizard",
                    "Whitesmith",
                    "Sniper",
                    "Assassin Cross",
                    "Paladin",
                    "Champion",
                    "Professor",
                    "Stalker",
                    "Creator",
                    ( Sex == 0 )?"":"Gypsy",        
                    ( Sex == 1 )?"":"Clowm",    
                    "Back")) {
    
    // --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;    
                
                Case 1:    callsub Job_Changing,4008,99,70,127,"All";
                Case 2:    callsub Job_Changing,4009,99,70,127,"All";
                Case 3:    callsub Job_Changing,4010,99,70,127,"All";
                Case 4:    callsub Job_Changing,4011,99,70,127,"All";
                Case 5:    callsub Job_Changing,4012,99,70,127,"All";
                Case 6:    callsub Job_Changing,4013,99,70,127,"All";
                Case 7:    callsub Job_Changing,4015,99,70,127,"All";
                Case 8:    callsub Job_Changing,4016,99,70,127,"All";
                Case 9:    callsub Job_Changing,4017,99,70,127,"All";
                Case 10:    callsub Job_Changing,4018,99,70,127,"All";
                Case 11:    callsub Job_Changing,4019,99,70,127,"All";
                Case 12:    callsub Job_Changing,4021,99,70,127,"All";
                Case 13:    callsub Job_Changing,4020,99,70,127,"All";
                Case 14:    goto Main_Menu;
            }
    
                    
    ExpandedJob_Classes:
        mes .npcname$;
        mes "So, i give you a chance now. Which Classes will you choose to join ? Tell me your desired Classes.";
        next;
        switch(select("Super Novice",
                    "Back")) {
    
    // --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;    
    
                Case 1:    callsub Job_Changing,23,255,120,110,"All";
                Case 2:    callsub Job_Changing,24,255,120,600,"All";
                Case 3:    callsub Job_Changing,25,255,120,60,"All";
                Case 4:    callsub Job_Changing,4046,255,120,60,"All";
                Case 5:    callsub Job_Changing,4047,255,120,110,"All";
                Case 6:    callsub Job_Changing,4049,255,120,110,"All";
                Case 7:    goto Main_Menu;
            }
    
    
    Job_Changing:
            mes .npcname$;
            mes "You are now a part of ^FF0000"+jobname(getarg(0))+"^000000.";
            if (compare(getarg(4),"All")){    announce "[ "+strcharinfo(0)+" ] has changed to [ "+jobname(getarg(0))+" ].",bc_all,0x76EE00;    }
            if (compare(getarg(4),"Map")){    announce "[ "+strcharinfo(0)+" ] has changed to [ "+jobname(getarg(0))+" ].",bc_map,0x76EE00;    }
            if (compare(getarg(4),"Area")){    announce "[ "+strcharinfo(0)+" ] has changed to [ "+jobname(getarg(0))+" ].",bc_area,0x76EE00;    }
            if (compare(getarg(4),"Self")){    announce "[ "+strcharinfo(0)+" ] has changed to [ "+jobname(getarg(0))+" ].",bc_self,0x76EE00;    }
            jobchange getarg(0);
            set BaseLevel,getarg(1);
            set JobLevel,getarg(2);
            ResetSkill;
            ResetStatus;
            set SkillPoint,getarg(3);
            if ( .allskills == 1 ){
            atcommand "@allskills";
            set SkillPoint,0;
            }
            percentheal 100,100;
            close;
        
    Classes_info:
        mes .npcname$;
        mes "=====[^76EE00 Swordman Classes ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "Enthusiastic skills in sword fighting is a definite attraction to all teenagers. Easy to control and master character enables most players to be a great player.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Archer Classes ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "Long ranged attack ability and special techniques of archers in defeating enemy often lure players to try this.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Mage Classes ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "Fascinating element techniques involvement of nature in its abilities is truly amazing with their series of undefeatable magics.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Thief Classes ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "Poisoning and dodging abilities will defeat most of the enemy. Maximum defensive and offensive ability caused this character to fearsome one.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Acolyte Classes ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "A supportive character, most of the skills like helping will benefit to teammates who lead to teammates act like a terminator.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Merchant Classes ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "Involving communication with other players that emphasizes on battles, intelligence in business dealing. His versatility made him must not be look down.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Super Novice ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "A job who are Advanced after Novice Class. It look alike like a Novice but it is not. Beside that, it can learn most of the skills for all 1st Job Class.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Gunslinger ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "The only Job class in RO who are using Gun as weapon. If are you a Gun Lover , there is no doubt you will choose this Job.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Ninja ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "A mysterious Job Class , who alway processing Ancient Spells , look alike with Mage but not mage , good in PK , can evade very well during PK.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Taekwon ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "Just like the name has mentioned. The only class in RO who are not using any Weapon. Attack enemy using barehand and foots. ";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Star Gladiator ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "A class who can use the power of the Sun / Star / Moon. By processing the power of Universe to gain a stronger Power.";
        mes " ^FF0000________________________________^000000";
        next;
        mes .npcname$;
        mes "=====[^76EE00 Soul Linker ^000000]=====";
        mes " ^FF0000________________________________^000000";
        mes "^4EEE94Description :^000000";
        mes "Class that work like a Shaman, who able to recalling the soul of the dead from the underworld to Boost other class ability.";
        mes " ^FF0000________________________________^000000";
        next;
        goto Main_Menu;
        
    OnInit:
    waitingroom " Instant Job Master",0;
    end;
    
    }

     

  4. -    script    sader_Hourly_Rewards    -1,{
    
    OnHourlyRewards:
            if(#Hourly_Ban){
                message strcharinfo(0),"[Hourly Rewards]: You did ban this char from the Hourly Rewards , Relogin to change that .";
                addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
                end;
            }
            if(.s_idle){
                if(checkidle() > .s_idle_time){
                    message strcharinfo(0),"[Hourly Rewards]: No Hourly Rewards for IDLE Players!.";
                    addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
                    end;
                }
            }
            if(.s_vip){
                if(!vip_status(VIP_STATUS_ACTIVE)){
                    message strcharinfo(0),"[Hourly Rewards]: if you are a VIP you will get Hourly Rewards!.";
                    addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
                    end;
                }
            }
            if(BaseLevel < .s_hourly_level){
                message strcharinfo(0),"[Hourly Rewards]: if you are level "+.s_hourly_level+" and more you will get Hourly Rewards!.";
                addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
                end;
            }
            if(.s_vinding){
                if(checkvending() & .s_vinding){
                    message strcharinfo(0),"[Hourly Rewards]: No Hourly Rewards for Venders , Relogin to change that .";
                    if(.s_GePard_ip){
                    query_logsql("delete from `sader_variables_log` where `variable` = '#Hourly_Rewads_Check' AND `account_id`= '"+getcharid(3)+"'");
                    }
                    #Hourly_Rewads_Check = 0;
                    #Hourly_Ban = 1;
                    addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
                    end;
                }
            }
            #Hourly_Rewads_Check += 1;
            if(.s_GePard_ip == 1){
                query_sql("SELECT `last_unique_id` FROM `login` WHERE `account_id` = '"+getcharid(3)+"'", .@s_last_unique_id$);
                query_logsql("SELECT value FROM `sader_variables_log` WHERE unique_id = '"+.@s_last_unique_id$+"' AND `variable` = '#Hourly_Rewads_Check'", .@s_GePard);
                if(.@s_GePard >= #Hourly_Rewads_Check){
                    message strcharinfo(0),"[Hourly Rewards]: You already got the Hourly Rewards from this PC";
                    #Hourly_Rewads_Check -= 1;
                    addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
                    end;
                }
                if(.@s_GePard == 0){
                    query_logsql("INSERT INTO `sader_variables_log` (`unique_id`,`ip`,`variable`,`index`,`value`, `account_id`, `char_id`, `char_name`) VALUES ('"+.@s_last_unique_id$+"', '"+getcharip()+"', '#Hourly_Rewads_Check', '0', '"+#Hourly_Rewads_Check+"', '"+getcharid(3)+"', '"+getcharid(0)+"', '"+strcharinfo(0)+"')");
                }
                query_logsql("Update `sader_variables_log` SET `value` = '"+#Hourly_Rewads_Check+"' WHERE `unique_id`= '"+.@s_last_unique_id$+"' AND `variable` = '#Hourly_Rewads_Check'");
            }else if(.s_GePard_ip == 2){
                query_logsql("SELECT value FROM `sader_variables_log` WHERE ip = '"+getcharip()+"' AND `variable` = '#Hourly_Rewads_Check'", .@s_ip);
                if(.@s_ip >= #Hourly_Rewads_Check){
                    message strcharinfo(0),"[Hourly Rewards]: You already got the Hourly Rewards from this IP";
                    #Hourly_Rewads_Check -= 1;
                    addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
                    end;
                }
                if(.@s_ip == 0){
                    query_logsql("INSERT INTO `sader_variables_log` (`unique_id`,`ip`,`variable`,`index`,`value`, `account_id`, `char_id`, `char_name`) VALUES ('"+.@s_last_unique_id$+"', '"+getcharip()+"', '#Hourly_Rewads_Check', '0', '"+#Hourly_Rewads_Check+"', '"+getcharid(3)+"', '"+getcharid(0)+"', '"+strcharinfo(0)+"')");
                }
                query_logsql("Update `sader_variables_log` SET `value` = '"+#Hourly_Rewads_Check+"' WHERE `ip`= '"+getcharip()+"' AND `variable` = '#Hourly_Rewads_Check'");
            }
            message strcharinfo(0),"[Hourly Rewards]: you Gain your Reward.";
            callsub Hourly_Rewads;
            addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
    end;
    
    OnHourlyBan:
        if(!#Hourly_Ban){
            message strcharinfo(0),"[Hourly Rewards]: You did ban this char from the Hourly Rewards , Relogin to change that .";
            if(.s_GePard_ip){
            query_logsql("delete from `sader_variables_log` where `variable` = '#Hourly_Rewads_Check' AND `account_id`= '"+getcharid(3)+"'");
            }
            #Hourly_Rewads_Check = 0;
            #Hourly_Ban = 1;
            addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
        }
    end;
    
    OnUnHourlyBan:
        #Hourly_Ban = 0;
    end;
    OnPCLogoutEvent:
        if(.s_GePard_ip){
        query_logsql("delete from `sader_variables_log` where `variable` = '#Hourly_Rewads_Check' AND `account_id`= '"+getcharid(3)+"'");
        }
        if(#Hourly_Ban == 1){
            #Hourly_Ban = 0;
        }
        #Hourly_Rewads_Check = 0;
    end;
    
    OnPCLoginEvent:
        addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
    end;
    
    OnInit:
        .s_idle = 0; //    ban hourly rewards from idle players ? 0 no / 1 yes {if player didn't move for x time he wont get hourly reward}  , DEFAULT = 0
        .s_idle_time = 1800; //    this the time for idle in secend  , DEFAULT = 1800 (30 min)
        .s_vip = 0; //    1 = only for VIP / 0 = for everyone  , DEFAULT = 0
        .s_time = 3600000; //    1000 = 1 secend | 60000 = 1 min | 3600000 = 1 houre  , DEFAULT = 3600000 (1 hr)
        .s_hourly_level = 50; //    Minimam level to get the Houerly rewards / 0 = no minimem level  , DEFAULT 0
        .s_GePard_ip = 0; //    0 = no Gepard / 1 = Gepard / 2 = IP  , DEFAULT 0
        .s_vinding = 7; //    DEFAULT 7 / 0 = will give the reward even if vending / 1 = no normal vending / 2 = no @autotrade / 4 = no buyingstore | Example: if you want to ban normal vend and buying store you add the numbers 1+4=5
        query_logsql("CREATE TABLE IF NOT EXISTS `sader_variables_log` (`unique_id` INT( 11 ) UNSIGNED NOT NULL DEFAULT  '0',`ip` VARCHAR(100) NOT NULL,`variable` VARCHAR(32) NOT NULL, `index` INT NOT NULL, `value` INT NOT NULL,`account_id` INT NOT NULL,`char_id` INT NOT NULL,`char_name` VARCHAR(30) NOT NULL) ENGINE=MyISAM");
        bindatcmd("UnHourlyBan",strnpcinfo(3)+"::OnUnHourlyBan",99,99);
        bindatcmd("HourlyBan",strnpcinfo(3)+"::OnHourlyBan",0,99);
    end;
    
    Hourly_Rewads:
        //put the Hourly Rewards here
        //#HourlyRewards += 1;
        getitem 62000,1;
        //getitem 905,1; //    if you want to add items as reward you can add them here like that
        //getexp 10000,5000; //    if you wanna add exp as reward add them here like that
        //if(#Hourly_Rewads_Check == 5){getitem 905,1;} //    like this you can add reward for Xhr and this reward will be given for that X in this example 5 mean that the player did pass 5hr
        //if(#Hourly_Rewads_Check >= 5){getitem 905,1;} //    like this you can add reward for Xhr and this reward will be given for that X in this example 5 mean that the player did pass 5hr or more
    return;
    }
    //prontera,151,171,5    pointshop    Hourly Rewards Shop    667,#HourlyRewards,901:1,902:10,903:15,904:1,905:200
    //<ITEM_ID>:<PRICE>,<ITEM_ID>:<PRICE>,<ITEM_ID>:<PRICE>,<ITEM_ID>:<PRICE>

     

  5. how about skill example +7 composite bow = lvl 1 DS

    7 hours ago, Radian said:
    
    1705,Composite_Bow_,Composite Bow,5,2500,,600,29,,5,4,0xFFFFFFFF,7,2,34,1,4,1,11,{ if(getrefine()==8) bonus bStr,1; else if(getrefine()==9) bonus bAgi,1; else bonus bAllStats,1; },{},{}

     

    how about skill example +7 composite bow = lvl 1 DS

    please answer me again i not show your answer

    please send again your answer

    how about skill example +7 composite bow = lvl 1 DS

  6. On 4/30/2021 at 12:51 AM, Radian said:

    That's an item script.

    1705,Composite_Bow_,Composite Bow,5,2500,,600,29,,5,4,0xFFFFFFFF,7,2,34,1,4,1,11,{},{},{}

    How put on effect composite bow 

     

         if(getrefine()==8) bonus bStr,1;
          else if(getrefine()==9) bonus bAgi,1;
          else bonus bAllStats,1;

     

  7. 14169,F_Blessing_10_Scroll_Box,Blessing 10 Scroll Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if(BaseLevel >= 50)getitem 12215,10; },{},{}
     

    how to fix it if the item is not yet lvl 50 the box will not be lost or he will not be able to click the items box
    
    1 hour ago, mrfizi said:

    1st don't double post. Use edit post to update your post.

    Your question has been answer already by @Hyroshima and @Chaos92

    Change this

    
    if(BaseLevel == 50)

    to this

    
    if(BaseLevel >= 50)

     

    14169,F_Blessing_10_Scroll_Box,Blessing 10 Scroll Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if(BaseLevel >= 50)getitem 12215,10; },{},{}

    how to fix it if the item is not yet lvl 50 the box will not be lost or he will not be able to click the items box
    
    59 minutes ago, Dev Yhams said:

    14169,F_Blessing_10_Scroll_Box,Blessing 10 Scroll Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if(BaseLevel >= 50)getitem 12215,10; },{},{}

    how to fix it if the item is not yet lvl 50 the box will not be lost or he will not be able to click the items box

     

    1 hour ago, Dev Yhams said:

    itry

    the item disappears when he uses it when he is not yet at the correct lvl to open
    
    JUST RETURN THE ITEM IF THE LEVEL CANNOT BE FOUND
    
    1 hour ago, mrfizi said:

    1st don't double post. Use edit post to update your post.

    Your question has been answer already by @Hyroshima and @Chaos92

    Change this

    
    if(BaseLevel == 50)

    to this

    
    if(BaseLevel >= 50)

     

    JUST RETURN THE ITEM IF THE LEVEL CANNOT BE FOUND

     

  8. 1 hour ago, Chaos92 said:

    that is for ONLY 50.

    If 50 and above, use >=

    kailangan boss ang makakpag open lang ng box is 50 pataas

    pag 50 pababa hndi pwde iopen

     

    1 hour ago, Chaos92 said:

    that is for ONLY 50.

    If 50 and above, use >=

    you only need to be able to open the box is 50 or more
    /*
    - FREEBIES with Level Range
    
    - ADD THIS ITEM SCRIPT ON YOUR item_db.txt
    - Make your own Item ID shempre ung nilagay kong item ID is for my Freebies Box on my Pre Made Server.
    + 22721,Freebies_Box,Freebies Box,18,10,,0,,,,0,0xFFFFFFFF,7,2,,,,,,{ callfunc "freebies_box",0; },{ },{}
    -- Enable this NPC on your npc script_custom.conf
    
    */
    
    function    script    freebies_box    {
        set .@FREEBIES_ID,22721;    //ITEM FREEBIES BOX
        
        if(BaseLevel >= 20 && BaseLevel <= 39){
            if(!#FREE_01){
                set #FREE_01,1;            
                    //LAGAY MO DITO LAHAT NG FREEBIES ITEMS MO
                    getitem 14003,2;
                    
                    dispbottom "You receive your first Freebies for Level 20~39.";
                    
                    //BALIK PADIN ANG FREEBIES BOX PARA SA NEXT MISSION LEVEL NYA.
                    getitem .@FREEBIES_ID,1;
                end;
            }else{
                dispbottom "Your account already claimed the freebies for Level 20~39.";
                
                //BABALIK LANG ANG ITEM KUNG HINDI NAG MEET YUNG LEVEL
                getitem .@FREEBIES_ID,1;
            }
            
        }else if(BaseLevel >= 40 && BaseLevel <= 59){
            if(!#FREE_02){
                set #FREE_02,1;            
                    //LAGAY MO DITO LAHAT NG FREEBIES ITEMS MO
                    getitem 14003,2;
                    
                    dispbottom "You receive your first Freebies for Level 40~59.";
                    
                    //BALIK PADIN ANG FREEBIES BOX PARA SA NEXT MISSION LEVEL NYA.
                    getitem .@FREEBIES_ID,1;
                end;
            }else{
                dispbottom "Your account already claimed the freebies for Level 40~59.";
                
                //BABALIK LANG ANG ITEM KUNG HINDI NAG MEET YUNG LEVEL
                getitem .@FREEBIES_ID,1;
            }
            
        }else if(BaseLevel >= 60 && BaseLevel <= 79){
            if(!#FREE_03){
                set #FREE_03,1;            
                    //LAGAY MO DITO LAHAT NG FREEBIES ITEMS MO
                    getitem 14003,2;
                    
                    dispbottom "You receive your first Freebies for Level 60~79.";
                    
                    //BALIK PADIN ANG FREEBIES BOX PARA SA NEXT MISSION LEVEL NYA.
                    getitem .@FREEBIES_ID,1;
                end;
            }else{
                dispbottom "Your account already claimed the freebies for Level 60~79.";
                
                //BABALIK LANG ANG ITEM KUNG HINDI NAG MEET YUNG LEVEL
                getitem .@FREEBIES_ID,1;
            }
            
        }else if(BaseLevel >= 80 && BaseLevel <= 89){
            if(!#FREE_04){
                set #FREE_04,1;            
                    //LAGAY MO DITO LAHAT NG FREEBIES ITEMS MO
                    getitem 14003,2;
                    
                    dispbottom "You receive your first Freebies for Level 80~89.";
                    
                    //BALIK PADIN ANG FREEBIES BOX PARA SA NEXT MISSION LEVEL NYA.
                    getitem .@FREEBIES_ID,1;
                end;
            }else{
                dispbottom "Your account already claimed the freebies for Level 80~89.";
                
                //BABALIK LANG ANG ITEM KUNG HINDI NAG MEET YUNG LEVEL
                getitem .@FREEBIES_ID,1;
            }
            
        }else if(BaseLevel >= 90 && BaseLevel <= 99){
            if(!#FREE_05){
                set #FREE_05,1;            
                    //LAGAY MO DITO LAHAT NG FREEBIES ITEMS MO
                    getitem 14003,2;
                    
                    dispbottom "You receive your first Freebies for Level 90~99.";
                    
                    //WALA NG FREEBIES BOX KAPAG LEVEL 90 na KASI LAST PART NA ITO EH
                end;
            }else{
                dispbottom "Your account already claimed the freebies for Level 90~99.";
            }    
        }else{    
            //BABALIK LANG ANG ITEM KUNG HINDI NAG MEET YUNG LEVEL
            getitem .@FREEBIES_ID,1;
            
            mes "[Game Master]";
            mes "^FF0000Sorry your level is not enough to get the freebies^000000.";
            mes "Level Required:";
            mes "Level: 20~39";
            mes "Level: 40~59";
            mes "Level: 60~79";
            mes "Level: 80~89";
            mes "Level: 90~99";
            end; 
        }
        
    }

     

    how to fix it because after exceeding the lvl they can no longer get the reward of the loser

×
×
  • Create New...