It is currently 26 Apr 2024, 17:21
   
Text Size

quick question

Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

quick question

Postby jatill » 13 Mar 2009, 18:45

Does anyone know how to tell if a card is a creature, once you have it's id and owner as params?
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: quick question

Postby HarryPitfall » 13 Mar 2009, 23:07

I don't know exactly, but I firmly believe that this code uses cardtype on magic.exe... is from scion of oona... i use the same piece of code on Spidersilk Armor, and works (only give reach to creatures)

004DF6FF A1848C7300 mov eax, [$738c84]
004DF704 8B0D8C397A00 mov ecx, [$7a398c]
004DF70A E83123F2FF call -$ddccf ($401a40)
004DF70F 7566 jnz +$66 ($4df777)
004DF711 8B466C mov eax, [esi+$6c]
004DF714 C1E003 shl eax, 3
004DF717 8A8CC038707E00 mov cl, [eax+eax*8+$7e7038]
004DF71E F6C102 test cl, 2 <- 2 is creature in Card Type inside Magic.exe
004DF721 7454 jz +$54 ($4df777)
HarryPitfall
AI Programmer
 
Posts: 175
Joined: 31 May 2008, 00:14
Has thanked: 1 time
Been thanked: 3 times

Re: quick question

Postby jatill » 14 Mar 2009, 01:27

thanks!
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times


Return to Development

Who is online

Users browsing this forum: No registered users and 37 guests


Who is online

In total there are 37 users online :: 0 registered, 0 hidden and 37 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 37 guests

Login Form