swamp quest, no xp

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
poppet
Peon
Peon
Posts: 11
Joined: 13 Dec 2020, 19:43

swamp quest, no xp

Post 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.

User avatar
Cage
Peon
Peon
Posts: 31
Joined: 19 Oct 2019, 08:51

Re: swamp quest, no xp

Post 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;
poppet
Peon
Peon
Posts: 11
Joined: 13 Dec 2020, 19:43

Re: swamp quest, no xp

Post 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.

User avatar
jesusalva
Administrator
Administrator
Posts: 627
Joined: 14 Nov 2016, 23:20
Location: Brazil
Contact:

Re: swamp quest, no xp

Post 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...)

Last edited by jesusalva on 14 Jan 2021, 06:47, edited 1 time in total.
Reason: Code Fixed
Jesusalva (aka. Jesusaves)
User avatar
jesusalva
Administrator
Administrator
Posts: 627
Joined: 14 Nov 2016, 23:20
Location: Brazil
Contact:

Re: swamp quest, no xp

Post by jesusalva »

(Either that or TMWA will explode as usual)

Jesusalva (aka. Jesusaves)
poppet
Peon
Peon
Posts: 11
Joined: 13 Dec 2020, 19:43

Re: swamp quest, no xp

Post 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.

Post Reply