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

CreatureEvent Addon "Bonus System"

@chojrak: that seems to be unstable
when i wore the mage outfit my mlevel raised by two, but when I changed the outfit, my Maglvl didn't get as it was before

Code:
default
name
override
access
quest
storageId
storageValue
premium
addons
name
requirement
    none
    first
    second
    any
    both
manaShield
invisible
healthGain
healthTicks
manaGain
manaTicks
speed
reflect
    percentAll
    percentElements
    percentMagic
    percentEnergy
    percentEnergy
    percentFire
    percentPoison
    percentEarth
    percentIce
    percentHoly
    percentDeath
    percentLifeDrain
    percentManaDrain
    percentDrown
    percentPhysical
    percentHealing
    percentUndefined
    chanceAll
    chanceElements
    chanceMagic
    chanceEnergy
    chanceFire
    chanceFire
    chancePoison
    chanceIce
    chanceHoly
    chanceDeath
    chanceLifeDrain
    chanceManaDrain
    chanceDrown
    chancePhysical
    chanceHealing
    chanceUndefined
absorb
    percentAll
    percentElements
    percentMagic
    percentEnergy
    percentFire
    percentPoison
    percentEarth
    percentIce
    percentHoly
    percentDeath
    percentLifeDrain
    percentManaDrain
    percentDrown
    percentPhysical
    percentHealing
    percentUndefined
Skills
    fist
    club
    axe
    sword
    distance
    shielding
    fishing
    melee
    weapon
    fistPercent
    clubPercent
    swordPercent
    axePercent
    distancePercent
    shieldingPercent
    fishingPercent
    meleePercent
    weapon percent
stats
    maxHealth
    maxMana
    soul
    level
    magLevel
    maxHealthPercent
    maxManaPercent
    soulPercent
    levelPercent
    magLevelPercent 
suppress
    poison
    fire
    energy
    physical
    haste
    paralyze
    outfit
    invisible
    light
    manaShield
    infight
    drunk
    exhaust
    regeneration
    soul
    drown 
    muted
    attributes
    dazzled
    cursed
    pacified
    gamemaster
 
@Cyber:
No idea why, for me it works properly. [0.3.6pl1]
 
#Chojrak#
1. Thanks for info
2. I just don't know all TFS potential...
3. I'am not an idiot xS

4. Sorry 'for my english' :p
 
Lol this is bugging your characters, you can gain as much hp as you want on 0.4

EDIT: Ohh thanks Chojrak I just read it now :) thanks alot it works.
 
Last edited:
#klekSu#
1. It was tested on 0.3.6pl1...
2. It don't work correct for players with acces 3 or higher...

PS: Read thread before posting

#soul4soul#
Thanks
 
Last edited:
oh well thats good to know haha
hellboy thats for your work too
 
I tested it when you realesed, but the bug to gain as much HP as you want changing your outfit to another, and then other that add more, and then relog, it continous.

It should have a function that check player maxHP [(playerLevel - 8)*constant + 185] and then with that add the extra HP... It would work better.

Also works with mana, and the solution should be the same that I said before [(playerLevel - 8)*constant + 35].
The constants are:
Knight:
HP = 15
MP = 5
Paladin:
HP = 10
MP = 15
Sorc and Druid:
HP = 5
MP = 30

And also, skill/ml raise bug xD
 
kito: not bad idea, just will bug if you have items changing maxmana/hp
or any other system increasing them
 
I tested it when you realesed, but the bug to gain as much HP as you want changing your outfit to another, and then other that add more, and then relog, it continous. [...]
One more time It don't work correct for players with acces 3 or higher... [it's boring...]

[...]
And also, skill/ml raise bug xD
Propably fixed (in 14th March).
 
can you set it so only certain vocations can gain certain atributes from the outfit like sorc / druid wears mage outfit gets X amount of mana but if a knight wears it he doesnt get the mana increase?
 
I tried to do it in outfits.xml

can someone fix it for me? Not every bonus working properly. i studied outfit.cpp but dont understand it.
Vexoria - Bonus

Code:
<?xml version="1.0"?>
<outfits>
	<outfit id="1">
		<list gender="0" lookType="136" name="Citizen">
			<children speed="30"/>
		</list>	
		<list gender="1" lookType="128" name="Citizen">
			<children speed="30"/>
		</list>
	</outfit>

	<outfit id="2">
		<list gender="0" lookType="137" name="Hunter">
			<Skills distance="2"/>
		</list>
		<list gender="1" lookType="129" name="Hunter">
			<Skills distance="2"/>
		</list>

	</outfit>

	<outfit id="3">
		<list gender="0" lookType="138" name="Mage">

		</list>
		<list gender="1" lookType="130" name="Mage">

		</list>
	</outfit>

	<outfit id="4">
		<list gender="0" lookType="139" name="Knight">
			<Skills melee="2"/>
		</list>
		<list gender="1" lookType="131" name="Knight">
			<Skills melee="2"/>
		</list>
	</outfit>

	<outfit id="5" premium="yes">
		<list gender="0" lookType="140" name="Noblewoman">
			<children speed="30"/>
		</list>
		<list gender="1" lookType="132" name="Nobleman">
			<children speed="30"/>
		</list>
		
	</outfit>

	<outfit id="6" premium="yes">
		<list gender="0" lookType="141" name="Summoner">
			<stats maxMana="110"/>
		</list>
		<list gender="1" lookType="133" name="Summoner">
			<stats maxMana="110"/>
		</list>
	</outfit>

	<outfit id="7" premium="yes">
		<list gender="0" lookType="142" name="Warrior">
			<Skills sword="3"/>
		</list>
		<list gender="1" lookType="134" name="Warrior">
			<Skills sword="3"/>
		</list>
	</outfit>

	<outfit id="8" premium="yes">
		<list gender="0" lookType="147" name="Barbarian">
			<Skills axe="3"/>
		</list>
		<list gender="1" lookType="143" name="Barbarian">
			<Skills axe="3"/>
		</list>
	</outfit>

	<outfit id="9" premium="yes">
		<list gender="0" lookType="148" name="Druid">
			<stats maxHealth="10"/>
		</list>
		<list gender="1" lookType="144" name="Druid">
			<stats maxHealth="10"/>
		</list>
	</outfit>

	<outfit id="10" premium="yes">
		<list gender="0" lookType="149" name="Wizard">
			<stats maxMana="10"/>
		</list>
		<list gender="1" lookType="145" name="Wizard">
			<stats maxMana="10"/>
		</list>
	</outfit>

	<outfit id="11" premium="yes">
		<list gender="0" lookType="150" name="Oriental">		
			<absorb percentFire="5"/>
		</list>
		<list gender="1" lookType="146" name="Oriental">
			<absorb percentFire="5"/>
		</list>
	</outfit>

	<outfit id="12" premium="yes">
		<list gender="0" lookType="155" name="Pirate">
			<absorb percentEnergy="5"/>
		</list>
		<list gender="1" lookType="151" name="Pirate">
			<absorb percentEnergy="5"/>
		</list>
	</outfit>

	<outfit id="13" premium="yes">
		<list gender="0" lookType="156" name="Assassin">
			<children speed="40"/>
		</list>
		<list gender="1" lookType="152" name="Assassin">
			<children speed="40"/>
		</list>
	</outfit>

	<outfit id="14" premium="yes">
		<list gender="0" lookType="157" name="Beggar">
			<stats magLevel="1"/>
		</list>
		<list gender="1" lookType="153" name="Beggar">
			<stats magLevel="1"/>
		</list>
	</outfit>

	<outfit id="15" premium="yes">
		<list gender="0" lookType="158" name="Shaman">
			<stats magLevel="1"/>
		</list>
		<list gender="1" lookType="154" name="Shaman">
			<stats magLevel="1"/>
		</list>
	</outfit>

	<outfit id="16" premium="yes">
		<list gender="0" lookType="252" name="Norsewoman">
			<absorb percentIce="5"/>
		</list>
		<list gender="1" lookType="251" name="Norseman">
			<absorb percentIce="5"/>
		</list>
	</outfit>

	<outfit id="17" premium="yes">
		<list gender="0" lookType="269" name="Nightmare">
			<absorb percentDeath="3"/>
		</list>
		<list gender="1" lookType="268" name="Nightmare">
			<absorb percentDeath="3"/>
		</list>
	</outfit>

	<outfit id="18" premium="yes">
		<list gender="0" lookType="270" name="Jester">
			<children speed="30"/>
		</list>
		<list gender="1" lookType="273" name="Jester">
			<children speed="30"/>
		</list>
	</outfit>

	<outfit id="19" premium="yes">
		<list gender="0" lookType="279" name="Brotherhood">
			<absorb percentEarth="5"/>
		</list>
		<list gender="1" lookType="278" name="Brotherhood">
			<absorb percentEarth="5"/>
		</list>
	</outfit>

	<outfit id="20" premium="yes">
		<list gender="0" lookType="288" name="Demonhunter">
			<absorb percentFire="5"/>
		</list>
		<list gender="1" lookType="289" name="Demonhunter">
			<absorb percentFire="5"/>
		</list>
	</outfit>

	<outfit id="21" premium="yes">
		<list gender="0" lookType="324" name="Yalaharian">
			<stats maxHealth="350"/>
			<stats maxMana="350"/>
		</list>
		<list gender="1" lookType="325" name="Yalaharian">
			<stats maxHealth="350"/>
			<stats maxMana="350"/>
		</list>
	</outfit>

	<outfit id="22">
		<list gender="0" lookType="336" name="Warmaster">
			<absorb percentDeath="5"/>
		</list>
		<list gender="1" lookType="335" name="Warmaster">
			<absorb percentDeath="5"/>
		</list>
	</outfit>

	<outfit id="23" premium="yes">
		<list gender="0" lookType="329" name="Wedding">
			<stats maxHealth="100"/>
			<stats maxMana="100"/>
		</list>
		<list gender="1" lookType="328" name="Wedding">
			<stats maxHealth="100"/>
			<stats maxMana="100"/>
		</list>
	</outfit>

	<outfit id="24" access="5" premium="yes">
		<list gender="0-3" lookType="12" name="Archdemon"/>
	</outfit>

	<outfit id="25" access="5" premium="yes">
		<list gender="0-3" lookType="159" name="Elf"/>
	</outfit>

	<outfit id="26" access="5" premium="yes">
		<list gender="0-3" lookType="160" name="Dwarf"/>
	</outfit>

	<outfit id="27" access="5" premium="yes">
		<list gender="0-3" lookType="226" name="Frog"/>
	</outfit>

	<outfit id="28" default="0">
		<list gender="0-3" lookType="194" name="Cult">
			<stats magLevel="3"/>
		</list>
	</outfit>

	<outfit id="29" default="0">
		<list gender="0-3" lookType="253" name="Headsplitter">
			<Skills club="2"/>
			<Skills axe="2"/>
		</list>
	</outfit>

	<outfit id="30" default="0">
		<list gender="0-3" lookType="254" name="Skullhunter">
			<Skills sword="3"/>
		</list>
	</outfit>

	<outfit id="31" default="0">
		<list gender="0-3" lookType="255" name="Bloodwalker">
			<Skills axe="3"/>
		</list>
	</outfit>

	<outfit id="32" default="0">
		<list gender="0-3" lookType="264" name="Brutetamer">
			<stats magLevel="3"/>
		</list>
	</outfit>

	<outfit id="33" access="3" premium="yes">
		<list gender="0-3" lookType="75" name="Gamemaster"/>
	</outfit>

	<outfit id="34" access="4" premium="yes">
		<list gender="0-3" lookType="266" name="Community Manager"/>
	</outfit>

	<outfit id="35" access="5" premium="yes">
		<list gender="0-3" lookType="302" name="God"/>
	</outfit>
</outfits>
 
@Thread, Hellboy:
Lol, what an idiots ;|
(No offence.)

Example through outfits.xml:
Code:
<outfit id="3">
	<list gender="0" lookType="138" name="Mage">
		<stats magLevel="2"/>
	</list>
	<list gender="1" lookType="130" name="Mage">
		<stats magLevel="2"/>
	</list>
</outfit>

That means if someone is wearing full mage he'll receive magic level +2.

No offence, but how stupid are you. Do you even know how to read a thread title before posting... or do you just post hoping to make yourself look intelligent. This script my friend, is an >>>>>>>>>>>>>>ADDON<<<<<<<<<<<<< "bonus" system, not an outfit bonus system. Once again. An >>>>>>ADDON<<<<<< bonus system.

I will update the first post with Hellboys fix just because it seems to work for everyone.


Edit: I have just tested it and I apologize for my response. In my defense I was too lazy to venture into the outfits.cpp so I worked with a creatureevent. But also, Chojrak, your response was unneeded, you could have simply pointed out that using outfits.xml would work that way, you had no need to call us idiots for showing some scripting abilities.
 
Last edited:
ehm dilio, what he posted is the same addons bonus, in outfits.xml. You should try scripting @ outfits.xml before replying ^^
 
I am looking through the outfit.cpp and looking at his example and I see nowhere that specifies the player has to be wearing a Addons for it to give the bonus.

Edit: Just tested it, and Outfits.xml are addon supported.
 
Last edited:
I found it strange too, but it's the same as those LUA scripts from before
He was a TFS developer, so he knows the function well
I didn't even know this was [email protected]
 
I found it strange too, but it's the same as those LUA scripts from before
He was a TFS developer, so he knows the function well
I didn't even know this was [email protected]

Ditto, although his negativity was unneeded. He could have just told us to use Outfits.xml instead of calling us idiots... considering he put "What an idiots" when it is "What idiots" xD
 
He wasn't serious ^^
 
Back
Top