2011-08-04 15:22:25 -06:00
|
|
|
if not(FILE) then
|
2011-08-20 15:15:40 -06:00
|
|
|
--sanity test
|
|
|
|
--print("race num:"..engine.peekw(offsets.getEx("CurrentRace")))
|
|
|
|
--print(string.format("%x vs %x",offsets.getEx("CurrentRace"),VersionInfo.getGroup("Creatures"):getAddress("current_race")))
|
|
|
|
add_race=VersionInfo.getGroup("Creatures"):getAddress("current_race")
|
|
|
|
print("Race num:"..engine.peekw(add_race))
|
|
|
|
print("Your current race is:"..GetRaceToken(engine.peekw(add_race)))
|
|
|
|
print("If this is wrong please type 'q'")
|
|
|
|
if(io.stdin:read()=='q') then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2011-08-04 15:22:25 -06:00
|
|
|
end
|
2011-08-20 15:15:40 -06:00
|
|
|
|
2011-08-04 15:22:25 -06:00
|
|
|
if not(FILE) then
|
|
|
|
names=ParseNames("dfusion/friendship/races.txt")--io.open("plugins/friendship/races.txt"):lines()
|
|
|
|
friendship_in.install(names)
|
|
|
|
friendship_in.patch()
|
2011-08-20 15:15:40 -06:00
|
|
|
end
|