Page 1 of 1

swamp quest, no xp

Posted: 26 Dec 2020, 19:12
by poppet

I did the swamp quest last night with hello and led. got to the chest, opened chest, bad guy spawned killed me, got the lense, but no xp. not a happy camper :(. also it took 1000 keys. then i went back and did again, as i spawned to the swamp i got 100000 xp or around that much, went away to fast for me to tell for sure. opened chest again, and got the prize and some more xp.


Re: swamp quest, no xp

Posted: 27 Dec 2020, 08:56
by Cage

This could be fixed by changing the order in which the exp and the item are obtained, right now it gives you the item, then shows a message, and then gives you the exp, we could fix it by giving the exp and the item at the same time, and then showing the message.

This:

Code: Select all

L_FlawedLens:
    getitem "FlawedLens", 1;
    mes "[Chest]";
    mes "You opened it and found...! Some flawed lens?! Meh.";
    getexp 20000000, 0;
    set FLAGS, FLAGS | FLAG_KESHLAM_FLAWEDLENS;
    next;
    mes "[Chest]";
    mes "You notice this chest has a hidden section with another lock.";
    mes "You might want try that again later.";
    close;

To this:

Code: Select all

L_FlawedLens:
    getitem "FlawedLens", 1;
    getexp 20000000, 0;
    set FLAGS, FLAGS | FLAG_KESHLAM_FLAWEDLENS;
    mes "[Chest]";
    mes "You opened it and found...! Some flawed lens?! Meh.";
    next;
    mes "[Chest]";
    mes "You notice this chest has a hidden section with another lock.";
    mes "You might want try that again later.";
    close;

Re: swamp quest, no xp

Posted: 13 Jan 2021, 22:17
by poppet

I was just wondering if I am ever going to get that 20 mil xp. now if the game was coded to be like that then I would like to know. it has put a kinda dampening on my playing time. it took a long time to collect,, a lot of begging, and borrowing to get those keys. I would hate to think it was all for nothing.
I also understand it was the holidays when this took place. please let me know so I can stop harping on it.


Re: swamp quest, no xp

Posted: 14 Jan 2021, 04:09
by jesusalva

I asked you to remember me that TMWA allows script execution when player is dead (a rotten default but hey, 'tis is TMWA) so I need to add extra checks >__>

(EDIT: By the way, did you got the item? I mean, this is TMWA, it has an "undefined behavior", so I must ask before deciding how to best proceed)

PS. Code fixed in commit f3f4157f
This bug will not happen again (hopefully...)


Re: swamp quest, no xp

Posted: 14 Jan 2021, 05:47
by jesusalva

(Either that or TMWA will explode as usual)


Re: swamp quest, no xp

Posted: 14 Jan 2021, 14:11
by poppet

yes i did get some item, cant remember what it was. oh yeah, it was the magic ring , but that was at the second opening. first opening I got a broken lense and death. I was given a amulet, and I gave them the magic ring. so all I need now is the xp from first opening.