divinelion
New Member
- Joined
- Dec 24, 2008
- Messages
- 9
- Reaction score
- 0
Server name: theforgottenserver-v0.2.11pl2-win32gui (tibia 9.1)
Well... first i change all the professions and tryied to configure the oracle for that:
And this is my professions:
But when he send me to "main" (altaria) i dont get the vocation... im "dont have profession"... and if i tryied to do this with the acc maker, dont ask me what vocation i would to be.
This is my config.lua
Where i need change to accept that vocations?
And other thing... my sqlite dont change my database, im try to change id_group to 3 (god) but when i refresh become 1 again... i dont have tibia open in the moment when i change. Too, if had a sqlite better or the answer why this software dont change my database.
Please help with this little problem
Well... first i change all the professions and tryied to configure the oracle for that:
Code:
<npc name="The Oracle" floorchange="0" walkinterval="0">
<health now="150" max="150"/>
<look typeex="1448"/>
<interaction range="3" idletime="30">
<interact keywords="hi" focus="1">
<!--These are the keywords will trigger this interaction-->
<keywords>hello</keywords>
<keywords>greet</keywords>
<response>
<action name="script">
<![CDATA[
if(getPlayerLevel(cid)) >= 8 then
selfSay(getCreatureName(cid) .. ", ARE YOU PREPARED O FACE YOUR DESTINY?")
_state.b1 = (isPremium(cid) == TRUE)
_state.topic = 1
else
selfSay("CHILD! COME BACK WHEN YOU HAVE GROWN UP!")
_state.isidle = true
end
]]>
</action>
</response>
</interact>
<interact keywords="yes" topic="1">
<!--Premium account, b1 is set in above-->
<response b1="1" text="IN WHICH TOWN DO YOU WANT TO LIVE: Altaria, Coldveins, Ironwalls?">
<action name="topic" value="2"/>
</response>
<!--Normal account-->
<response text="IN WHICH TOWN DO YOU WANT TO LIVE: Altaria, Ironwalls?">
<action name="topic" value="2"/>
</response>
</interact>
<interact keywords="altaria" topic="2">
<response text="IN Altaria! AND WHAT PROFESSION HAVE YOU CHOSEN: Mage, Druid, Paladin, Warrior, Warlock, Rogue, Hunter or Priest?">
<!--n1: 1 = altaria, 2 = Coldveins, 3 = ironwalls-->
<action name="script">
<![CDATA[
_state.n1 = 1
_state.topic = 3
]]>
</action>
</response>
</interact>
<interact keywords="ironwalls" topic="2">
<response text="IN Ironwalls! AND WHAT PROFESSION HAVE YOU CHOSEN: Mage, Druid, Paladin, Warrior, Warlock, Rogue, Hunter or Priest?">
<!--n1: 1 = altaria, 2 = coldveins, 3 = ironwalls-->
<action name="script">
<![CDATA[
_state.n1 = 2
_state.topic = 3
]]>
</action>
</response>
</interact>
<interact keywords="coldveins" topic="2">
<response text="YOU NEED A PREMIUM ACCOUNT IN ORDER TO GO THERE!">
<!--Set the topic back to 2, ie. choose a new town.-->
<action name="topic" value="2"/>
</response>
<!--b1: premium account, see <interact keywords="hi" focus="1"> where _state.b1 is is set.-->
<response b1="1" text="IN Coldveins! AND WHAT PROFESSION HAVE YOU CHOSEN: Mage, Druid, Paladin, Warrior, Warlock, Rogue, Hunter or Priest?">
<!--n1: 1 = altaria, 2 = coldveins, 3 = ironwalls, 4 = venore-->
<action name="script">
<![CDATA[
_state.n1 = 3
_state.topic = 3
]]>
</action>
</response>
</interact>
<!--If the player does not say any city, repeat our question-->
<interact keywords="|*|" topic="2">
<response b1="1" text="Altaria, Coldveins, Ironwalls?"/>
<response text="Altaria, Coldveins, Ironwalls, OR VENORE?"/>
</interact>
<interact keywords="mage" topic="3">
<response text="A mage! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 1
_state.topic = 4
]]>
</action>
</response>
</interact>
<interact keywords="druid" topic="3">
<response text="A DRUID! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 2
_state.topic = 4
]]>
</action>
</response>
</interact>
<interact keywords="paladin" topic="3">
<response text="A PALADIN! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 3
_state.topic = 4
]]>
</action>
</response>
</interact>
<interact keywords="warrior" topic="3">
<response text="A Warrior! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 4
_state.topic = 4
]]>
</action>
</response>
</interact>
<interact keywords="rogue" topic="3">
<response text="A Rogue! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 5
_state.topic = 4
]]>
</action>
</response>
</interact>
<interact keywords="hunter" topic="3">
<response text="A Hunter! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 6
_state.topic = 4
]]>
</action>
</response>
</interact>
<interact keywords="warlock" topic="3">
<response text="A Warrior! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 7
_state.topic = 4
]]>
</action>
</response>
</interact>
<interact keywords="priest" topic="3">
<response text="A Priest! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!">
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
_state.n2 = 8
_state.topic = 4
]]>
</action>
</response>
</interact>
<!--If the player does not say any profession, repeat our question-->
<interact keywords="|*|" topic="3">
<response text="Mage, Druid, Paladin, Warrior, Warlock, Rogue, Hunter or Priest?"/>
</interact>
<interact keywords="yes" topic="4">
<response>
<!--n1: 1 = altaria, 2 = coldveins, 3 = ironwalls-->
<!--n2: 1 = mage, 2 = druid, 3 = paladin, 4 = warrior, 5 = rogue, 6 = hunter, 7 = warlock, 8 = priest-->
<action name="script">
<![CDATA[
local pos = 0
if(_state.n1 == 1) then
pos = {x=159, y=387, z=6}
elseif(_state.n1 == 2) then
pos = {x=501, y=172, z=7}
elseif(_state.n1 == 3) then
pos = {x=241, y=428, z=12}
else
selfSay("I DO NOT KNOW WHAT PROFESSION THAT IS, ASK THE GODS FOR GUIDANCE!")
return
end
selfSay("SO BE IT!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
if(doTeleportThing(cid, pos) == 0) then
doPlayerSetTown(cid, _state.n1)
doPlayerSetVocation(cid, _state.n2)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
]]>
</action>
<action name="idle" value="1"/>
</response>
</interact>
<interact keywords="bye" focus="0">
<keywords>farewell</keywords>
<response text="Good bye. Recommend us, if you were satisfied with our service."/>
</interact>
<interact event="onBusy">
<response text="WAIT UNTIL IT IS YOUR TURN!">
<action name="addqueue" value="|PLAYER|"/>
</response>
</interact>
<!--This event triggers if the player goes to far away from the npc/logout/idle timeout-->
<interact event="onPlayerLeave" focus="0">
<response text="COME BACK WHEN YOU ARE PREPARED TO FACE YOUR DESTINY!"/>
</interact>
</interaction>
</npc>
And this is my professions:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
<vocation id="0" name="None" description="none" 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">
<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>
<vocation id="1" name="Mage" description="a mage" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 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>
<vocation id="2" name="Druid" description="a druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 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="3" name="Paladin" description="a paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" 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="4" name="Warrior" description="a warrior" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="5" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" 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="5" name="Rogue" description="a rogue" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="5">
<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>
<vocation id="6" name="Hunter" description="a hunter" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="6">
<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="7" name="Warlock" description="a warlock" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="7">
<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="8" name="Priest" description="a priest" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="8">
<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>
</vocations>
But when he send me to "main" (altaria) i dont get the vocation... im "dont have profession"... and if i tryied to do this with the acc maker, dont ask me what vocation i would to be.
This is my config.lua
Code:
-- Account Manager
accountManager = "yes"
newPlayerChooseVoc = "yes"
newPlayerSpawnPosX = 159
newPlayerSpawnPosY = 387
newPlayerSpawnPosZ = 6
newPlayerTownId = 1
newPlayerLevel = 8
newPlayerMagicLevel = 0
generateAccountNumber = "no"
Where i need change to accept that vocations?
And other thing... my sqlite dont change my database, im try to change id_group to 3 (god) but when i refresh become 1 again... i dont have tibia open in the moment when i change. Too, if had a sqlite better or the answer why this software dont change my database.
Please help with this little problem
