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

Promotion Paper

Luciano

Member
Joined
Feb 18, 2010
Messages
998
Reaction score
24
I need a promotion paper - vocation 5 go 9, 6 go 10, 7 go 11, and 8 go 12.
+ i need that that paper, promote + takes 10 items of id 9969, + add 150k health and mana to the player .... + need lv 30000 to use it :P
thanks on advance,
rep+++.
Luciano ~~
 
supposing you are using TFS 0.3+ and new promo lvl is 1
LUA:
local setup = {
    items = 9969, --required item
    count = 10, --require # of items
    health = 15000, --new health that will be added(relative)
    mana = 15000, --new mana that will be added(relative)
    level = 30000,--required level
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) < level then
        doPlayerSendCancel(cid, 'You can not use this item at your current level.')
        return true
    end

    if getPlayerPromotionLevel(cid) > 0 then
        doPlayerSendCancel(cid, 'You are already promoted.')
        return true
    end
    
    if doPlayerRemoveItem(cid, setup.items, setup.count) then
        doRemoveItem(item.uid, 1)
        doPlayerSetPromotionLevel(cid, 1)
        setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+setup.health)
        setCreatureMaxMana(cid, getCreatureMaxMana(cid)+setup.mana)
        doSendMagicEffect(fromPosition, CONST_ME_FIREWORK_YELLOW)
        doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have been promoted to '..getPlayerVocationName(cid)..'!!')
        doPlayerSave(cid)
    else
        doPlayerSendCancel(cid, 'You don\'t have all the required items.')
        return true
    end
    return true
end
 
promotion lv? whats that? >.> and can u make also a simple one? (knight = ek etcs) that no remove item and need lv 6500? btw repped
also, im doing some monsters now, and need know the value of BLACK color... could u tell me? and i use tfs 0.3.6
 
promotion lv? whats that? >.> and can u make also a simple one? (knight = ek etcs) that no remove item and need lv 6500? btw repped
also, im doing some monsters now, and need know the value of BLACK color... could u tell me? and i use tfs 0.3.6
you don't seem to understand the tfs vocs system

TFS 0.2 (Mystic Spirit)
VocationID->Voc.Name
1->Sorcerer
2->Druid
3->Paladin
4->Knight
5->Promoted Sorcerer(Master Sorcerer)
6->Promoted Druid(Elder Druid)
7->Promoted Paladin(Royal Paladin)
8->Promoted Knight(Elite Knight)

TFS 0.3 (Crying Damson) / 0.4
Non-Promoted: (Voc.ID, Promotion Level)
1->Sorcerer, promotion level: 0
2->Druid, promotion level: 0
3->Paladin, promotion level: 0
4->Knight, promotion level: 0

Promoted: (Same Voc.ID, new Promotion Level)
1->Sorcerer, promotion level: 1 (Master Sorcerer)
2->Druid, promotion level: 1 (Elder Druid)
3->Paladin, promotion level: 1 (Royal Paladin)
4->Knight, promotion level: 1 (Elite Knight)
 
supposing you are using TFS 0.3+ and new promo lvl is 1
LUA:
local setup = {
    items = 9969, --required item
    count = 10, --require # of items
    health = 15000, --new health that will be added(relative)
    mana = 15000, --new mana that will be added(relative)
    level = 30000,--required level
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) < level then
        doPlayerSendCancel(cid, 'You can not use this item at your current level.')
        return true
    end

    if getPlayerPromotionLevel(cid) > 0 then
        doPlayerSendCancel(cid, 'You are already promoted.')
        return true
    end
    
    if doPlayerRemoveItem(cid, setup.items, setup.count) then
        doRemoveItem(item.uid, 1)
        doPlayerSetPromotionLevel(cid, 1)
        setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+setup.health)
        setCreatureMaxMana(cid, getCreatureMaxMana(cid)+setup.mana)
        doSendMagicEffect(fromPosition, CONST_ME_FIREWORK_YELLOW)
        doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have been promoted to '..getPlayerVocationName(cid)..'!!')
        doPlayerSave(cid)
    else
        doPlayerSendCancel(cid, 'You don\'t have all the required items.')
        return true
    end
    return true
end

How can i edit so it transform vocation 5 in 9, 6 in 10, 7 in 11 and 8 in 12? (keep part of remove items and add HP)
 
here you are
Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
	<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" 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="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" 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="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" 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.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="65" gainmanaticks="4" gainmanaamount="60" manamultiplier="1.4" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.0" 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="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="80" gainmanaticks="6" gainmanaamount="40" manamultiplier="3.0" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="4">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="100" gainmanaticks="2" gainmanaamount="150" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" 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="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="100" gainmanaticks="2" gainmanaamount="150" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" 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.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="150" gainmanaticks="3" gainmanaamount="130" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" 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="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="170" gainmanaticks="4" gainmanaamount="80" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="9" name="Super Wizard" description="a Super Wizard" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10000" gainmanaticks="2" gainmanaamount="20000" manamultiplier="1.1" attackspeed="300" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="50">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" 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="10" name="Mighty Cleric" description="a Mighty Cleric" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10000" gainmanaticks="2" gainmanaamount="20000" manamultiplier="1.1" attackspeed="300" soulmax="200" gainsoulticks="15" fromvoc="6" lessloss="50">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" 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.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="11" name="Heavy Shooter" description="a Heavy Shooter" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="15000" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="300" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="50">
		<formula meleeDamage="1.0" distDamage="1.0" 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="12" name="Heavy Tanker" description="a Heavy Tanker" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="20000" gainmanaticks="4" gainmanaamount="10000" manamultiplier="3.0" attackspeed="300" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="13" name="Admin" description="a Admin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="20000" gainmanaticks="4" gainmanaamount="10000" manamultiplier="3.0" attackspeed="2" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50">
		<formula meleeDamage="10.0" distDamage="10.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>

</vocations>
Admin vocation was just a test :P
 
How can i edit so it transform vocation 5 in 9, 6 in 10, 7 in 11 and 8 in 12? (keep part of remove items and add HP)
LUA:
local setup = {
    promotion = 2, --promotion level
    items = 9969, --required item
    count = 10, --require # of items
    health = 15000, --new health that will be added(relative)
    mana = 15000, --new mana that will be added(relative)
    level = 30000,--required level
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) < level then
        doPlayerSendCancel(cid, 'You can not use this item at your current level.')
        return true
    end
 
    if getPlayerPromotionLevel(cid) >= setup.promotion then
        doPlayerSendCancel(cid, 'You are already promoted.')
        return true
    end
 
    if doPlayerRemoveItem(cid, setup.items, setup.count) then
        doRemoveItem(item.uid, 1)
        doPlayerSetPromotionLevel(cid, setup.promotion)
        setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+setup.health)
        setCreatureMaxMana(cid, getCreatureMaxMana(cid)+setup.mana)
        doSendMagicEffect(fromPosition, CONST_ME_FIREWORK_YELLOW)
        doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have been promoted to '..getPlayerVocationName(cid)..'!!')
        doPlayerSave(cid)
    else
        doPlayerSendCancel(cid, 'You don\'t have all the required items.')
        return true
    end
    return true
end
 
but will that rly change voc 5 in 9 etcs?
i use tfs 0.3.6 but its upgraded from 8.31 - also i miss some functions :S - like maxhealthpercent S:
 
Back
Top