What's new

-Łatwy [XML] Bonusy za addon

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
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>
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:
Code:
<outfit id="19" premium="yes" default="0" storageId="3422" storageValue="2">
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.
Code:
<outfit id="27" access="4" quest="4534">
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:
Code:
<list gender="0" lookType="140" name="Noblewoman" requirement="none" manaShield="1" healthGain="100" healthTicks="4000" />
Oznacza, ?e ?e?ski outfit Noble daje mana shielda i regeneruje dodatkowe 100 hp co 4 sekundy nawet jak nie mamy addon?w.
Code:
<list gender="1" lookType="143" name="Barbarian" requirement="both" invisible="1" speed="100" />
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:
Code:
<list gender="0" lookType="141" name="Summoner">
	<reflect percentElements="5" chanceEnergy="15" chanceFire="15" chanceEarth="10" chanceIce="5"/>
</list>
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%.
Code:
<list gender="1" lookType="141" name="Summoner">
	<absorb percentAll="10"/>
</list>
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:
Code:
<list gender="0" lookType="156" name="Assassin"> 
	<skills dist="10"/>
</list>
Oznacza, ?e ?e?ski outfit assassina daje 10 skilla distance fighting.
Code:
<list gender="1" lookType="152" name="Assassin">
	<skills distPercent="100"/>
</list>
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:
Code:
  <list gender="0" lookType="149" name="Wizard" /> 
<stats maxMana="5000" magLevel="5" />
</list>
Oznacza, ?e ?e?ski outfit wizarda daje nam 5000 many i 5 mlvli.
Code:
  <list gender="1" lookType="145" name="Wizard" /> 
<stats maxManaPercent="50" soul="5" level="10"/>
</list>
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
Code:
  <list gender="0" lookType="269" name="Nightmare">
<suppress fire="yes" energy="yes" />
</list>
Oznacza, ?e ?e?ski outfit nightmare t?mui dodatkowe obra?enia od fire fielda i energy fielda.
Code:
 <list gender="1" lookType="268" name="Nightmare">
<suppress drunk="yes" exhaust="yes" />
</list>
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:
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>
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.
 

zaglada90

Active User
Joined
Aug 19, 2010
Messages
148
Reaction score
6
Odp: [XML] Bonusy za addon

Oczywi?cie Rep++, bardzo fajnie opisany poradnik czytelnie i co najwa?niejsze opisane wszystkie funkcje, na pewno to wykorzystam, temat powinien by? przeniesiony dzi?ki jeszcze raz.
 

Kazek123

User
Joined
Jun 5, 2009
Messages
41
Reaction score
1
Odp: [XML] Bonusy za addon

Mam takie pytanko. Czy bedzie to dzia?ac pod tibie 8.10? ;)
 

areq1996

Advanced User
Joined
Aug 12, 2010
Messages
381
Reaction score
6
Age
27
Odp: [XML] Bonusy za addon

Brawo! 10/10
Postara?e? si?.
Nic doda? nic uj??!:)
 

Maqu

User
Joined
Jan 17, 2010
Messages
39
Reaction score
2
Odp: [XML] Bonusy za addon

Wielkie dzi?ki ziomek.
Szuka?em tego wsz?dzie lecz nikt nie chcia? da? skryptu za darmo a dzi?ki tobie w ko?cu b?d? mia? to na moim otsie.
Oczywi?cie leci rep :]
Ocena skryptu : 10/10
 

LoRd DaVeR

New User
Joined
Dec 6, 2009
Messages
8
Reaction score
0
Odp: [XML] Bonusy za addon

Bardzo dobrze wyt?umaczone aczkolwiek nie wiedzia?em ?e jest taka mo?liwo??
10/10
 

Japuch

New User
Joined
Jun 3, 2008
Messages
5
Reaction score
0
Odp: [XML] Bonusy za addon

Nie potrafie w taki spos?b zrobi?, aby ka?dy addon dawa? inne bonusy
Pr?bowa?em co? takiego ale nie dzia?a:
Code:
			<list gender="0" lookType="137" name="Hunter" requirement="none">
			</list>
			
			<list gender="0" lookType="137" name="Hunter" requirement="first">
				<skills dist="2"/>
				<stats maxHealth="75"/>
			</list>
		
			<list gender="0" lookType="137" name="Hunter" requirement="second">
				<skills dist="2"/>
				<stats maxHealth="75"/>
			</list>
		
			<list gender="0" lookType="137" name="Hunter" requirement="both">
				<skills dist="4"/>
				<stats maxHealth="150"/>
			</list>
			
		
			<list gender="1" lookType="137" name="Hunter" requirement="none">
			</list>
			<list gender="1" lookType="137" name="Hunter" requirement="first">
				<skills dist="2"/>
				<stats maxHealth="75"/>
			</list>
		
			<list gender="1" lookType="137" name="Hunter" requirement="second">
				<skills dist="2"/>
				<stats maxHealth="75"/>
			</list>
		
			<list gender="1" lookType="137" name="Hunter" requirement="both">
				<skills dist="4"/>
				<stats maxHealth="150"/>
			</list>
			
	</outfit>

Kto? ma jakie? wskaz?wki?
 

Skleja

Advanced User
Joined
Oct 22, 2009
Messages
355
Reaction score
4
Odp: [XML] Bonusy za addon

wie kto? mo?e, jak zrobi?, ?e aby outfit dawa? mi np. 2 sword i 2 mlv to musze zrobi? full wizard, mage i warior outfit... i dopiero wtedy bonus b?dzie mi przyznawany
 

Mr Kule

New User
Joined
Apr 10, 2012
Messages
5
Reaction score
0
Odp: [XML] Bonusy za addon

+ dla Ciebie, ndoskona?e 10/10 !!
 
Top