• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Monster Monsters Samples

TFS 1.0 races
Code:
if ((attr = monsterNode.attribute("race"))) {
        std::string tmpStrValue = asLowerCaseString(attr.as_string());
        uint16_t tmpInt = pugi::cast<uint16_t>(attr.value());
        if (tmpStrValue == "venom" || tmpInt == 1) {
            mType->race = RACE_VENOM;
        } else if (tmpStrValue == "blood" || tmpInt == 2) {
            mType->race = RACE_BLOOD;
        } else if (tmpStrValue == "undead" || tmpInt == 3) {
            mType->race = RACE_UNDEAD;
        } else if (tmpStrValue == "fire" || tmpInt == 4) {
            mType->race = RACE_FIRE;
        } else if (tmpStrValue == "energy" || tmpInt == 5) {
            mType->race = RACE_ENERGY;
        } else {
            std::cout << "[Warning - Monsters::loadMonster] Unknown race type " << attr.as_string() << ". " << file << std::endl;
        }
    }
But you can make custom races fairly easily in LUA
Code:
--________________--
--- MONSTER RACES --
--================--
monsterRaces = {
["white deer"] = "beast",
["deer"] = "beast",
["rabbit"] = "beast",
["bear"] = "beast",
["dummy"] = "undead",
["wolf"] = "beast",
["boar"] = "beast",
["squirrel"] = "beast",
["bandit mage"] = "human",
["bandit knight"] = "human",
["bandit druid"] = "human",
["bandit hunter"] = "human",
["training pole"] = "object",
["archanos"] = "human",
["cyclops"] = "human",
["big daddy"] = "human",
}
 
i know its a lttle old post but i wish to know about monster race=? plix if anyone have a list of monster races it will be awesome
It's about what liquid drop from hits and corpses.
blood = blood / poison = slime / fire / undead / energy
 
TFS 1.0 races
Code:
if ((attr = monsterNode.attribute("race"))) {
        std::string tmpStrValue = asLowerCaseString(attr.as_string());
        uint16_t tmpInt = pugi::cast<uint16_t>(attr.value());
        if (tmpStrValue == "venom" || tmpInt == 1) {
            mType->race = RACE_VENOM;
        } else if (tmpStrValue == "blood" || tmpInt == 2) {
            mType->race = RACE_BLOOD;
        } else if (tmpStrValue == "undead" || tmpInt == 3) {
            mType->race = RACE_UNDEAD;
        } else if (tmpStrValue == "fire" || tmpInt == 4) {
            mType->race = RACE_FIRE;
        } else if (tmpStrValue == "energy" || tmpInt == 5) {
            mType->race = RACE_ENERGY;
        } else {
            std::cout << "[Warning - Monsters::loadMonster] Unknown race type " << attr.as_string() << ". " << file << std::endl;
        }
    }
But you can make custom races fairly easily in LUA
Code:
--________________--
--- MONSTER RACES --
--================--
monsterRaces = {
["white deer"] = "beast",
["deer"] = "beast",
["rabbit"] = "beast",
["bear"] = "beast",
["dummy"] = "undead",
["wolf"] = "beast",
["boar"] = "beast",
["squirrel"] = "beast",
["bandit mage"] = "human",
["bandit knight"] = "human",
["bandit druid"] = "human",
["bandit hunter"] = "human",
["training pole"] = "object",
["archanos"] = "human",
["cyclops"] = "human",
["big daddy"] = "human",
}
how use this?
human to get the fuild blood
monsters of venom get the fuild venom
 
RACE_NONE, RACE_VENOM, RACE_BLOOD, RACE_UNDEAD, RACE_FIRE, RACE_ENERGY
#edit:
Sorry, but my browser didn't show up more posts so I didn't know that someone else answered question about races :/.
 
how use this?
human to get the fuild blood
monsters of venom get the fuild venom
ah, im not using races for fluid type, im using them for monster passives and formulas:
example:
for each beast type monster around the caster: he gets bonus: damage increases, heal increases.

I have monster AI now, where caster unlocks more spells, when specific amount of races or different races are around him.
 
ah, im not using races for fluid type, im using them for monster passives and formulas:
example:
for each beast type monster around the caster: he gets bonus: damage increases, heal increases.

I have monster AI now, where caster unlocks more spells, when specific amount of races or different races are around him.
yaaa, nice, congrats for you for this alot of work
RACE_NONE, RACE_VENOM, RACE_BLOOD, RACE_UNDEAD, RACE_FIRE, RACE_ENERGY
#edit:
Sorry, but my browser didn't show up more posts so I didn't know that someone else answered question about races :/.
thanks for answer, but my ask was about the
Code:
--________________--
--- MONSTER RACES --
--================--
monsterRaces = {
["white deer"] = "beast",
["deer"] = "beast",
["rabbit"] = "beast",
["bear"] = "beast",
["dummy"] = "undead",
["wolf"] = "beast",
["boar"] = "beast",
["squirrel"] = "beast",
["bandit mage"] = "human",
["bandit knight"] = "human",
["bandit druid"] = "human",
["bandit hunter"] = "human",
["training pole"] = "object",
["archanos"] = "human",
["cyclops"] = "human",
["big daddy"] = "human",
}
i'm interesting in this xd
 
I want to say Thanks for all your help on OT Land it is people like you that makes me come back.
Can you elaborate on all the parts:
Mostly on
<elements>
<element firePercent="0"/>
<element energyPercent="0"/>
</elements>
<immunities>
<immunity earth="0"/>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
what are the prams for these, I see you set to 0. I have an error and would be nice to know why

My Error:
[Warning - Monsters::loadMonster] Unknown element percent.

My Script:
<elements>
<element physicalPercent="5"/>
<element energyPercent="20"/>
<element holyPercent="10"/>
<element earth="-10"/>
<element death="-15"/>
</elements>
 
Opening post last updated 2013. I assume a lot has been added since then. Is there an updated compilation of this info somewhere?
 
is their a way to have like elves as allies and work with you. against like orcs
Post automatically merged:

Is their a way to make monsters, like elves be your allies, fallow you on the attack of orc stonghold
 
Last edited:
Back
Top