Skip to content

Cursed Treasure: Level Pack!

-migrated-

This discussion is linked to Cursed Treasure: Level Pack!. View game

28 posts

Cursed Treasure: Level Pack!

Posted May 6, 2011 1:23 pm

[aob:jz2cgzxb]Upgrade Cost 0
d0 30 24 00 d5 10 ?? 00 00 09 60 95 07 66 c4 0f
24 00 48 00 d5 10 ?? 00 00 09 60 95 07 66 c4 0f[/aob:jz2cgzxb]

[aob:jz2cgzxb]Spells don't subtract mana when you use them
d0 30 24 00 d6 10 ?? 00 00 09 d0 60 25 66 aa 0e
24 00 48 00 d6 10 ?? 00 00 09 d0 60 25 66 aa 0e[/aob:jz2cgzxb]

[aob:jz2cgzxb]Set mana to max mana
d0 30 d0 66 a7 01 48
d0 30 d0 66 a8 01 48[/aob:jz2cgzxb]

[aob:jz2cgzxb]Buying towers adds gold
d0 d0 66 db 01 62 08 a1 68 db 01
d0 d0 66 db 01 62 08 a0 68 db 01[/aob:jz2cgzxb]

[aob:jz2cgzxb]Towers gain XP very quickly (2 results)
d0 d0 66 b7 03 60 95 07 66 ad 0f
d0 d0 66 b7 03 02 02 02 02 24 70[/aob:jz2cgzxb]

[aob:jz2cgzxb]Gems will never count as being touched even if they are
26 61 c2 0f
27 61 c2 0f[/aob:jz2cgzxb]

Re: Cursed Treasure: Level Pack!

Posted May 6, 2011 3:24 pm

I'd appreciate some critique of how I did this AOB.  Still trying to learn, not sure if the way I did it is best:

EDIT: New AOB for upgrading towers

[aob:2fkmyi0f]Buying talents increases available skill points

a1 d0 66 9d 03 (2 results)
a0 d0 66 9d 03

a1 68 a9 03
a0 68 a9 03

Can always upgrade towers, regardless of tower XP:

66 d6 05 a1 48
66 d6 05 a0 48[/aob:2fkmyi0f]

Basically, I found this:

Code: [Select]

public function updatePoints() : void
        {
            var _loc_2:TalentType = null;
            var _loc_3:* = undefined;
            var _loc_1:* = (this.m_level - 1) * TALENTS_PER_LEVEL;
            this.spentPoints[SideType.ORCS] = 0;
            this.spentPoints[SideType.UNDEADS] = 0;
            this.spentPoints[SideType.DEMONS] = 0;
            for (_loc_3 in this.talents)
            {
               
                _loc_2 = _loc_3 as TalentType;
                this.spentPoints[_loc_2.side] = this.spentPoints[_loc_2.side] + (this.talents[_loc_2] as int);
            }
            this.m_freePoints = _loc_1 - this.spentPoints[SideType.ORCS] - this.spentPoints[SideType.UNDEADS] - this.spentPoints[SideType.DEMONS];
            return;
        }// end function

Which lead to these sections of bytecode:

Code: [Select]

//a1
_as3_subtract
//d0
_as3_getlocal <0>
//66 9d 03


//a1
_as3_subtract
//d0
_as3_getlocal <0>
//66 9d 03

/a1
_as3_subtract
//68 a9 03
_as3_initproperty Profile::m_freePoints
//47

And then I just changed it from subtract to add.
Thoughts?

Re: Cursed Treasure: Level Pack!

Posted May 6, 2011 4:30 pm
Quote from: "zhaoli"
I'd appreciate some critique of how I did this AOB. Still trying to learn, not sure if the way I did it is best

personally, I would have just gone with this

d0 66 9d 03 60 35 66 ?? ?? 66 cd 13 a1
d0 66 9d 03 60 35 66 ?? ?? 66 cd 13 a0

no real reason other than I hate 2 part a0bs.
ostensibly, this would work as well, but its not quite the same
d0 d1 d0 66 9d 03 ?? ?? ?? ?? ??
d0 d1 d0 66 a9 03 a0 68 a9 03 47
this throws away all that nonsense about spent points and just adds loc1 to your available points each time.

but honestly with this game you dont really need to add since everything just costs 1.
so you could do this instead
d0 d1 d0 66 9d 03 ?? ??
d0 d1 d1 a0 68 a9 03 47
double your level points and just let that be your available points all the time.


whenever you make a 2 part AoB always ask yourself if theres a way to do it with only 1. it really doesnt matter though I suppose. good job man.

I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"

Re: Cursed Treasure: Level Pack!

Posted May 6, 2011 5:28 pm

Cool, thanks for the input.  I'm still trying to wrap my head around the syntax, but I'm slowly getting it.  (broken image removed)

Also, apparently the AOB tags interact poorly with quotes.  (broken image removed)

Re: Cursed Treasure: Level Pack!

Posted May 7, 2011 4:55 pm

Some useful AoB's I would appreciate:
1) Always be able to send in next wave, or
2) Kill one enemy to clear level

Nobody knows of anywhere that I could attempt to make my own level, do they. A level editor as it were. That would be pretty sweet.

Re: Cursed Treasure: Level Pack!

Posted May 8, 2011 6:58 pm

Legit .sol:
[attachment=0:1pp9ozv0]IriySoftCursedTreasure_1_90_3.sol[/attachment:1pp9ozv0]
100% complete legit sol, all skills unlocked, all 15 levels brilliant, all 21 achievements.

Re: Cursed Treasure: Level Pack!

Posted May 8, 2011 8:46 pm

Multiplys available skill
a1 d0 66 9d 03
a3 d0 66 9d 03

This post was imported from an account that no longer exists!
Previous Name: Simple_AOB

Re: Cursed Treasure: Level Pack!

Posted May 11, 2011 10:28 pm

I don't know if it's just me, but AOB's dont work.
Mana is 4b*1, gold and skill points too. (You have to do Mana and Gold every level)

Re: Cursed Treasure: Level Pack!

Posted May 12, 2011 12:28 am
Quote from: "Haxorzinn"
I don't know if it's just me, but AOB's dont work.
Mana is 4b*1, gold and skill points too. (You have to do Mana and Gold every level)

There was an update. As usual, references to variables change, so most AoBs stop working when there is an update. There will be updates in time. Oh... and badges!
[badges=http://www.kongregate.com/games/IriySoft/cursed-treasure-level-pack:1lplw5or]12837912375901[/badges:1lplw5or]

Re: Cursed Treasure: Level Pack!

Posted May 12, 2011 11:45 am

When you pros update AoBs, please make a super rapid attack or extremely strong attack AoB, that last level is very hard to beat without a gem being taken.

Re: Cursed Treasure: Level Pack!

Posted May 12, 2011 3:14 pm

I would help with the update process... but I honestly don't see a point.

Instant Death
61 ?? ?? d0 66 ?? ?? 24 00 0d ?? ?? ??
61 ?? ?? d0 66 ?? ?? 24 00 29 29 02 02

Re: Cursed Treasure: Level Pack!

Posted May 12, 2011 3:34 pm

Always max MP:
d1 d0 66 a9 01 0e 06 00 00
d1 d0 66 a9 01 0e 00 00 00

Buying don't decrease money:
66 db 01 62 08 a1 68 db 01
66 db 01 24 00 a1 68 db 01

Too lazy to make other stuff.

Mana:
Level State, line ~149

Code: [Select]

           if (param1 > this.m_maxMana)
            {
                param1 = this.m_maxMana;
            }
Removed if statement.

Gold:
Level State, line 2155

Code: [Select]

this.gold = this.gold - _loc_8;Changed _loc_8 to 0.