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

xampp a nowe vocations

clario

OTS based on Heroes III Might and Magic
Joined
Feb 4, 2018
Messages
98
Reaction score
5
A więc wyskakuje mi problem na xammpie :
https://iv.pl/images/39527647908430432523.png

Dodałem nowe voc. do folderu
\ Server\data\XML
tak wyglądają
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
<vocation id="4" name="Rycerz" description="Rycerz" needpremium="0" gaincap="30" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="100" manamultiplier="2.4" attackspeed="980" soulmax="100" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.1" defense="1.1" magDefense="1.1" armor="1.2"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.5" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Kleryk" description="Kleryk" needpremium="0" gaincap="15" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.4" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="3" name="Łowca" description="Łowca" needpremium="0" gaincap="25" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="100" manamultiplier="1.5" attackspeed="900" soulmax="100" gainsoulticks="120" fromvoc="3">
<formula meleeDamage="1.0" distDamage="1.2" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Druid" description="Druid" needpremium="0" gaincap="15" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.3" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.2" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="1" name="Alchemik" description="Alchemik" needpremium="0" gaincap="15" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.1" defense="1.0" magDefense="1.2" armor="1.0"/>
<skill fist="1.5" club="1.5" sword="1.5" axe="1.5" distance="1.5" shielding="1.5" fishing="1.1" experience="1.1"/>
</vocation>
<vocation id="1" name="Czarodziej" description="Czarodziej" needpremium="0" gaincap="10" gainhp="5" gainmana="35" gainhpticks="8" gainhpamount="5" gainmanaticks="2.5" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.4" magDamage="1.4" magHealingDamage="1.0" defense="1.0" magDefense="1.4" armor="1.0"/>
<skill fist="2.0" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.6" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Demon" description="Demon" needpremium="0" gaincap="25" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="100" manamultiplier="1.8" attackspeed="980" soulmax="100" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.1" distDamage="1.0" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.0" defense="1.1" magDefense="1.1" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Heretyk" description="Heretyk" needpremium="0" gaincap="15" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/>
<skill fist="1.8" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.4" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Rycerz Śmierci" description="Rycerz Śmierci" needpremium="0" gaincap="30" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="100" manamultiplier="2.2" attackspeed="980" soulmax="100" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.15" distDamage="1.0" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.0" defense="1.1" magDefense="1.1" armor="1.1"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.5" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="1" name="Nekromanta" description="Nekromanta" needpremium="0" gaincap="15" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/>
<skill fist="1.5" club="1.6" sword="1.6" axe="1.6" distance="1.6" shielding="1.35" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Władca" description="Władca" needpremium="0" gaincap="30" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="100" manamultiplier="2.4" attackspeed="980" soulmax="100" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.15" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.1" magDefense="1.1" armor="1.1"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.5" shielding="1.1" fishing="1.1" experience="1.1"/>
</vocation>
<vocation id="1" name="Czarnoksiężnik" description="Czarnoksiężnik" needpremium="0" gaincap="10" gainhp="5" gainmana="35" gainhpticks="8" gainhpamount="5" gainmanaticks="2.5" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.4" magDamage="1.4" magHealingDamage="1.0" defense="1.0" magDefense="1.4" armor="1.0"/>
<skill fist="2.0" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.6" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Barbarzyńca" description="Barbarzyńca" needpremium="0" gaincap="30" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="100" manamultiplier="3.0" attackspeed="900" soulmax="100" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.4" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.1" armor="1.1"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.5" shielding="1.2" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="1" name="Mag Bitewny" description="Mag Bitewny" needpremium="0" gaincap="25" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="100" manamultiplier="1.35" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/>
<skill fist="1.1" club="1.19" sword="1.125" axe="1.125" distance="1.125" shielding="1.125" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Władca Bestii" description="Władca Bestii" needpremium="0" gaincap="30" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="100" manamultiplier="2.4" attackspeed="990" soulmax="100" gainsoulticks="120" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.1" defense="1.4" magDefense="1.4" armor="1.4"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.5" shielding="1.06" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Wiedźma" description="Wiedźma" needpremium="0" gaincap="15" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/>
<skill fist="1.5" club="1.6" sword="1.6" axe="1.6" distance="1.6" shielding="1.35" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="0" name="Wędrowiec" description="Wędrowiec" needpremium="0" gaincap="30" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="100" manamultiplier="2.2" attackspeed="980" soulmax="100" gainsoulticks="120" fromvoc="0">
<formula meleeDamage="1.1" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.1" magDefense="1.1" armor="1.1"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.5" shielding="1.1" fishing="1.1" experience="1.1"/>
</vocation>
<vocation id="1" name="Elementalista" description="Elementalista" needpremium="0" gaincap="10" gainhp="5" gainmana="35" gainhpticks="8" gainhpamount="5" gainmanaticks="2.5" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="150" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.4" magDamage="1.4" magHealingDamage="1.0" defense="1.0" magDefense="1.4" armor="1.0"/>
<skill fist="2.0" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.6" fishing="1.1" experience="1.0"/>
</vocation>
</vocations>

da się coś z tym zrobic?
 
Poradziłem sobie z tym , teraz mam problem jak dodać :
SAMPLE CHARACTER do bazy danych "players"
Name of vocation (to show player 'vocations to choose' names) it loads from OTS file 'data/XML/vocations.xml'.
If you set it 1, it will load 'Sorcerer'
If you set it 5, it will load 'Master Sorcerer' etc.,
but 'vocation ID' and 'promotion level' it will copy FROM SAMPLE CHARACTER to new character, so check what vocation ID and promotion have sample characters in database.
Parameters:
vocation_ID_of_character - it's used to load name of vocation that user see on website
'Character To Copy Name' - it loads that character from table `players` in database and copys to 'new' player [it's items and skills too!], change only: name, account (owner of character), town, sex, outfit, world id, create IP, create date and moves it to temple
Format: array(vocation_ID_of_character [number] => 'Character To Copy Name' [string], vocation_ID_2_of_character [number] => 'Character To Copy 2 Name' [string])
 
Back
Top