Issue information

Issue ID
#2922
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 29, 2009 18:43
Last Post
Hercules Elf Bot
Mar 5, 2012 13:03
Confirmation
N/A

Hercules Elf Bot - Mar 29, 2009 18:43

Originally posted by [b]Maverrick[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2922

Pk we have a missing set Variable i will post the original script and afte rthis the fix.

CODE
//----------------------------------------------------------------------------
// Swamp
//----------------------------------------------------------------------------
mosk_dun03,153,90,3    script    Bubbling Swamp#mos1    844,{
    if (checkweight(1201,1) == 0) {
        mes "- Your bag is very heavy today -";
        close;
    }
    if ((MaxWeight-Weight) < 2000) {
        mes "- Your bag is very heavy today -";
        close;
    }
    if (mos_swan == 10) {
        mes "- You feel sticky just looking at this swamp. -";
        next;
        mes "- Gas bubbles are rising. The atomosphere here is pretty scary -";
        next;
        mes "["+PcName+"]";
        mes "I don't see any traces of Mikhail. I think I should go back and check his house one more time.";
        set mos_swan,11;
        close;
    }
    else if (mos_swan == 11 && mos_swan == 12) {
        mes "- You can see a small muddy swamp -";
        next;
        mes "- Gas bubbles are rising. The atmosphere here is pretty scary -";
        close;
    }
    else if (mos_swan > 12 && mos_swan < 23) {
        mes "- You feel sticky just looking at the swamp. -";
        next;
        mes "- Gas bubbles are rising. The atmosphere here is pretty scary -";
        next;
        mes "- You stretch out to find sticky herbs. -";
        next;
        set .@leaf_mos,rand(1,10);
        if (.@leaf_mos < 6) {
            mes "- You have pricked your finger on a Sticky Herb. -";
            if (mos_swan == 22) {
                getitem 7763,1;
                set mos_swan,23;
                close;
            }else{
                getitem 7763,1;
                                                                                // <----- Here Should be a set mos_swan,mos_swan+1; //
                close;
            }
        }else{
            mes "- You have pricked your finger on a Green Herb. -";
            getitem 511,1;
            close;
        }
    }
    else {
        mes "- You can see a small swamp which seems very muddy. -";
        next;
        mes "- Gas bubbles are rising. The atmosphere here is pretty scary -";
        close;
    }
}


The set mos_swan,mos_swan+1; is need to get up to the mos_swan variable 22 to use the

CODE
    
        if (mos_swan == 22) {
        getitem 7763,1;
        set mos_swan,23;
                close;
}


when i try without the set +1 come back to Victor he say me every time that i need to collect the 10 sticky herbs btw its named Prickel on another Server i dont know exactly where sry but it can come to missunderstandings.

so here is the fix



CODE
//----------------------------------------------------------------------------
// Swamp
//----------------------------------------------------------------------------
mosk_dun03,153,90,3    script    Bubbling Swamp#mos1    844,{
    if (checkweight(1201,1) == 0) {
        mes "- Your bag is very heavy today -";
        close;
    }
    if ((MaxWeight-Weight) < 2000) {
        mes "- Your bag is very heavy today -";
        close;
    }
    if (mos_swan == 10) {
        mes "- You feel sticky just looking at this swamp. -";
        next;
        mes "- Gas bubbles are rising. The atomosphere here is pretty scary -";
        next;
        mes "["+PcName+"]";
        mes "I don't see any traces of Mikhail. I think I should go back and check his house one more time.";
        set mos_swan,11;
        close;
    }
    else if (mos_swan == 11 && mos_swan == 12) {
        mes "- You can see a small muddy swamp -";
        next;
        mes "- Gas bubbles are rising. The atmosphere here is pretty scary -";
        close;
    }
    else if (mos_swan > 12 && mos_swan < 23) {
        mes "- You feel sticky just looking at the swamp. -";
        next;
        mes "- Gas bubbles are rising. The atmosphere here is pretty scary -";
        next;
        mes "- You stretch out to find sticky herbs. -";
        next;
        set .@leaf_mos,rand(1,10);
        if (.@leaf_mos < 6) {
            mes "- You have pricked your finger on a Sticky Herb. -";
            if (mos_swan == 22) {
                getitem 7763,1;
                set mos_swan,23;
                close;
            }else{
                getitem 7763,1;
                set mos_swan,mos_swan+1;
                close;
            }
        }else{
            mes "- You have pricked your finger on a Green Herb. -";
            getitem 511,1;
            close;
        }
    }
    else {
        mes "- You can see a small swamp which seems very muddy. -";
        next;
        mes "- Gas bubbles are rising. The atmosphere here is pretty scary -";
        close;
    }
}