Jump to content

wakefield21

Members
  • Posts

    114
  • Joined

  • Last visited

Posts posted by wakefield21

  1. 1 hour ago, L1nkZ said:

    Hi, thank you!

    Well, nothing secret is supposed to be stored in the configuration file so encrypting it isn't needed.

    Adding encryption wouldn't be too hard but it would merely obfuscate the configuration, and anyone with some technical skills could still recover the encrypted configuration in the end.

    I see @L1nkZ. Thank you so much again for the wonderful release.

    • Like 1
  2. On 4/23/2021 at 11:10 AM, AinsLord said:

    is this possible that the item is account bound/cantdrop/trade/vend/sell?

    sorry to bump into this thread

    @AinsLord
    You can set the item flags via item_db.yml

    use this as an example

     

    - Id: 11503
        AegisName: White Siege Potion
        Name: White Siege Potion
        Type: Healing
        Weight: 30
        Trade:
          Override: 100
          NoDrop: true
          NoTrade: true
          NoSell: true
          NoCart: true
          NoGuildStorage: true
          NoMail: true
          NoAuction: true
        Script: |
          itemheal rand(400,500),0;


    as you can see, I've used the Trade flag to set the item to account bound.

  3. Hello rAthena, can you please help me about my problem as I've stated at the title. Thank you guys very much!
     

    //===== rAthena Script =======================================
    //= Eden Group Quests - Mission [11 - 25]
    //===== By: ==================================================
    //= L0ne_W0lf
    //===== Current Version: =====================================
    //= 1.5
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= Repetable Quests for Players between Baselevel 11 - 25.
    //===== Additional Comments: =================================
    //= 1.0 First Version.
    //= 1.1 Some little optimization here and there. [Masao]
    //= 1.2 Optimized. [Euphy]
    //= 1.3 Bug fixes. [Capuche]
    //= 1.4 Added support to Para_Team_Mark_ in Eden Group. [Ragno]
    //= 1.5 Added use of F_HasEdenGroupMark function. [Ragno]
    //============================================================
    
    guildhall,44,88,5	script	Mission [11 - 25]#Tuto	4_BOARD3,{
    	if (!callfunc("F_HasAdvenGuildMark")) {
    		mes "- You need to have an -";
    		mes "- ^4d4dff'Adventurer's Guild Mark'^000000 -";
    		mes "- to receive these missions. -";
    		close;
    	}
    	if (isbegin_quest(79101) == 1) {
    		mes "- You still haven't finished -";
    		mes "- the ^4d4dff'Daily Quest'^000000 -";
    		mes "- introduction quest. -";
    		close;
    	}
    	for ( [email protected] = 80012; [email protected] < 80024; [email protected]++ )
    		if (checkquest([email protected],PLAYTIME) == 2) erasequest [email protected];
    	for( [email protected] = 80000; [email protected] < 80012; [email protected]++ ) {
    		[email protected] = checkquest([email protected],HUNTING);
    		if ([email protected] == 2) {
    			mes " - You must collect your - ";
    			mes " - reward before starting - ";
    			mes " - a new mission. - ";
    			mes " ";
    			mes " - Quest Manager : Spike - ";
    			close;
    		}
    		else if ([email protected] >= 0) {
    			mes " - You can only request - ";
    			mes " - one mission at a time. - ";
    			mes " ";
    			mes " - Quest Manager : Spike - ";
    			close;
    		}
    	}
    	if (BaseLevel < 11) {
    		mes " - There are no tasks - ";
    		mes " - open for you right now. - ";
    		close;
    	}
    	if (BaseLevel > 25) {
    		mes " - These missions are too - ";
    		mes " - easy for your caliber - ";
    		mes " - search for a more level - ";
    		mes " - appropriate mission. - ";
    		mes " ";
    		mes " - Quest Manager : Spike -";
    		close;
    	}
    	mes " - Daily Guild Mission Bulletin Board -";
    	mes " ";
    	mes " - For ^990000Rank F's^000000 - Level's ^00009911-25^000000 -";
    	mes " ";
    	mes " - Quest Manager : Spike -";
    	next;
    	switch(select("Hornet Extermination:Condor Extermination:Rocker Extermination:Worm Tail Extermination:Spore Extermination:Pest Extermination:Muka Extermination:Familiar Extermination:Peco Peco Extermination:Roda Frog Extermination:Ambernite Extermination:Aster Extermination:Cancel")) {
    		case 1: callsub L_Quest,80000,"Hornet Extermination"," - Hunt 10 ^4d4dff'Hornets'^000000 - "," - northwest of Prontera - "," - and bring 10 ^4d4dffBee Stings^000000. - ";
    		case 2: callsub L_Quest,80001,"Condor Extermination"," - Hunt 20 ^4d4dff'Condors'^000000 - "," - south of Morocc - "," - and bring 10 ^4d4dffTalons^000000. - ";
    		case 3: callsub L_Quest,80002,"Rocker Extermination"," - Hunt 10 ^4d4dff'Rockers'^000000 - "," - southwest of Prontera - "," - and bring 10 ^4d4dffGrasshopper's Legs^000000. - ";
    		case 4: callsub L_Quest,80003,"Worm Tail Extermination"," - Hunt 20 ^4d4dff'Worm Tails'^000000 - "," - southeast of Payon - "," - and bring 10 ^4d4dffPointed Scales^000000. - ";
    		case 5: callsub L_Quest,80004,"Spore Extermination"," - Hunt 20 ^4d4dff'Spores'^000000 - "," - around Payon -"," - and bring 10 ^4d4dffMushroom Spores^000000. - ";
    		case 6: callsub L_Quest,80005,"Pest Extermination"," - Hunt 15 ^4d4dff'Thief Bug Eggs'^000000 - "," - in the Prontera Culvert - "," - and bring 10 ^4d4dffChrysalises^000000. - ";
    		case 7: callsub L_Quest,80006,"Muka Extermination"," - Hunt 20 ^4d4dff'Mukas'^000000 - "," - south of Prontera - "," - and bring 10 ^4d4dffCactus Needles^000000. - ";
    		case 8: callsub L_Quest,80007,"Familiar Extermination"," - Hunt 20 ^4d4dff'Familiars'^000000 - "," - in the Culvert Sewers - "," - west of Prontera - "," - and bring 10 ^4d4dffTooth of Bats^000000. - ";
    		case 9: callsub L_Quest,80008,"Peco Peco Extermination"," - Hunt 15 ^4d4dff'Peco Pecos'^000000 - "," - south of Prontera - "," - and bring 10 ^4d4dffBill of Birds^000000. - ";
    		case 10: callsub L_Quest,80009,"Roda Frog Extermination"," - Hunt 20 ^4d4dff'Roda Frogs'^000000 - "," - southeast of Geffen - "," - and bring 10 ^4d4dffSticky Webfoots^000000. - ";
    		case 11: callsub L_Quest,80010,"Ambernite Extermination"," - Hunt 15 ^4d4dff'Ambernites'^000000 - "," - northeast of Geffen - "," - and bring 10 ^4d4dffSnail Shells^000000. - ";
    		case 12: callsub L_Quest,80011,"Aster Extermination"," - Hunt 20 ^4d4dff'Asters'^000000 - "," - southeast of Comodo - "," - and bring 10 ^4d4dffSingle Cells^000000. - ";
    		case 13:
    			mes " - Stopped reading the Daily Guild Mission Bulletin Board. - ";
    			close;
    	}
    
    L_Quest:
    	[email protected]quest_status = checkquest(getarg(0)+12,PLAYTIME);
    	if ([email protected]_status == 0 || [email protected]_status == 1) {
    		mes " - Mission ^4d4dff"+ getarg(1) +"^000000 - ";
    		mes " - is already finished for today. - ";
    		mes " ";
    		mes " - Quest Manager : Spike -";
    		close;
    	}
    	mes " - Mission '"+ getarg(1) +"' - ";
    	for ( [email protected] = 2; [email protected] < getargcount(); [email protected]++ )
    		mes getarg([email protected]);
    	mes " ";
    	mes " - Quest Manager : Spike -";
    	next;
    	if (select("I will do this mission.:Look for other missions.") == 2) {
    		mes " - Let's search for -";
    		mes " - other missions. - ";
    		close;
    	}
    	for ( [email protected] = 2; [email protected] < getargcount(); [email protected]++ )
    		mes getarg([email protected]);
    	setquest getarg(0);
    	close;
    
    OnInit:
    	questinfo QTYPE_DAILYQUEST, QMARK_PURPLE, " (checkquest(79101) == 2 && BaseLevel >= 11 && BaseLevel <= 25) ";
    	end;
    }
    
    guildhall,44,90,5	script	Spike	4_M_JP_RUN,{
    	for( [email protected] = 80000; [email protected] < 80012; [email protected]++ ) {
    		[email protected] = checkquest([email protected],HUNTING);
    		if ([email protected] == 2) {
    			switch([email protected]) {
    				case 80000: callsub L_Quest,[email protected],"Hornet Extermination",47006,939,10;
    				case 80001: callsub L_Quest,[email protected],"Condor Extermination",47006,917,10;
    				case 80002: callsub L_Quest,[email protected],"Rocker Extermination",47006,940,10;
    				case 80003: callsub L_Quest,[email protected],"Worm Tail Extermination",47006,906,10;
    				case 80004: callsub L_Quest,[email protected],"Spore Extermination",47006,921,10;
    				case 80005: callsub L_Quest,[email protected],"Pest Extermination",47006,915,10;
    				case 80006: callsub L_Quest,[email protected],"Muka Extermination",47006,952,10;
    				case 80007: callsub L_Quest,[email protected],"Familiar Extermination",47006,913,10;
    				case 80008: callsub L_Quest,[email protected],"Peco Peco Extermination",47006,925,10;
    				case 80009: callsub L_Quest,[email protected],"Roda Frog Extermination",47006,918,10;
    				case 80010: callsub L_Quest,[email protected],"Ambernite Extermination",47006,946,10;
    				case 80011: callsub L_Quest,[email protected],"Aster Extermination",47006,1052,10;
    			}
    		}
    		else if ([email protected] >= 0) {
    			mes "[Spike]";
    			mes "You haven't finished your mission yet.";
    			mes "Keep up the good work. You are almost done.";
    			close;
    		}
    	}
    
    	if (!callfunc("F_HasAdvenGuildMark")) {
    		mes "[Spike]";
    		mes "Looks like you are not yet a member of the guild. Register first to ^000099Secretary Organa^000000 then we can talk. You can find her across the hallway to the right.";
    		close;
    	} else {
    		mes "[Spike]";
    		mes "I'm the administrator for the";
    		mes "F rank Missions [11 - 25]";
    		next;
    		mes "[Spike]";
    		mes "Once you finish a task within this level range, speak to me so you can claim your rewards.";
    		close;
    	}
    
    L_Quest:
    	[email protected]_id = getarg(0);
    	if (checkquest([email protected]_id,HUNTING) == 2) {
    		[email protected]_req = getarg(3,0);
    		[email protected]_amount = getarg(4,0);
    		if ([email protected]_req) {
    			if (countitem([email protected]_req) < [email protected]_amount) {
    				mes "[Spike]";
    				mes "You don't have enough "+ getitemname([email protected]_req) +".";
    				mes "You need to bring "+ [email protected]_amount +" "+ getitemname([email protected]_req) +".";
    				close;
    			}
    		}
    		mes "[Spike]";
    		mes "Hmm... let me see~";
    		mes "You have completed the '"+ getarg(1) +"' mission.";
    		next;
    		mes "[Spike]";
    		mes "Good work~!!";
    		mes "Our client is so happy with your work. He will appreciate what you have done.";
    		mes "Please help us again. Thanks!";
    		if ([email protected]_req)
    			delitem [email protected]_req,[email protected]_amount;
    		erasequest [email protected]_id;
    		setquest [email protected]_id+12;
    		getitem getarg(2),1;
    		close;
    	}
    OnInit:	
    	questinfo QTYPE_QUEST2, QMARK_YELLOW, " checkquest(80000,HUNTING) == 2 && countitem(939) >= 10 || checkquest(80001,HUNTING) == 2 && countitem(917) >= 10 || checkquest(80002,HUNTING) == 2 && countitem(940) >= 10 || checkquest(80003,HUNTING) == 2 && countitem(906) >= 10 || checkquest(80004,HUNTING) == 2 && countitem(921) >= 10 || checkquest(80005,HUNTING) == 2 && countitem(915) >= 10 || checkquest(80006,HUNTING) == 2 && countitem(952) >= 10 || checkquest(80007,HUNTING) == 2 && countitem(913) >= 10 || checkquest(80008,HUNTING) == 2 && countitem(925) >= 10 || checkquest(80009,HUNTING) == 2 && countitem(918) >= 10 || checkquest(80010,HUNTING) == 2 && countitem(946) >= 10 || checkquest(80011,HUNTING) == 2 && countitem(1052) >= 10 ";
    	end;
    }

     

  4. Are you using Renewal? cause if yes, here's the reason for that.

     

      - Id: 1115
        AegisName: EDDGA
        Name: Eddga
        Level: 65
        Hp: 947500
        BaseExp: 198000
        JobExp: 148500
        MvpExp: 99000
        Attack: 1509
        Attack2: 776
        Defense: 166
        MagicDefense: 70
        Str: 92
        Agi: 80
        Vit: 103
        Int: 66
        Dex: 90
        Luk: 85
        AttackRange: 1
        SkillRange: 10
        ChaseRange: 12
        Size: Large
        Race: Brute
        Element: Fire
        ElementLevel: 1
        WalkSpeed: 300
        AttackDelay: 872
        AttackMotion: 1344
        DamageMotion: 432
        DamageTaken: 10 <!-- Reason for that 5k damage, since on the official kRO MVP's were buffed with this flag. Just change it to 100 instead of 10 -->
        Ai: 21
        Class: Boss
        Modes:
          Mvp: true
        MvpDrops:
          - Item: Tiger's_Skin
            Rate: 5000
          - Item: Tiger_Footskin
            Rate: 1000
          - Item: Flame_Heart
            Rate: 3000
        Drops:
          - Item: Fire_Brand
            Rate: 150
          - Item: Smoking_Pipe
            Rate: 250
          - Item: Honey
            Rate: 10000
          - Item: Katar_Of_Raging_Blaze
            Rate: 500
          - Item: Tiger_Footskin
            Rate: 250
          - Item: Elunium
            Rate: 2300
          - Item: Krieg
            Rate: 100
          - Item: Eddga_Card
            Rate: 1
            StealProtected: true

    This pretty much solves your problem. Have Fun 😊

  5. Hello rAthena! First of all good day to all of you and I hope everyone is having a good time.

    My question is how can I add weapon atk damage to the formula of Shield Boomerang damage. Because currently the default is no weapon attack is applied to the damage.

    Thanks in advance!

     

    		case CR_SHIELDBOOMERANG:
    		case PA_SHIELDCHAIN:
    			wd->damage = sstatus->batk;
    			if (sd) {
    				short index = sd->equip_index[EQI_HAND_L];
    
    				if (index >= 0 && sd->inventory_data[index] && sd->inventory_data[index]->type == IT_ARMOR) {
    					ATK_ADD(wd->damage, wd->damage2, sd->inventory_data[index]->weight / 10);
    #ifdef RENEWAL
    					ATK_ADD(wd->weaponAtk, wd->weaponAtk2, sd->inventory_data[index]->weight / 10);

     

  6. Deleting the consecutive item required will not delete it. because it misses something in the script.

    Original Script:

    case 1:
    						if (countitem(.vip_item) > 0)

    Change it to this:
     

    case 1:
    						if (countitem(.vip_item[[email protected]]) > 0)

     

    • Upvote 1
  7. Good day rAthena community. Can you please help me achieve what I am doing here... Basically I want the player to be warped out on this time in the script. Here is the sample of the script

    OnTimer50000:
    	mapannounce .map$,"The event is over and the hordes of King Poring will return again in 12 hours, see you next time!",bc_all;
    	warp "SavePoint",0,0;
    	end;

     

  8. Hello rAthena community! I just want to ask for a simple npc script with the following functions.

    npc will auto appear and hide on a specific hour
    if you talk to it has yes or no and if select yes it will warp you to a map

    will auto warp back players to their save point.

    Thank you so much!

  9. Hello rAthena! Can someone please tell me how can i loop a BGM inside a script and if possible please give me an example.

    Here's my sample script.

     

    -	script	timeattack	-1,{
    	
    	OnPCLoginEvent:
    
    	atcommand "@night";
    	playBGM "100";
    
    	mes "[Great Demon Baphomet]";
    	mes "Greetings, "+ strcharinfo(0) +". Yes, human, I know who you are. I know that from the bottom of your heart, you seek glory and riches. You can't fool me foolish human! Now I stand before you to give you an offer.";
    	next;
    	mes "[Great Demon Baphomet]";
    	mes "I can grant you any treasure you desire and infinite power at your fingertips. Powerful weapons that humans have never before seen...";
    	next;
    	mes "[Great Demon Baphomet]";
    	mes "Mountains of zeny that you cannot possibly hope to spend in a lifetime. Though, who's to say that your lifespan should be limited? Fame, power, immortality: It can all be yours.";
    	next;
    	mes "[Great Demon Baphomet]";
    	mes "I will be yours to summon at anytime. All other humans will dread making you their enemy. You will become the most powerful person in all of history!";
    	switch (select("Okay, Let's do it!:No! I'll never submit to you!")) {
    		case 1:
    			mes "[Great Demon Baphomet]";
    			mes "Then we shall form a contract. You won't ever regret this moment...";
    			next;
    			mes "[Great Demon Baphomet]";
    			mes "Follow me.";
    			mes "We will make the";
    			mes "contract in my";
    			mes "sanctum of darkness.";
    			warp "prt_fild08",271,191;
    			end;
    		case 2:
    			mes "[Great Demon Baphomet]";
    			mes "Foolish human...";
    			mes "You have made your choice. I will leave you alone for now, then. However, your training won't be as easy as you think.";
    			next;
    			mes "[Great Demon Baphomet]";
    			mes "I shall be preparing my troops for you. The day will come when I shall enjoy watching you writhe in agony as my fiends slowly devour you.";
    			close;
    		}
    	end;
    }

     

    Thank you very much guys!

×
×
  • Create New...

Important Information

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