• 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!

[source] new element

knightxd

Member
Joined
Feb 21, 2009
Messages
211
Reaction score
16
Location
Rio de Janeiro
how can i add a new element to the sources?

a new elementpercent protection and attack tipe, like this ones:

Code:
COMBAT_PHYSICALDAMAGE
COMBAT_ICEDAMAGE
COMBAT_FIREDAMAGE
COMBAT_HOLYDAMAGE

how can i add one like water..?

Code:
COMBAT_WATERDAMAGE
how can i program it on sources or script it?

and also one element protection like this ones

Code:
<element firePercent="-100"/>
                <element physicalPercent="0"/>
                <element earthPercent="-50"/>
                <element energyPercent="-50"/>
                <element deathPercent="5"/>
                <element icePercent="-5"/>
                <element holyPercent="-5"/>
		<element drownPercent="50"/>

how can i make the "water" protection, like this one..

Code:
<element waterPercent="-50"/>

thanks:thumbup:

EDIT: aaah and also, is ther any way to get the forgotten source from the distro? any program or stuff that i can do to stract the sources from the compiled distro??
 
Last edited:
i know, but i need to add up to 5 damage types, i asked for one just to learn how to make it, but i need more of them...

Tauku, how can i define the function?

it can't be edited from sources?
 
it must be edited from the sources if you want to add another element to the game.

yes, i know that, its on the thread name, but where do i need to add it? just on combat.cpp?

like one of this:


Code:
case CONDITION_POISON:
			return COMBAT_EARTHDAMAGE;

its just use:

Code:
case CONDITION_WATER:
			return COMBAT_WATERDAMAGE;

or theres more? any ideas how can i make it?
 
Last edited:
Back
Top