Sinrage
User
- Joined
- Sep 7, 2010
- Messages
- 16
- Reaction score
- 4
Witam, opisz? Wam jak w banalny spos?b, bez ?adnego kombinowania z skryptami LUA mo?na zrobi? bonusy za addony.
Silnik: TFS 0.3.6
Otwieramy data/XML/outfits.xml
Znaczenie:
outfit
id - ka?dy outfit ma sw?j id, je?eli nie b?dzie on ustawiony pozosta?e parametry nie zostan? wczytane
access - minimalny access postaci aby m?c za?o?y? ten outfit (domy?lnie 0)
premium - czy jest wymagane premium aby m?c za?o?y? ten outfit, wpisujemy "yes" lub "no" (domy?lnie "no")
default - oznacza czy outfit jest dost?py od razu, czy trzeba go zdoby? w inny spos?b. 0 - nie, 1 - tak (domy?lnie 1)
quest - wpisujemy np. 4523 oznacza to, ?e je?eli gracz ma storageValue o id 4523, kt?rej warto?? jest r?wna 1 to mo?e za?o?y?
ten outfit
storageId i storageValue - zamiast "quest", oznacza, ?e je?eli gracza ma storagevalue o id storageId r?wn? storageValue to mo?e
za?o?y? ten outfit
Przyk?ady:
Oznacza, ?e aby za?o?y? outfit o id 19 trzeba mie? premium, dosta? go od NPC i dodatkowo mie? storage o id 3422
ustawione na warto?? 2.
Oznacza, ?e aby za?o?y? outfit o id 27 trzeba mie? access 4 i storage o id 4534 ustawione na warto?? 1.
list
gender - p?e? dla, kt?rej jest ten outfit
lookType - "numer" outfitu
name - nazwa outfitu, b?dzie pokazywana w okienku od zmiany outfitu
requirement - wymagania na bonus tzn. jakie addony musimy mie? za?o?one. Do wyboru mamy: "none", "first", "second", "any",
"both"
manaShield - czy outfit daje mana shield. 0 - nie, 1 - tak
invisible - czy outfit daje niewidzialno??. 0 - nie, 1 - tak
healthGain i healthTicks - dodatkowa regeneracja ?ycia gdy mamy za?o?ony addon, healthTicks w milisekundach
manaGain i manaTicks - dodatkowa regeneracja many gdy mamy za?o?ony addon, manaTicks w milisekundach
speed - o ile ma by? zwi?kszony speed postaci
Przyk?ady:
Oznacza, ?e ?e?ski outfit Noble daje mana shielda i regeneruje dodatkowe 100 hp co 4 sekundy nawet jak nie mamy addon?w.
Oznacza, ?e m?ski outfit Barbarian daje niewidzialo?? i dodatkowe 100 speedu, ale tylko gdy mamy za?o?one oba addony.
reflect
Podobnie jak w przypadku item?w mo?emy ustawi? np. jakie obra?enia odbija dany outfit.
Do wyboru mamy:
percentAll i chanceAll - dotyczy wszystkich typ?w atak?w
percentElements i chanceElements - dotyczy energii, ognia, ziemi, lodu
percentMagic i chanceMagic - dotyczy energi, ognia, ziemi, lodu, ?wi?to?ci i ?mierci
A tak?e pojedy?czo:
percentEnergy, percentFire, percentEarth, percentIce, percentHoly, percentDeath, percentLifeDrain,
percentManaDrain, percentDrown, percentPhysical, percentHealing, percentUndefined i chance tak samo.
absorb
Podobnie jak w przypadku item?w mo?emy ustawi? np. jakie obra?enia absorbuje dany outfit.
Do wyboru mamy:
percentAll - dotyczy wszystkich typ?w atak?w
percentElements - dotyczy energii, ognia, ziemi, lodu
percentMagic - dotyczy energi, ognia, ziemi, lodu, ?wi?to?ci i ?mierci
A tak?e pojedy?czo:
percentEnergy, percentFire, percentEarth, percentIce, percentHoly, percentDeath, percentLifeDrain,
percentManaDrain, percentDrown, percentPhysical, percentHealing, percentUndefined
Przyk?ady:
Oznacza, ?e ?e?ski outfit summonera odbija 5% obra?e? od ?ywio??w, szansa na odbicie energii i ognia jest 15%, ziemii 10% a
lodu 5%.
Oznacza, ?e m?ski outfit summonera absorbuje 10% wszystkich atak?w.
skills
fist - ilo?? dodatkowego fist fightingu
club - ilo?? dodatkowego club fightingu
axe - ilo?? dodatkowego axe fightingu
sword - ilo?? dodatkowego sword fightingu
dist - ilo?? dodatkowego distance fightingu
shield -ilo?? dodatkowego shieldingu
fish - ilo?? dodatkowego fishingu
melee - ilo?? dodatkowych skilli melee czyli fist, club, sword, axe
weapons - ilo?? dodatkowych skilli club, sword, axe, dist
fistPercent - procentowy przyrost fist fightingu
clubPercent - procentowy przyrost club fightingu
swordPercent - procentowy przyrost sword fightingu
axePercent - procentowy przyrost axe fightingu
distPercent - procentowy przyrost distance fightingu
shieldPercent - procentowy przyrost shieldingu
fishPercent - procentowy przyrost fishingu
meleePercent - procentowy przyrost skilli melee czyli fist, club, sword, axe
weaponPercent - procentowy przyrost skilli club, sword, axe, dist
Przyk?ady:
Oznacza, ?e ?e?ski outfit assassina daje 10 skilla distance fighting.
Oznacza, ?e m?ski outfit assassina podwaja skill distance fighting.
stats
maxHealth - zwi?ksza nasze maksylamne hp
maxMana - zwi?ksza nasz? maksylamn? man?
soul - zwi?ksza nasz? liczb? souli
level - daje dodatkowy level
magLevel - daje dodatkowy mlvl
maxHealthPercent - procentowy przyrost hp
maxManaPercent - procentowy przyrost many
soulPercent - procentowy przyrosty souli
levelPercent - procentowy przyrost levela
magLevelPercent - procentowy przyrost mlvla
Przyk?ady:
Oznacza, ?e ?e?ski outfit wizarda daje nam 5000 many i 5 mlvli.
Oznacza, ?e ?e?ski outfit wizarda zwi?ksza nasz? maksylamn? man? o 50%, dodaje nam 5 souli i 10 leveli.
suppress
Dzi?ki temu outfit t?umi? dany condition.
Do wyboru mamy: poision, fire, energy, physical, haste, paralyze, outfit, invisible, light, manaShield, infight, drunk, exhaust, regeneration, soul, drown, muted, attributes, freezing, dazzled, cursed, pacified, gamemaster
Przyk?ady
Oznacza, ?e ?e?ski outfit nightmare t?mui dodatkowe obra?enia od fire fielda i energy fielda.
Oznacza, ?e kto nosi m?ski outfit nightmare nie mo?e zosta? upity i nie ma exhaustu.
Zako?czenie:
Na podsumowanie jeszcze jeden przyk?ad:
Oznacza to, ?e outfit brotherhood, dost?py za spraw? NPC i tylko dla premium daje 50 dodatkowego speedu, absorbuje 5% obra?e? od magii, daje 10 cluba, sworda, axe i dista, daje 500 hp i 2 magic levele a tak?e jego w?a?ciciel jest niewra?liwy na parali?.
Te promocje przys?uguje tylko gdy mamy ubrane outfit i jego dwa addony.
Silnik: TFS 0.3.6
Otwieramy data/XML/outfits.xml
Code:
<?xml version="1.0" ?>
<outfits>
<outfit id="1">
<list gender="0" lookType="136" name="Citizen" />
<list gender="1" lookType="128" name="Citizen" />
</outfit>
<outfit id="2">
<list gender="0" lookType="137" name="Hunter" />
<list gender="1" lookType="129" name="Hunter" />
</outfit>
<outfit id="3">
<list gender="0" lookType="138" name="Mage" />
<list gender="1" lookType="130" name="Mage" />
</outfit>
<outfit id="4">
<list gender="0" lookType="139" name="Knight" />
<list gender="1" lookType="131" name="Knight" />
</outfit>
<outfit id="5" premium="yes">
<list gender="0" lookType="140" name="Noblewoman" />
<list gender="1" lookType="132" name="Nobleman" />
</outfit>
<outfit id="6" premium="yes">
<list gender="0" lookType="141" name="Summoner" />
<list gender="1" lookType="133" name="Summoner" />
</outfit>
<outfit id="7" premium="yes">
<list gender="0" lookType="142" name="Warrior" />
<list gender="1" lookType="134" name="Warrior" />
</outfit>
<outfit id="8" premium="yes">
<list gender="0" lookType="147" name="Barbarian" />
<list gender="1" lookType="143" name="Barbarian" />
</outfit>
<outfit id="9" premium="yes">
<list gender="0" lookType="148" name="Druid" />
<list gender="1" lookType="144" name="Druid" />
</outfit>
<outfit id="10" premium="yes">
<list gender="0" lookType="149" name="Wizard" />
<list gender="1" lookType="145" name="Wizard" />
</outfit>
<outfit id="11" premium="yes">
<list gender="0" lookType="150" name="Oriental" />
<list gender="1" lookType="146" name="Oriental" />
</outfit>
<outfit id="12" premium="yes" default="0">
<list gender="0" lookType="155" name="Pirate" />
<list gender="1" lookType="151" name="Pirate" />
</outfit>
<outfit id="13" premium="yes" default="0">
<list gender="0" lookType="156" name="Assassin" />
<list gender="1" lookType="152" name="Assassin" />
</outfit>
<outfit id="14" premium="yes" default="0">
<list gender="0" lookType="157" name="Beggar" />
<list gender="1" lookType="153" name="Beggar" />
</outfit>
<outfit id="15" premium="yes" default="0">
<list gender="0" lookType="158" name="Shaman" />
<list gender="1" lookType="154" name="Shaman" />
</outfit>
<outfit id="16" premium="yes" default="0">
<list gender="0" lookType="252" name="Norsewoman" />
<list gender="1" lookType="251" name="Norseman" />
</outfit>
<outfit id="17" premium="yes" default="0">
<list gender="0" lookType="269" name="Nightmare" />
<list gender="1" lookType="268" name="Nightmare" />
</outfit>
<outfit id="18" premium="yes" default="0">
<list gender="0" lookType="270" name="Jester" />
<list gender="1" lookType="273" name="Jester" />
</outfit>
<outfit id="19" premium="yes" default="0">
<list gender="0" lookType="279" name="Brotherhood" />
<list gender="1" lookType="278" name="Brotherhood" />
</outfit>
<outfit id="20" premium="yes" default="0">
<list gender="0" lookType="288" name="Demonhunter" />
<list gender="1" lookType="289" name="Demonhunter" />
</outfit>
<outfit id="21" premium="yes" default="0">
<list gender="0" lookType="324" name="Yalaharian" />
<list gender="1" lookType="325" name="Yalaharian" />
</outfit>
<outfit id="22" premium="yes" default="0">
<list gender="0" lookType="336" name="Warmaster" />
<list gender="1" lookType="335" name="Warmaster" />
</outfit>
<outfit id="23" premium="yes" default="0">
<list gender="0" lookType="329" name="Wedding" />
<list gender="1" lookType="328" name="Wedding" />
</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" access="5" premium="yes">
<list gender="0-3" lookType="194" name="Cult" />
</outfit>
<outfit id="29" access="5" premium="yes">
<list gender="0-3" lookType="253" name="Headsplitter" />
</outfit>
<outfit id="30" access="5" premium="yes">
<list gender="0-3" lookType="254" name="Skullhunter" />
</outfit>
<outfit id="31" access="5" premium="yes">
<list gender="0-3" lookType="255" name="Bloodwalker" />
</outfit>
<outfit id="32" access="5" premium="yes">
<list gender="0-3" lookType="264" name="Brutetamer" />
</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>
outfit
id - ka?dy outfit ma sw?j id, je?eli nie b?dzie on ustawiony pozosta?e parametry nie zostan? wczytane
access - minimalny access postaci aby m?c za?o?y? ten outfit (domy?lnie 0)
premium - czy jest wymagane premium aby m?c za?o?y? ten outfit, wpisujemy "yes" lub "no" (domy?lnie "no")
default - oznacza czy outfit jest dost?py od razu, czy trzeba go zdoby? w inny spos?b. 0 - nie, 1 - tak (domy?lnie 1)
quest - wpisujemy np. 4523 oznacza to, ?e je?eli gracz ma storageValue o id 4523, kt?rej warto?? jest r?wna 1 to mo?e za?o?y?
ten outfit
storageId i storageValue - zamiast "quest", oznacza, ?e je?eli gracza ma storagevalue o id storageId r?wn? storageValue to mo?e
za?o?y? ten outfit
Przyk?ady:
Code:
<outfit id="19" premium="yes" default="0" storageId="3422" storageValue="2">
ustawione na warto?? 2.
Code:
<outfit id="27" access="4" quest="4534">
list
gender - p?e? dla, kt?rej jest ten outfit
lookType - "numer" outfitu
name - nazwa outfitu, b?dzie pokazywana w okienku od zmiany outfitu
requirement - wymagania na bonus tzn. jakie addony musimy mie? za?o?one. Do wyboru mamy: "none", "first", "second", "any",
"both"
manaShield - czy outfit daje mana shield. 0 - nie, 1 - tak
invisible - czy outfit daje niewidzialno??. 0 - nie, 1 - tak
healthGain i healthTicks - dodatkowa regeneracja ?ycia gdy mamy za?o?ony addon, healthTicks w milisekundach
manaGain i manaTicks - dodatkowa regeneracja many gdy mamy za?o?ony addon, manaTicks w milisekundach
speed - o ile ma by? zwi?kszony speed postaci
Przyk?ady:
Code:
<list gender="0" lookType="140" name="Noblewoman" requirement="none" manaShield="1" healthGain="100" healthTicks="4000" />
Code:
<list gender="1" lookType="143" name="Barbarian" requirement="both" invisible="1" speed="100" />
reflect
Podobnie jak w przypadku item?w mo?emy ustawi? np. jakie obra?enia odbija dany outfit.
Do wyboru mamy:
percentAll i chanceAll - dotyczy wszystkich typ?w atak?w
percentElements i chanceElements - dotyczy energii, ognia, ziemi, lodu
percentMagic i chanceMagic - dotyczy energi, ognia, ziemi, lodu, ?wi?to?ci i ?mierci
A tak?e pojedy?czo:
percentEnergy, percentFire, percentEarth, percentIce, percentHoly, percentDeath, percentLifeDrain,
percentManaDrain, percentDrown, percentPhysical, percentHealing, percentUndefined i chance tak samo.
absorb
Podobnie jak w przypadku item?w mo?emy ustawi? np. jakie obra?enia absorbuje dany outfit.
Do wyboru mamy:
percentAll - dotyczy wszystkich typ?w atak?w
percentElements - dotyczy energii, ognia, ziemi, lodu
percentMagic - dotyczy energi, ognia, ziemi, lodu, ?wi?to?ci i ?mierci
A tak?e pojedy?czo:
percentEnergy, percentFire, percentEarth, percentIce, percentHoly, percentDeath, percentLifeDrain,
percentManaDrain, percentDrown, percentPhysical, percentHealing, percentUndefined
Przyk?ady:
Code:
<list gender="0" lookType="141" name="Summoner">
<reflect percentElements="5" chanceEnergy="15" chanceFire="15" chanceEarth="10" chanceIce="5"/>
</list>
lodu 5%.
Code:
<list gender="1" lookType="141" name="Summoner">
<absorb percentAll="10"/>
</list>
skills
fist - ilo?? dodatkowego fist fightingu
club - ilo?? dodatkowego club fightingu
axe - ilo?? dodatkowego axe fightingu
sword - ilo?? dodatkowego sword fightingu
dist - ilo?? dodatkowego distance fightingu
shield -ilo?? dodatkowego shieldingu
fish - ilo?? dodatkowego fishingu
melee - ilo?? dodatkowych skilli melee czyli fist, club, sword, axe
weapons - ilo?? dodatkowych skilli club, sword, axe, dist
fistPercent - procentowy przyrost fist fightingu
clubPercent - procentowy przyrost club fightingu
swordPercent - procentowy przyrost sword fightingu
axePercent - procentowy przyrost axe fightingu
distPercent - procentowy przyrost distance fightingu
shieldPercent - procentowy przyrost shieldingu
fishPercent - procentowy przyrost fishingu
meleePercent - procentowy przyrost skilli melee czyli fist, club, sword, axe
weaponPercent - procentowy przyrost skilli club, sword, axe, dist
Przyk?ady:
Code:
<list gender="0" lookType="156" name="Assassin">
<skills dist="10"/>
</list>
Code:
<list gender="1" lookType="152" name="Assassin">
<skills distPercent="100"/>
</list>
stats
maxHealth - zwi?ksza nasze maksylamne hp
maxMana - zwi?ksza nasz? maksylamn? man?
soul - zwi?ksza nasz? liczb? souli
level - daje dodatkowy level
magLevel - daje dodatkowy mlvl
maxHealthPercent - procentowy przyrost hp
maxManaPercent - procentowy przyrost many
soulPercent - procentowy przyrosty souli
levelPercent - procentowy przyrost levela
magLevelPercent - procentowy przyrost mlvla
Przyk?ady:
Code:
<list gender="0" lookType="149" name="Wizard" />
<stats maxMana="5000" magLevel="5" />
</list>
Code:
<list gender="1" lookType="145" name="Wizard" />
<stats maxManaPercent="50" soul="5" level="10"/>
</list>
suppress
Dzi?ki temu outfit t?umi? dany condition.
Do wyboru mamy: poision, fire, energy, physical, haste, paralyze, outfit, invisible, light, manaShield, infight, drunk, exhaust, regeneration, soul, drown, muted, attributes, freezing, dazzled, cursed, pacified, gamemaster
Przyk?ady
Code:
<list gender="0" lookType="269" name="Nightmare">
<suppress fire="yes" energy="yes" />
</list>
Code:
<list gender="1" lookType="268" name="Nightmare">
<suppress drunk="yes" exhaust="yes" />
</list>
Zako?czenie:
Na podsumowanie jeszcze jeden przyk?ad:
Code:
<outfit id="19" premium="yes" default="0">
<list gender="0" lookType="279" name="Brotherhood" requirement="both" speed="50">
<abosrob percentMagic="5"/>
<skills weapons="10"/>
<stats maxHealth="500" magLevel="2" />
<suppress paralyze="yes"/>
</list>
<list gender="1" lookType="278" name="Brotherhood" requirement="both" speed="50">
<abosrob percentMagic="5"/>
<skills weapons="10"/>
<stats maxHealth="500" magLevel="2" />
<suppress paralyze="yes"/>
</list>
</outfit>
Te promocje przys?uguje tylko gdy mamy ubrane outfit i jego dwa addony.