christiandb
Member
I had the following 2nd promotions on my old server (mystic spirit):
I know they aren't working anymore because of only the base voc level configured at "vocation" in the database and I have to work with "promotion". But my question was how to make this?
My second question was how to fix this script:
I get this warning:
And playerdeathprepare can't be found too, any way to fix this script?
Kind regards,
Chris~
Code:
<vocation id="12" name="Super Knight" description="a super knight" gaincap="40" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="10" gainmanaamount="60" manamultiplier="3.0" attackspeed="750" soulmax="200" gainsoulticks="15" fromvoc="4">
<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
<skill id="0" multiplier="1.1"/>
<skill id="1" multiplier="1.1"/>
<skill id="2" multiplier="1.1"/>
<skill id="3" multiplier="1.1"/>
<skill id="4" multiplier="1.4"/>
<skill id="5" multiplier="1.1"/>
<skill id="6" multiplier="1.1"/>
</vocation>
<vocation id="11" name="Super Paladin" description="a super paladin" gaincap="30" gainhp="10" gainmana="20" gainhpticks="7" gainhpamount="35" gainmanaticks="15" gainmanaamount="60" manamultiplier="1.4" attackspeed="700" soulmax="200" gainsoulticks="15" fromvoc="3">
<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
<skill id="0" multiplier="1.2"/>
<skill id="1" multiplier="1.2"/>
<skill id="2" multiplier="1.2"/>
<skill id="3" multiplier="1.2"/>
<skill id="4" multiplier="1.1"/>
<skill id="5" multiplier="1.1"/>
<skill id="6" multiplier="1.1"/>
</vocation>
<vocation id="10" name="Super Druid" description="a super druid" gaincap="20" gainhp="5" gainmana="30" gainhpticks="8" gainhpamount="25" gainmanaticks="8" gainmanaamount="85" manamultiplier="1.1" attackspeed="600" soulmax="200" gainsoulticks="15" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
<skill id="0" multiplier="1.5"/>
<skill id="1" multiplier="1.8"/>
<skill id="2" multiplier="1.8"/>
<skill id="3" multiplier="1.8"/>
<skill id="4" multiplier="1.8"/>
<skill id="5" multiplier="1.5"/>
<skill id="6" multiplier="1.1"/>
</vocation>
<vocation id="9" name="Super Sorcerer" description="a super sorcerer" gaincap="20" gainhp="5" gainmana="30" gainhpticks="7" gainhpamount="12" gainmanaticks="8" gainmanaamount="85" manamultiplier="1.1" attackspeed="600" soulmax="200" gainsoulticks="15" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
<skill id="0" multiplier="1.5"/>
<skill id="1" multiplier="2.0"/>
<skill id="2" multiplier="2.0"/>
<skill id="3" multiplier="2.0"/>
<skill id="4" multiplier="2.0"/>
<skill id="5" multiplier="1.5"/>
<skill id="6" multiplier="1.1"/>
</vocation>
I know they aren't working anymore because of only the base voc level configured at "vocation" in the database and I have to work with "promotion". But my question was how to make this?
My second question was how to fix this script:
Code:
<event type="preparedeath" name="PlayerDeathPrepare" script="playerpreparedeath.lua"/>
Code:
function onPrepareDeath(cid, killer)
if getPlayerItemCount(cid, 2196) >= 1 then
doSetCreatureDropLoot(cid, 0)
end
end
I get this warning:
Code:
[07/11/2008 14:15:02] Warning: [Event::loadScript] Event onDeath not found. data/creaturescripts/scripts/playerpreparedeath.lua
And playerdeathprepare can't be found too, any way to fix this script?
Kind regards,
Chris~