Jump to content

Bringer

Members
  • Content Count

    148
  • Joined

  • Last visited

Posts posted by Bringer


  1.  

     

    make sure that your hercules is fully updated

     

     

     

    I've check your script using haru.ws/scriptchecker but it doesnt throw any error.. try to update your SVN.

    ockquote>yes fully updated
    Please update your Hercules, hascashmount was added few months back.

    (Also be sure you recompiled the Hercules)

    The script doesn't throw any error/warning to me.

     

    can you teach me how?


  2. i just change on battle.c

     

    if ( (!skill_num || skill_num == PA_SACRIFICE) && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )

    TO 
    if ( (!skill_num) && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )

     

    i already put my backup battle.c but still error anyone can help about this problem?

     

    error 

    battle.c: In function 'battle_delay_damage':battle.c:286: error: 'struct Battle_Config' has no member named 'snap_dodge'battle.c: In function 'battle_calc_base_damage':battle.c:505: error: 'TBL_PC' has no member named 'charm_type'battle.c:505: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:505: error: (Each undeclared identifier is reported only oncebattle.c:505: error: for each function it appears in.)battle.c:505: error: 'TBL_PC' has no member named 'charm_count'battle.c:505: error: 'MAX_SPIRITCHARM' undeclared (first use in this function)battle.c:506: error: 'TBL_PC' has no member named 'charm_type'battle.c: In function 'battle_addmastery':battle.c:677: warning: implicit declaration of function 'pc_isridingpeco'battle.c: In function 'battle_calc_masteryfix':battle.c:780: error: 'struct battle_interface' has no member named 'calc_masteryfix_unknown'battle.c: In function 'battle_calc_defense':battle.c:1324: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1324: error: 'CHARM_TYPE_LAND' undeclared (first use in this function)battle.c:1324: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1325: error: 'struct map_session_data' has no member named 'charm_count'battle.c: In function 'battle_calc_skillratio':battle.c:1578: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1578: error: 'CHARM_TYPE_FIRE' undeclared (first use in this function)battle.c:1578: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1579: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1583: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1583: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1584: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1588: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1588: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1589: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1600: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1600: error: 'CHARM_TYPE_WATER' undeclared (first use in this function)battle.c:1600: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1601: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1605: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1605: error: 'CHARM_TYPE_WIND' undeclared (first use in this function)battle.c:1605: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1606: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1609: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1609: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1610: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1857: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1857: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:1857: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1858: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1860: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1860: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1864: error: 'struct battle_interface' has no member named 'calc_skillratio_magic_unknown'battle.c:2638: error: 'struct battle_interface' has no member named 'calc_skillratio_weapon_unknown'battle.c: In function 'battle_calc_magic_attack':battle.c:3474: error: 'TBL_PC' has no member named 'charm_type'battle.c:3474: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:3474: error: 'TBL_PC' has no member named 'charm_count'battle.c:3474: error: 'MAX_SPIRITCHARM' undeclared (first use in this function)battle.c:3476: error: 'TBL_PC' has no member named 'charm_type'battle.c:3518: error: 'TBL_PC' has no member named 'charm_type'battle.c:3518: error: 'TBL_PC' has no member named 'charm_count'battle.c:3519: error: 'TBL_PC' has no member named 'charm_type'battle.c: In function 'battle_calc_misc_attack':battle.c:4041: error: 'struct battle_interface' has no member named 'calc_misc_attack_unknown'battle.c:4119: error: 'struct battle_interface' has no member named 'calc_cardfix2'battle.c: In function 'battle_calc_weapon_attack':battle.c:4381: error: 'struct map_session_data' has no member named 'charm_type'battle.c:4381: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:4381: error: 'struct map_session_data' has no member named 'charm_count'battle.c:4381: error: 'MAX_SPIRITCHARM' undeclared (first use in this function)battle.c:4383: error: 'struct map_session_data' has no member named 'charm_type'battle.c: In function 'battle_calc_attack':battle.c:5585: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c:5586: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c:5586: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c:5587: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c: In function 'battle_drain':battle.c:5821: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c: In function 'battle_weapon_attack':battle.c:5908: error: 'USESKILL_FAIL_NEED_MORE_BULLET' undeclared (first use in this function)battle.c: In function 'battle_check_range':battle.c:6662: warning: implicit declaration of function 'check_distance_client_bl'battle.c: At top level:battle.c:6877: error: 'struct Battle_Config' has no member named 'official_cell_stack_limit'battle.c:6878: error: 'struct Battle_Config' has no member named 'custom_cell_stack_limit'battle.c:6880: error: 'struct Battle_Config' has no member named 'check_occupied_cells'battle.c:7022: error: 'struct Battle_Config' has no member named 'knockback_left'battle.c:7053: error: 'struct Battle_Config' has no member named 'bowling_bash_area'battle.c:7059: error: 'struct Battle_Config' has no member named 'unequip_restricted_equipment'battle.c:7075: error: 'struct Battle_Config' has no member named 'song_timer_reset'battle.c:7076: error: 'struct Battle_Config' has no member named 'snap_dodge'battle.c:7077: error: 'struct Battle_Config' has no member named 'stormgust_knockback'battle.c:7078: error: 'struct Battle_Config' has no member named 'mob_chase_refresh'battle.c:7079: error: 'struct Battle_Config' has no member named 'mob_icewall_walk_block'battle.c:7080: error: 'struct Battle_Config' has no member named 'boss_icewall_walk_block'battle.c:7081: error: 'struct Battle_Config' has no member named 'feature_roulette'battle.c: In function 'battle_adjust_conf':battle.c:7334: error: 'struct Battle_Config' has no member named 'feature_roulette'battle.c:7336: error: 'struct Battle_Config' has no member named 'feature_roulette'battle.c:7336: warning: statement with no effectbattle.c:7350: error: 'struct Battle_Config' has no member named 'custom_cell_stack_limit'battle.c:7350: warning: comparison between pointer and integerbattle.c: In function 'battle_defaults':battle.c:7439: error: 'struct battle_interface' has no member named 'calc_cardfix2'battle.c:7439: warning: statement with no effectbattle.c:7476: error: 'struct battle_interface' has no member named 'calc_masteryfix_unknown'battle.c:7476: warning: statement with no effectbattle.c:7477: error: 'struct battle_interface' has no member named 'calc_skillratio_magic_unknown'battle.c:7477: warning: statement with no effectbattle.c:7478: error: 'struct battle_interface' has no member named 'calc_skillratio_weapon_unknown'battle.c:7478: warning: statement with no effectbattle.c:7479: error: 'struct battle_interface' has no member named 'calc_misc_attack_unknown'battle.c:7479: warning: statement with no effectmake[1]: Leaving directory `/home/trincli0371/trunk/src/map'make[1]: *** [obj_sql/battle.o] Error 1make: *** [map_sql] Error 2

     


  3. [Error]: script error in file 'npc/custom/breeder.txt' line 16 column 18
        parse_simpleexpr: unmatched ')'
        13: {
        14:         /* TODO: This can be optimized with just setmount(), as it can
        15:                  auto-detect the proper mount for the class/skills. */
    *   16:         if (hascashmount()) {
            ~~~~~~~~~~~~~~~~~~~~~~~~^
        17:                 message strcharinfo(0),"You must first remove your mount.";
        18:                 end;
        19:         } else if ((eaclass()&EAJ_THIRDMASK) == EAJ_RANGER && 
     
    //===== Hercules Script ======================================//= Universal Rental NPC//===== By: ==================================================//= Euphy//===== Current Version: =====================================//= 1.2//===== Description: =========================================//= One-click automatic mount rentals.//= Replaced 'close' with 'end' [Streusel]//= Fixed 'close' issues. [Joseph]//============================================================poring_w02,86,101,5	script	Universal Rental NPC	4_F_JOB_BLACKSMITH,{	/* TODO: This can be optimized with just setmount(), as it can		 auto-detect the proper mount for the class/skills. */	if (hascashmount()) {		message strcharinfo(0),"You must first remove your mount.";		end;	} else if ((eaclass()&EAJ_THIRDMASK) == EAJ_RANGER && !countitem(Wolf's_Flute)) {		if (!checkfalcon() && getskilllv(HT_FALCON) && !checkwug()) {			if (select(" ~ Falcon: ~ Warg") == 1)				setfalcon;			else				getitem Wolf's_Flute, 1;			specialeffect2 EF_TEIHIT3;			close;		} else {			getitem Wolf's_Flute,1;		}	} else if ((eaclass()&EAJ_THIRDMASK) == EAJ_MECHANIC && !checkcart() && getskilllv(MC_PUSHCART)) {		if (!checkmount() != MOUNT_MADO && getskilllv(NC_MADOLICENCE)) {			if (select(" ~ Cart: ~ Mado") == 1) {				setcart;			} else {				setmount(MOUNT_MADO);			}			specialeffect2 EF_TEIHIT3;			close;		} else {			setcart;		}	} else if (!checkcart() && getskilllv(MC_PUSHCART)) {		setcart;	} else if (!checkfalcon() && getskilllv(HT_FALCON) && !checkwug()) {		setfalcon;	} else if (checkmount() != MOUNT_PECO && getskilllv(KN_RIDING)) {		setmount; // Peco or Dragon	} else if (checkmount() != MOUNT_MADO && getskilllv(NC_MADOLICENCE)) {		setmount(MOUNT_MADO);	} else {		message strcharinfo(0),"You do not meet requirements to rent.";		end;	}	specialeffect2 EF_TEIHIT3;	end;}//============================================================// Old changelog//============================================================//= A Free PecoPeco and Falcon Breeder//= 1.1 FIXED checkriding/cart/falcon funcs [Lupus]//= 1.2 Added Rebirth/Advanced Class support [Mass Zero]//= 1.3 Simplified the checks of job [Silentdragon]//= 1.3a Fixed a Typo Error. [Samuray22]//=      Thanks to ~AnnieRuru~.//= 1.4 Optimized Script. No need for 50 million Labels. [Spre]//============================================================

     

     


  4.  

    you don't need exp2.txt, hercules default exp.txt already supports up to 1000

     

     

    // Supports baselevel up to 1000 and joblevel up to 255 (except Novice/High Novice)

     

     

    you don't need exp2.txt, hercules default exp.txt already supports up to 1000

     

     

    // Supports baselevel up to 1000 and joblevel up to 255 (except Novice/High Novice)

    done i forgot about this http://herc.ws/wiki/Edit_Max_Level


  5. Hi Hercules Members

     

    i got this LMS event script , its working but there is an error , the prize npc is always on and gives unlimited prizes , and the event warper npc should be hidden till the event trigers , but he still shown :(

     

     

     

     

    -  script  LMS#disable  -1,{

     

    OnInit:

    disablenpc "Mr. Banker";

    disablenpc "All Job Manager";

    end;

    }

     

    -  script  LMS  -1,{

     

    OnMinute52:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noon

    goto startlmsevent;

     

    startlmsevent:

    pvpoff "guild_vs5";

    announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;

    sleep2 5000;

    announce "Mr. Manager: Those who want to play, please proceed to Prontera and Register.",0;

    sleep2 5000;

    announce "Mr. Manager: After 1 Minute the Registration will close.",0;

    enablenpc "All Job Manager";

    initnpctimer;

    end;

     

    OnTimer30000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: Last 30 seconds.",0;

    sleep2 5000;

    announce "Mr. Manager: If you want to join please Register in Prontera.",0;

    end;

     

    OnTimer50000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: Last 10 seconds.",0;

    end;

     

    OnTimer55000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: 5.",0;

    end;

     

    OnTimer56000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: 4.",0;

    end;

     

    OnTimer57000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: 3.",0;

    end;

     

    OnTimer58000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: 2.",0;

    end;

     

    OnTimer59000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: 1.",0;

    end;

     

    OnTimer60000:

    pvpoff "guild_vs5";

    announce "Mr. Manager: Time's up.",0;

    end;

     

    OnTimer61000:

    pvpoff "guild_vs5";

    disablenpc "All Job Manager";

    donpcevent "Mr. Banker::OnEnable";

    stopnpctimer;

    end;

    }

    //---------All Job Registration---------------

    deuces,87,50,5  script  All Job Manager  106,{

     

    mes "[Mr. Manager]";

    mes "Hello What can I do for you?";

    next;

    menu "Register",-,"What is LMS?",what,"Leave",leave;

    next;

    mes "[Mr. Manager]";

    mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";

    warp "guild_vs5",0,0;

    end;

    what:

    mes "[Mr. Manager]";

    mes "LMS is also known as Last Man Standing Event";

    next;

    mes "[Mr. Manager]";

    mes "LMS is also like a PvP.";

    mes "The only difference is at LMS you will get 50 HPRO Point if you are the Last Man Standing at the arena.";

    next;

    mes "[Mr. Manager]";

    mes "That's all";

    close;

    leave:

    mes "[Mr. Manager]";

    mes "I hope you will register next time";

    close;

     

     

    }

     

    //--------------------------

     

    //--------------------------

    guild_vs5,49,49,6  script  Mr. Banker  56,{

     

    mes "[banker]";

    mes "Congrats. You've won.";

    next;

    announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;

    getitem 7227,5; // Change This item id to what ever you want . item id,amount

    dispbottom "You Received 5x TCG Card for winning the LMS Event.";

    mes "You will return now";

    warp "deuces",86,51;

    disablenpc "Mr. Banker";

    close;

    end;

    OnEnable:

    mapannounce "guild_vs5","Mr. Manager:The Last Man Standing Event will start shortly",0;

    sleep2 5000;

    mapannounce "guild_vs5","Mr. Manager:But before we start this is just a few reminders..",0;

    sleep2 5000;

    mapannounce "guild_vs5","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;

    sleep2 5000;

    mapannounce "guild_vs5","Mr. Manager: Only the Last Man Standing will win this event!!",0;

    sleep2 5000;

    mapannounce "guild_vs5","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;

    sleep2 5000;

    goto L_Start;

    end;

    L_Start:

    if(getmapusers("guild_vs5") == 1) goto L_Champ;

    if(getmapusers("guild_vs5") == 0) goto L_None;

    if(getmapusers("guild_vs5") > 1) {

    mapannounce "guild_vs5","Mr. Manager: Get ready at the count of 5 we will start!....",0;

    sleep2 5000;

    mapannounce "guild_vs5","Mr. Manager: 5",0;

    sleep2 5000;

    mapannounce "guild_vs5","Mr. Manager: 4",0;

    sleep2 4000;

    mapannounce "guild_vs5","Mr. Manager: 3",0;

    sleep2 3000;

    mapannounce "guild_vs5","Mr. Manager: 2",0;

    sleep2 2000;

    mapannounce "guild_vs5","Mr. Manager: 1",0;

    sleep2 1000;

    pvpon "guild_vs5";

    goto timer;

    end;

    }

    timer:

    initnpctimer;

    end;

     

    OnTimer1000:

    end;

     

    OnTimer1100:

    if(getmapusers("guild_vs5") == 1) goto L_Champ;

    if(getmapusers("guild_vs5") > 2) goto timer;

    if(getmapusers("guild_vs5") == 2) goto champ;

    stopnpctimer;

    end;

     

    champ:

    announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;

    sleep2 10000;

    if(getmapusers("guild_vs5") == 1) goto L_Champ;

    if(getmapusers("guild_vs5") > 1) goto timer;

    end;

     

    L_Champ:

    mapannounce "guild_vs5","Mr. Banker: Please talk to me to get your prize..",0;

    pvpoff "guild_vs5";

    enablenpc "Mr. Banker";

    end;

     

    L_None:

    disablenpc "Banker";

    pvpoff "guild_vs5";

    end;

    }

    //----- Die = warp prt -----

    -  script  Killa_warp  -1,{

     

    OnPCDieEvent:

     getmapxy(.@map$,.@x,.@y,0);

     if(.@map$=="guild_vs5")

     {

       set #kill_point, 0;

       announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;

       warp "deuces",0,0;

       end;

     }

    OnPCKillEvent:

     getmapxy(.@map$,.@x,.@y,0);

     if(.@map$=="guild_vs5")

     {

     set #kill_point,#kill_point+1;

     if ( #kill_point % 4 == 0) {

     announce ""+strcharinfo(0)+" have made 4 Consecutive Kills!!He will be granted an item",bc_all;

     getitem 607, 50;

     end;

     }

     }

    }

     

     

    // == Mapflags

    guild_vs5  mapflag  nowarp

    guild_vs5  mapflag  nowarpto

    guild_vs5  mapflag  noteleport

    guild_vs5  mapflag  nosave

    guild_vs5  mapflag  nomemo

    guild_vs5  mapflag  nobranch

    guild_vs5  mapflag  pvp_noparty

     

     

     

    try this

     

    -	script	LMS#disable	-1,{OnInit:disablenpc "Mr. Banker";disablenpc "All Job Manager";end;}poring_w02,133,101,4	script	LMS Trigger	106,{if (getgmlevel() >= 30) goto LMS_Admin;	mes "[Minion]";	mes "Hello " + strcharinfo(0) + ", my master is busy.";	mes "*sigh*";	close;LMS_Admin:	mes "[LMS Trigger]";	mes "Hello " + strcharinfo(0) + ", would you like me to call my Boss?";	mes "He is the only one who can start it!";	menu "Start Event",startlmsevent2,"No Thanks",leave;	startlmsevent2:		next;		mes "[LMS Trigger]";		mes "Ok, I'll call him this instant.";		close2;		goto startlmsevent;leave:		next;		mes "[LMS Trigger]";		mes "Ok " + strcharinfo(0) +", nice seeing you.";		close;OnClock0000:OnClock0300:OnClock0600:OnClock0900:OnClock1300:OnClock1500:OnClock1830:OnClock2100:OnClock2400:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noongoto startlmsevent;startlmsevent:announce "LMS Event: The Last Man Standing event will be starting shortly.",0;sleep2 10000;announce "LMS Event: Those who want to play, please proceed to Poring Market and Register.",0;sleep2 10000;announce "LMS Event: After 1 Minute the Registration will close.",0;sleep2 10000;announce "LMS Event: Please go to Poring Market and Register now if you want to join.",0;enablenpc "All Job Manager";initnpctimer;end;OnTimer30000:announce "LMS Event: Last 30 seconds.",0;sleep2 5000;announce "LMS Event: If you want to join please Register in Poring Market.",0;end;OnTimer50000:announce "LMS Event: Last 10 seconds.",0;end;OnTimer55000:announce "LMS Event: 5.",0;end;OnTimer56000:announce "LMS Event: 4.",0;end;OnTimer57000:announce "LMS Event: 3.",0;end;OnTimer58000:announce "LMS Event: 2.",0;end;OnTimer59000:announce "LMS Event: 1.",0;end;OnTimer60000:announce "LMS Event: Time's up.",0;end;OnTimer61000:disablenpc "All Job Manager";donpcevent "Mr. Banker::OnEnable";stopnpctimer;end;}//---------All Job Registration---------------poring_w02,104,75,4	script	All Job Manager	106,{OnTouch:if(BaseLevel < 998) goto leave;mes "[Mr. Manager]";mes "Hello What can I do for you?";if(BaseLevel >= 999){mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";warp "poring_c01",103,100;close;}else{mes "You have to be level 999.!";close;}what:mes "[Mr. Manager]";mes "LMS is also known as Last Man Standing Event";next;mes "[Mr. Manager]";mes "LMS is also like a PvP.";mes "The only difference is at LMS you will get 100 PvP Points if you are the Last Man Standing at the arena.";next;mes "[Mr. Manager]";mes "That's all";close;leave:mes "[Mr. Manager]";mes "I hope you will register next time";close;OnInit:	waitingroom "LMS",0;}//--------------------------//--------------------------poring_c01,103,107,4	script	Mr. Banker	56,{mes "[Banker]";mes "Congrats. You've won.";next;announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;set #CASHPOINTS, #CASHPOINTS + 100; // Change This item id to what ever you want . item id,amountdispbottom "+100 Cash Point";mes "You will return now";warp "poring_w02",99,70;disablenpc "Mr. Banker";close;end;OnEnable:pvpoff "z_agit";mapannounce "poring_c01","Mr. Manager:The Last Man Standing Event will start shortly",0;sleep2 10000;mapannounce "poring_c01","Mr. Manager:But before we start this is just a few reminders..",0;sleep2 10000;mapannounce "poring_c01","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;sleep2 10000;mapannounce "poring_c01","Mr. Manager: Only the Last Man Standing will win this event!!",0;sleep2 10000;mapannounce "poring_c01","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;sleep2 10000;goto L_Start;end;L_Start:if(getmapusers("poring_c01") == 1) goto L_Champ;if(getmapusers("poring_c01") == 0) goto L_None;if(getmapusers("poring_c01") > 1) {mapannounce "poring_c01","Mr. Manager: Get ready at the count of 5 we will start!....",0;sleep2 10000;mapannounce "poring_c01","Mr. Manager: 5",0;sleep2 5000;mapannounce "poring_c01","Mr. Manager: 4",0;sleep2 4000;mapannounce "poring_c01","Mr. Manager: 3",0;sleep2 3000;mapannounce "poring_c01","Mr. Manager: 2",0;sleep2 2000;mapannounce "poring_c01","Mr. Manager: 1",0;sleep2 1000;pvpon "poring_c01";goto timer;end;}timer:initnpctimer;end;OnTimer1000:end;OnTimer1100:if(getmapusers("poring_c01") == 1) goto L_Champ;if(getmapusers("poring_c01") > 2) goto timer;if(getmapusers("poring_c01") == 2) goto champ;stopnpctimer;end;champ:announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;sleep2 10000;if(getmapusers("poring_c01") == 1) goto L_Champ;if(getmapusers("poring_c01") > 1) goto timer;end;L_Champ:mapannounce "poring_c01","Mr. Banker: Please talk to me to get your prize..",0;pvpoff "poring_c01";enablenpc "Mr. Banker";end;L_None:disablenpc "Banker";pvpoff "poring_c01";end;}//----- Die = warp prt ------	script	Killa_warp	-1,{OnPCDieEvent:	getmapxy(.@map$,.@x,.@y,0);	if(.@map$=="poring_c01")	{		set #kill_point, 0;		announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;		warp "que_moon",34,16;		sleep2 1000;		atcommand "@alive";		end;	}OnPCKillEvent:	getmapxy(.@map$,.@x,.@y,0);	if(.@map$=="poring_c01")	{	set #kill_point,#kill_point+1;	if ( #kill_point % 4 == 0) {	getitem 607, 50;	end;	}	}}// == Mapflagsporing_c01	mapflag	nocommand	90poring_c01	mapflag	nowarpporing_c01	mapflag	nowarptoporing_c01	mapflag	noteleportporing_c01	mapflag	nosaveporing_c01	mapflag	nomemoporing_c01	mapflag	nobranchporing_c01	mapflag	pvp_noguildporing_c01	mapflag	pvp_noparty

  6. 10931223_727548137361672_6420678133096753455_n.jpg?oh=0675f93ff1e083c934c03c71ccb04d2d&oe=5588103F

     

    removed the final NPC ( The one who needs a guitar ) because I'm too lazy to code it.

    can anyone have that script code ?

     

     

    //=====================================================================//===========================eAthena Script============================//======================Made by: Juvia==========================//Admin of: Grace Ragnarok Online//Property of: Grace Ragnarok Online//Askydun Quest ver 1.3 : Added a whole server brodcast when a player completes the quest.//ver 1.2 = Fixed the timer bugs. (The NPC doesn't show when the timers are operating.)//ver 1.1 = Fixed the Duplicate NPC's times and position.//ver 1.0 = First Release.//======================Quest Description===============================//You'll need to get the approval of the 4 Guardians of Askydun to reach Askydun.//I removed the final NPC ( The one who needs a guitar ) because I'm too lazy to code it.//I replaced it with an item (9298). I use this item as proof that a player completed the quest.//PM me if you want to ask or add something.//======================================================================//NPCINITS-	script	askydun#disable	-1,{OnInit:disablenpc "1st Guardian";disablenpc "2nd Guardian";disablenpc "2nd Guardian#2-2";disablenpc "2nd Guardian#3-1";disablenpc "3rd Guardian";disablenpc "3rd Guardian#4-1";disablenpc "3rd Guardian#5-1";disablenpc "4th Guardian#6-1";disablenpc "4th Guardian";end;}//Askydun Timers-	script	askyduntimers	-1,{//1st Guardian's TimeOnClock0742:OnClock0300:OnClock1900:	enablenpc "1st Guardian";	end;OnClock0842:OnClock0400:OnClock2000:	disablenpc "1st Guardian";initnpctimer;	end;//2nd Guardian's Time (Hugel Field)OnClock0728:OnClock0100:	enablenpc "2nd Guardian#2-2";	end;OnClock0828:OnClock0200:	disablenpc "2nd Guardian#2-2";initnpctimer;	end;//2nd Guardian (Einbroch Field)OnClock1700:	enablenpc "2nd Guardian";	end;OnClock1800:	disablenpc "2nd Guardian";initnpctimer;	end;//2nd Guardian (Comodo Field)OnClock1033:	enablenpc "2nd Guardian#3-1";	end;OnClock1133:	disablenpc "2nd Guardian#3-1";initnpctimer;	end;//3rd Guardian (Yuno Field)OnClock2030:OnClock1400:	enablenpc "3rd Guardian";	end;OnClock2130:OnClock1500:	disablenpc "3rd Guardian";initnpctimer;	end;//3rd Guardian ( Einbroch Field 10 )OnClock2230:	enablenpc "3rd Guardian#4-1";	end;OnClock2330:	disablenpc "3rd Guardian#4-1";initnpctimer;	end;//3rd Guardian (Einbroch Field 04 )OnClock1630:	enablenpc "3rd Guardian#5-1";	end;OnClock1730:	disablenpc "3rd Guardian#5-1";initnpctimer;	end;//4th Guardian (Yuno Field)OnClock0600:	enablenpc "4th Guardian";	end;OnClock0700:	disablenpc "4th Guardian";initnpctimer;	end;//4th Guardian (Gonryun)OnClock2100:	enablenpc "4th Guardian#6-1";	end;OnClock2200:	disablenpc "4th Guardian#6-1";initnpctimer;	end;}// Askydun Guardian 1um_fild03,275,245,5	script	1st Guardian	405,{	if( askydun == 1 ) goto Laskydun1;	if( askydun == 2 ) goto Laskydun2;	if( askydun == 3 || askydun == 4 || askydun == 5|| askydun == 6|| askydun == 7|| askydun == 8 ) goto Laskydunjejeje;	if( askydun == 0 ) {	mes "[1st Guardian]";	mes "Hi adventurer! I am the first guardian of Askydun!";	next;	mes "[1st Guardian]";	mes "Do you want to go to Askydun?";	switch(select("I Want to go to Akydun!:No Thanks")) {	case 1:	next;	mes "[1st Guardian]";	mes "Okay! In order for me to allow you to go you must bring me:";	mes "15 Opals";	mes "15 Sapphires";	mes "15 Pearls";	set askydun,1;	next;	mes "[1st Guardian]";	mes "If you bring me that items, I will tell the 2nd guardian that you can take his quest!";	close;	case 2:	next;	mes "[1st Guardian]";	mes "Okay... Maybe next time";	close;	Laskydun1:	mes "[1st Guardian]";	mes "Did you bring all the items?";	menu "Here it is!",here1,"What do you need again?",again1;	here1:	if (countitem(726) > 14 && countitem(722) > 14 && countitem(727) > 14 ) {		next;		mes "[1st Guardian]";		mes "Good! You can now contact the 2nd guardian for you to start his quest";		next;		delitem 726,15;		delitem 722,15;		delitem 727,15;		set askydun,2;		mes "[1st Guardian]";		mes "Good luck!";		close;	}	next;	mes "[1st Guardian]";	mes "You still don't have all the items. Please give talk to me again once you have them all.";	close;	again1:	next;	mes "[1st Guardian]";	mes "Okay! In order for me to allow you to go you must bring me:";	mes "15 Opals";	mes "15 Sapphires";	mes "15 Pearls";	close;	Laskydun2:	mes "[1st Guardian]";	mes "You can now go find the 2nd guardian! You have passed my test!";	close;Laskydunjejeje:	mes "[1st Guardian]";	mes "I miss Askydun!";	close;}}}//Askydun Guardian 2ein_fild01,264,154,3	script	2nd Guardian	405,{		if( askydun == 2 ) goto Laskydun02;	if( askydun == 3 ) goto Laskydun3;	if( askydun == 4 ) goto Laskydun4;	if( askydun == 0 || askydun == 1 || askydun == 5|| askydun == 6|| askydun == 7|| askydun == 8 ) {	mes "[2nd Guardian]";	mes "Ahhh. I really want to go to Askydun again";	close;}Laskydun02:	mes "[2nd Guardian]";	mes "Hi I'm the 2nd Guardian of Askydun!";	next;	mes "[2nd guardian]";	mes "The 1st Guardian told me that you passed his test!";	next;	mes "[2nd Guardian]";	mes "So, do you want to take my test now?";	switch(select("Yeah! I'm ready!:Not now")) {	case 1:		next;		mes "[2nd Guardian]";		mes "Ok! If you want me to approve you to the third guardian, please bring me these items:";		mes "25 Red Potion";		mes "25 Yellow Potions";		mes "25 Orange Potions";		mes "25 White Potions";		mes "25 Blue Potions";		mes "25 Green Potions";		mes "5 Seeds of Life";		set askydun,3;		next;		mes "[2nd Guardian]";		mes "If you bring me all those items, you can continue with rest of the quest.";		close;	case 2:		next;		mes "[2nd Guardian]";		mes "Ok! maybe next time?";		close;	Laskydun3:		mes "[2nd Guardian]";		mes "Did you bring all the items?";		menu "Yes! Here it is",here2,"What do you need again?",again2;	here2:		if (countitem(501) > 24 && countitem(503) > 24 && countitem(502) > 24 && countitem(504) > 24 && countitem(505) > 24 && countitem(506) > 24 && countitem(7140) > 4 ) {		next;		mes "[2nd Guardian]";		mes "Good your a fast worker! I've already told the 3rd Guardian about you.";		delitem 501,25;		delitem 502,25;		delitem 503,25;		delitem 504,25;		delitem 505,25;		delitem 506,25;		delitem 7140,5;		set askydun,4;		next;		mes "[2nd Guardian]";		mes "You can now find the 3rd Guardian and continue with your quest!";		next;		mes "[2nd Guardian]";		mes "Good Luck!";		close;}		next;		mes "[2nd Guardian]";		mes "You don't have all the items I need. Please come back when you do have them all.";		close;				again2:		next;		mes "[2nd Guardian]";		mes "Ok! If you want me to approve you to the third guardian, please bring me this items:";		mes "25 Red Potion";		mes "25 Yellow Potions";		mes "25 Orange Potions";		mes "25 White Potions";		mes "25 Blue Potions";		mes "25 Green Potions";		mes "5 Seeds of Life";		close;Laskydun4:	mes "[2nd Guardian]";	mes "You can now continue your quest with the 3rd guardian. You have already passed my test";	close;}}//Duplicates (2nd Guardian)hu_fild06,103,283,5	duplicate(2nd Guardian)	2nd Guardian#2-2	405cmd_fild03,140,189,5	duplicate(2nd Guardian)	2nd Guardian#3-1	405//3rd Guardian of Askydunyuno_fild02,84,228,3	script	3rd Guardian	405,{	if( askydun == 4 ) goto Laskydun03;	if( askydun == 5 ) goto Laskydun5;	if( askydun == 6 ) goto Laskydun6;	if( askydun == 0 || askydun == 1 || askydun == 2|| askydun == 3|| askydun == 7|| askydun == 8 ) {	mes "[3rd Guardian]";	mes "Men! I really want to get back to Askydun soon!";	close;}	Laskydun03:	mes "[3rd Guardian]";	mes "Hey you're here! I heard from the 1st and 2nd Guardian that you are good!";	mes "Are you ready to take my test?";	switch(select("Yes! Bring it on!:No, I'm not ready yet")) {	case 1:		next;		mes "[3rd Guardian]";		mes "Okay! We'll do it as you did in the first two Guardians!";		next;		mes "[3rd Guardian]";		mes "I need these items. Once you bring all of them to me, You can continue your quest to find 4th and final guardian;";		next;		mes "[3rd Guardian]";		mes "Here are the items that I require";		mes "100 Sticky Mucuses";		mes "100 Large Jellopies";		mes "100 Jellopies";		set askydun,5;		next;		mes "[3rd Guardian]";		mes "If you bring all of those items to me, You can now do the quest of the 4th guardian!";		next;		mes "[3rd Guardian]";		mes "Good luck on finding all of them!";		close;	case 2:		next;		mes "[3rd Guardian]";		mes "Okay! See you next time!";		close;Laskydun5:		mes "[3rd Guardian]";		mes "Did you got all the items already?";		menu "Yes! Here it is",here3,"What do you need again?",again3;here3:	if( countitem(938) > 99 && countitem(7126) > 99 && countitem(909) > 99 ) {	next;	mes "[3rd Guardian]";	mes "Nice! You work perfect! You can now go look for the final guardian!";	delitem 938,100;	delitem 7126,100;	delitem 909,100;	set askydun,6;	next;	mes "[3rd Guardian]";	mes "Good luck! We might see each other again in Askydun!";	close;}	next;	mes "[3rd Guardian]";	mes "You still don't have the items that I require! Please come back when you do have them all!";	close;again3:	next;		mes "[3rd Guardian]";		mes "Here are the items that I require";		mes "100 Sticky Mucuses";		mes "100 Large Jellopies";		mes "100 Jellopies";		close;Laskydun6:	mes "[3rd Guardian]";	mes "Hurry! It's just a little time before you reach Askydun!";	close;}}//Duplicates (Guardian 4)ein_fild10,271,56,3	duplicate(3rd Guardian)	3rd Guardian#4-1	405ein_fild04,362,93,0	duplicate(3rd Guardian)	3rd Guardian#5-1	405//4th Guardian of Askydunyuno_fild08,164,190,5	script	4th Guardian	405,{	if( askydun == 6 ) goto Laskydun04;	if( askydun == 7 ) goto Laskydun7;	if( askydun == 8 ) goto Laskydun8;	if( askydun == 0 || askydun == 1 || askydun == 2|| askydun == 3|| askydun == 4|| askydun == 5 ) {	mes "[4th Guardian]";	mes "Hi! Nice weather today isn't it?";	close;}Laskydun04:	mes "[4th Guardian]";	mes "Hi! I am the fourth and final guardian!";	next;	mes "[4th Guardian]";	mes "Are you ready to take your final quest from the guardians?";	switch(select("Yes! Let's go!:Wait I'm not ready yet!")) {	case 1:		next;		mes "[4th Guardian]";		mes "Okay I know you're in a rush so I'll tell you what I need right away";		next;		mes "[4th Guardian]";		mes "I need these items:";		mes "1 Chepet Card";		mes "1 Zealotus Card";		mes "1 Toad Card";		mes "1 Harpy Card";		mes "1 Alice Card";		mes "1 Wanderer Card";		set askydun,7;		next;		mes "[4th Guardian]";		mes "If you bring me all of that items, you can now go in and out of Askydun. Good Luck in your final test!";		close;	case 2:		next;		mes "[4th Guardian]";		mes "Okay! Get ready and talk to me!";		close;Laskydun7:		mes "[4th Guardian]";		mes "Did you got all the items already?";		menu "Yes! Here it is",here4,"What do you need again?",again4;here4:if (countitem(4277) > 0 && countitem(4284) > 0 && countitem(4306) > 0 && countitem(4325) > 0 && countitem(4253) > 0 && countitem(4210) > 0 ) {next;mes "[4th Guardian]";mes "Very good! Now you're quest is done! Here take this ring!";delitem 4277,1;delitem 4284,1;delitem 4306,1;delitem 4325,1;delitem 4253,1;delitem 4210,1;set askydun,8;next;getitem 9298,1;mes "[4th Guardian]";mes "That ring will take you to Askydun";next;mes "[4th Guardian]";mes "Good job Kid";announce ""+strcharinfo(0)+" have recently finished the Askydun Quest !!",0;close;}next;mes "[4th Guardian]";mes "You don't have all the items, please come back when you have them all.";close;again4:next;		mes "[4th Guardian]";		mes "I need these items:";		mes "1 Chepet Card";		mes "1 Zealotus Card";		mes "1 Toad Card";		mes "1 Harpy Card";		mes "1 Alice Card";		mes "1 Wanderer Card";		close;Laskydun8:	mes "[4th Guardian]";	mes "Good job!";	close;}}//Duplicatesgon_fild01,301,293,3	duplicate(4th Guardian)	4th Guardian#6-1	405
×
×
  • Create New...

Important Information

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