Jump to content

Styx15

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by Styx15

  1. Hello i need hourly reward only in maintown ex only in prontera .
    someone can help me to set that ? 

    This is script i used.

    Thank you

    prontera,100,100,5    script    hourlypoints    139,8,11,{
    end;
    
    OnTouch:
        dispbottom "Stay here to get afk hourly points.";
        attachnpctimer();
        startnpctimer();
        end;
        
    OnTimer10000:
        getmapxy([email protected]$,[email protected],[email protected],0);
        if( distance(.x,.y,[email protected],[email protected])<=11
        && [email protected]$==.map$ ) {
            if( checkidle() ) {
                getitem(12875,1);
                dispbottom "Thank you for always stay near me";
                set @consecutive_hour, @consecutive_hour + 1;
    
                //Check for 1 hours consecutive
                if(@consecutive_hour == 1) {
                    set @consecutive_hour,0;
                    getitem(12875,1);
                    dispbottom "Thank you for always stay near me";
                }
            }
        }
        attachnpctimer();
        initnpctimer();
        end;
    
    OnInit:
        getmapxy(.map$,.x,.y,1);
        set .cpoint_amt, 50; //Points gained for consecutive time online.
        set .point_amt, 10; //Normal points gained.
    }

     

  2. Hello i need help about script guardian soul ..somebody can help me to create script Guardian Soul Like
    Divide Pride

    Type: Equipment
    Class: Garment
    Defense: 25
    Weight: 30
    Requires Level: 100
    Usable By: All Jobs
    Enables Heaven's Drive Lv1
    Increases resistance to Human Player and Doram player damage by 1%

    If refined to +7 or higher
    Atk +7 for every 18 points of Pure Luk and Str
    Reduced Skill Delay Usage by 1% for every 18 points of Pure Luk and Str
    3% Resistance to Shadow and Holy attribute attacks for every 18 points of Pure Luk and Str
    ASPD 1% for every 18 points of Pure Agi and Vit
    MaxHP 1% for every 18 points of Pure Agi and Vit
    3% Resistance to Fire and Water attribute attacks for every 18 points of Pure Agi and Vit
    mAtk +7 for every 18 points of Pure Int and Dex
    Reduce Spell Cast Time by 1% for 18 points of Pure Int and Dex
    3% Resistance to Wind and Earth attribute attacks for every 18 points of Pure Int and Dex

    If refined to +12 or higher
    Atk an additional +5 for every 18 points of Pure Luk and Str
    2% additional Resistance to Shadow and Holy attribute attacks for every 18 points of Pure Luk and Str
    ASPD an additional 1% for every 18 points of Pure Agi and Vit
    MaxHP an additional 1% for every 18 points of Pure Agi and Vit
    2% additional Resistance to Fire and Water attribute attacks for every 18 points of Pure Agi and Vit
    mAtk an additional +5 for every 18 points of Pure Int and Dex
    2% additional Resistance to Wind and Earth attribute attacks for every 18 points of Pure Int and Dex

    If refined to +15 or higher
    Atk an additional +2 for every 18 points of Pure Luk and Str
    2% additional Resistance to Shadow and Holy attribute attacks for every 18 points of Pure Luk and Str

    MaxHP an additional 1% for every 18 points of Pure Agi and Vit
    2% additional Resistance to Fire and Water attribute attacks for every 18 points of Pure Agi and Vit
    mAtk an additional +2 for every 18 points of Pure Int and Dex

    2% additional Resistance to Wind and Earth attribute attacks for every 18 points of Pure Int and Dex


    Thank You

  3. Hello i have script from Secrets..

    i need to help set time participation sill count when user change character..because when user change character time reset from 0 again...
    And setting 1 Ip only can get reward one time only..dual not count...

     

    thank you before..

     

    //===== rAthena Script =======================================
    //= Time-based WoE participation reward.
    //===== By: ==================================================
    //= Secret
    //===== Description: =========================================
    //= A WoE participation timer counter.
    //===== Additional Comments: =================================
    //= Don't make WoE sessions overlap or the script will go nuts!
    //============================================================
    
    amatsu,102,164,6	script	WoE Reward	4_GEFFEN_08,{
    	mes .n$;
    	mes "You can claim the WoE participation prizes if you participated in the last WoE longer than " + .min_time + " minutes.";
    	if(.cash)
    		mes "- " + .cash$[1] + ": " + .cash;
    	if(.zeny)
    		mes "- Zeny:" + callfunc("F_InsertComma",.zeny);
    	[email protected] = getarraysize(.items);
    	if([email protected]) {
    		mes "- Items:";
    		for([email protected] = 0; [email protected] < [email protected]; [email protected] += 2) {
    			mes "   x" + .items[[email protected]+1] + " " + getitemname(.items[[email protected]]);
    		}
    	}
    	next;
    	mes .n$;
    	if (agitcheck() || agitcheck2() || agitcheck3()) {
    		mes "You can only claim the prizes when the WoE is not active.";
    		mes "Your WoE participation time is "+ WOE_Timer +" minute" + (WOE_Timer > 1 ? "s" : "") + ".";
    		close;
    	}
    	if(WOE_Timer_Claimed) {
    		mes "You already claimed your WoE participation prize.";
    		close;
    	}
    	if(WOE_Timer < .min_time) {
    		mes "Your WoE participation time is not enough.";
    		mes "Your WoE participation time is "+ WOE_Timer +" minute" + (WOE_Timer > 1 ? "s" : "") + ".";
    		mes "While you have to participate for " + .min_time +" minute" + (.min_time > 1 ? "s" : "") + ".";
    		close;
    	}
    	mes "Do you want to claim your prize?";
    	mes "You have participated in the last WoE for " + WOE_Timer + " minutes.";
    	mes "Remember, if you don't claim your prize now, It will be lost once the next WoE starts!";
    	next;
    	switch(select("Claim the prize", "Later")) {
    		case 1:
    			mes .n$;
    			mes "Thank you for participating in the War of Emperium!";
    			WOE_Timer_Claimed = true;
    			if(.cash) {
    				set getd(.cash$[0]), getd(.cash$[0]) + .cash;
    				dispbottom "Received " + .cash + " " + .cash$[1] + ". Total: " + getd(.cash$[0]);
    			}
    			if(.zeny) {
    				Zeny += .zeny;
    				dispbottom "Received " + .zeny + " zeny.";
    			}
    			for([email protected] = 0; [email protected] < [email protected]; [email protected] += 2) {
    				getitem .items[[email protected]],.items[[email protected]+1];
    			}
    			break;
    		case 2:
    			break;
    	}
    	close;
    	
    OnCheck:
    	if(!getcharid(2) || (!agitcheck() && !agitcheck2() && !agitcheck3())) {
    		WOE_Start = 0;
    	} else {
    		if(WOE_Start != [email protected]_time) {
    			callsub(S_OnReset);
    		}
    		WOE_Start = [email protected]_time;
    		
    		getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC);
    		
    		if(mf_gvg_te_castle != 0) {
    			if(!getmapflag([email protected]$,mf_gvg_castle) && !getmapflag([email protected]$,mf_gvg_te_castle))
    				return;
    		} else {
    			if(!getmapflag([email protected]$,mf_gvg_castle)) {
    				return;
    			}
    		}
    		if(@woe_last_map$ == [email protected]$ && @woe_last_x == [email protected] && @woe_last_y == [email protected]) {
    			@woe_idle++;
    		} else {
    			@woe_idle = 0;
    		}
    		@woe_last_map$ = [email protected]$;
    		@woe_last_x = [email protected];
    		@woe_last_y = [email protected];
    		
    		if(@woe_idle < .idle_tolerance) {
    			[email protected] = getarraysize(.map$);
    			for([email protected] = 0; [email protected] < [email protected]; [email protected]++) {
    				if(.map$[[email protected]] == strcharinfo(3)) {
    					WOE_Timer++;
    					dispbottom "[WOE Timer] WoE participation: " + WOE_Timer + " minutes.";
    					break;
    				}
    			}
    		}
    	}
    	return;
    	
    OnInitCheck:
    	callsub(OnCheck);
    	addtimer 60000,strnpcinfo(0) + "::OnInitCheck";
    	end;
    
    OnPCLoginEvent:
    	callsub(OnInitCheck);
    	end;
    	
    S_OnReset:
    	WOE_Timer = 0;
    	WOE_Start = 0;
    	WOE_Timer_Claimed = false;
    	return;
    
    OnAgitStart:
    OnAgitStart2:
    OnAgitStart3:
    	[email protected]_time = atoi("" + gettime(DT_YEAR) + gettime(DT_MONTH) + gettime(DT_DAYOFMONTH) + gettime(DT_HOUR));
    	end;
    
    OnInit:
    	.n$ = "[WoE Reward]"; // NPC name
    	.min_time = 10; // Minimum time in minutes to claim the reward.
    	setarray .cash$[0],"#KAFRAPOINTS","Cash Points"; // Point variable and human-friendly text
    	.cash = 10000; // Points that will be given
    	.zeny = 25000000; // Zeny that will be given
    	// Items that will be given
    	setarray .items,13630,1,12679,10,12680,10,7179,20;
    	.idle_tolerance = 5; // Minutes of idling before the timer becomes be paused.
    	setarray .map$,"payg_cas02","arug_cas02"; // WoE Castles
    }

     

    /thx

  4. On 3/4/2022 at 2:28 AM, Fluxion said:

    replace 

    	if (lastwarp$ == "")
    		message strcharinfo(0),"You haven't warped anywhere yet.";
    	else
    		warp lastwarp$,lastwarpx,lastwarpy;
    	end;

    to 

    	if (lastwarp$ == "")
    		message strcharinfo(0),"You haven't warped anywhere yet.";
    	else {
    		sc_end SC_GEFFEN_MAGIC3;
    		warp lastwarp$,lastwarpx,lastwarpy;
    	}
    	end;

     

     

    and replace 

    function Go {
    	set lastwarp$, getarg(0);
    	set lastwarpx, getarg(1,0);
    	set lastwarpy, getarg(2,0);
    	warp getarg(0),getarg(1,0),getarg(2,0);
    	end;
    }

    to 

    function Go {
    	set lastwarp$, getarg(0);
    	set lastwarpx, getarg(1,0);
    	set lastwarpy, getarg(2,0);
    	sc_end SC_GEFFEN_MAGIC3;
    	warp getarg(0),getarg(1,0),getarg(2,0);
    	end;
    }

     

     

    Another Note:
    I haven't tested with this status, I tested with sc_freeze and it worked, should work with this status too

    Another Note ++ : @mrfizi is too fast >_<

    i try but now working../wah

  5. On 2/24/2022 at 6:55 AM, EIysium said:

    Go to skill_db.yml and find SC_MANHOLE or Id: 2299 

     

      - Id: 2299
        Name: SC_MANHOLE
        Description: Man Hole
        MaxLevel: 3
        Type: Magic
        TargetType: Ground
        DamageFlags:
          NoDamage: true
        Range: 7
        Hit: Single
        HitCount: 1
        ActiveInstance: 3
        CastCancel: true
        CastTime: 1000
        AfterCastActDelay: 2000
        Duration1:
          - Level: 1
            Time: 5000
          - Level: 2
            Time: 10000
          - Level: 3
            Time: 15000
        Duration2:
          - Level: 1
            Time: 5000
          - Level: 2
            Time: 10000
          - Level: 3
            Time: 15000
        Requires:
          SpCost:
            - Level: 1
              Amount: 20
            - Level: 2
              Amount: 25
            - Level: 3
              Amount: 30
          ItemCost:
            - Item: Paint_Brush
              Amount: 0
            - Item: Surface_Paint
              Amount: 1
        Unit:
          Id: Manhole
          Range: 1
          Interval: 1000
          Flag:
            NoReiteration: true
            NoFootSet: true
            RemovedByFireRain: true

    and add bellow DamageFlags: put this:

     

        Flags:
          TargetEmperium: false

    save and reload.

     

     

    not working...

    somebody help me ... /sob

  6. Done .Thank You ..

        SplashArea:
          - Level: 1
            Area: 9
          - Level: 2
            Area: 10
          - Level: 3
            Area: 11
          - Level: 4
            Area: 12
          - Level: 5
            Area: 13


     

  7. Helio... i want to ask how to change gate of hell to neutral element..

    cause in my server gate of hell can hit ghost..

    i try to change 

      - Id: 2343
        Name: SR_GATEOFHELL
        Description: Gate of Hell
        MaxLevel: 10
        Type: Weapon
        TargetType: Attack
        DamageFlags:
          IgnoreLongCard: true
        Range: 7
        Hit: Multi_Hit
        HitCount: -7
        CopyFlags:
          Skill:
            Reproduce: true
        CastCancel: true
        Element:
          - Level: 1
            Element: Neutral
          - Level: 2
            Element: Neutral
          - Level: 3
            Element: Neutral
          - Level: 4
            Element: Neutral
          - Level: 5
            Element: Neutral

    that's not work...

    somebody help me ?

    thank you...

×
×
  • Create New...

Important Information

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