Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #002962

  • 0 - None Assigned

  • Working as Intended

Issue Confirmations

  • Yes (0)No (0)
Photo

No items taken/given on Bard Job Quest

Posted by Hercules Bot on 12 April 2009 - 10:52 AM

Originally posted by akd
http://www.eathena.w...er&showbug=2962

Hi everyone,

Here is a bug I saw on the Bard Quest:

variables are cleaned before the end of the quest:

Call block:
CODE
if(countitem(1019) > 59) callsub S_ChangeJob,1019,1901;
        else if(countitem(1068) > 59) callsub S_ChangeJob,1068,1903;
        else if(countitem(1067) > 59) callsub S_ChangeJob,1067,1903;
        else if(countitem(1066) > 59) {
            if(JobLevel > 49) callsub S_ChangeJob,1066,1910;
            else callsub S_ChangeJob,1066,1905;
        }


Block in error:
CODE
S_ChangeJob:
        callfunc "Job_Change",Job_Bard;
        callfunc "F_ClearJobVar";
        mes "[Lalo]";
        mes "Good job. I will make you a job change souvenir with this.";
        mes "Wait just a moment.";
        next;
        mes "[Lalo]";
        mes "^3355FFScrape Scrape Tang Tang^000000";
        mes "^3355FFSqueak Squeak Scratch Scratch^000000";
        delitem getarg(0),60;
        getitem getarg(1),1;
        next;


callfunc "F_ClearJobVar"; must be AFTER delitem/getitem block.

I modified this way on my server:
CODE
S_ChangeJob:
        
        mes "[Lalo]";
        mes "Good job. I will make you a job change souvenir with this.";
        mes "Wait just a moment.";
        next;
        mes "[Lalo]";
        callfunc "Job_Change",Job_Bard;
        mes "^3355FFScrape Scrape Tang Tang^000000";
        mes "^3355FFSqueak Squeak Scratch Scratch^000000";
        delitem getarg(0),60;
        getitem getarg(1),1;
        callfunc "F_ClearJobVar";
        next;


It should work better  (IMG:style_emoticons/default/halfsmile.gif)