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

Acc Manager Gives No Vocation.. :(

Devilz

New Member
Joined
Oct 17, 2008
Messages
10
Reaction score
0
I basically got this ot from nilsson, Its a XML 8.1 server and the acc manager doesnt give a vocation..
All it says is :
-- Account Manager
accountManager = "yes"
Doesnt say make it optionable for them to choose a vocation .. I've tried adding these lines :
-- Account Manager
accountManager = "yes"
newPlayerChooseVoc = "yes"
newPlayerSpawnPosX = 793
newPlayerSpawnPosY = 1014
newPlayerSpawnPosZ = 7
newPlayerTownId = 1
newPlayerLevel = 8
newPlayerMagicLevel = 1
generateAccountNumber = "no"
It still didnt work, If you have solution to this please post it.
I dont know much about these sorta things :) Help is needed!

Thanks for help in advance.

#Regards ~DevilZ~
 
I'd recommend you to switch to another OT (SQL!!), however if you do not wish to do so you could always create a small room where you start, then add 4 chest boxes where you can pick your vocation, and you may not leave the room until you've choosen a vocation.

Just playing with some thoughts~
 
EDIT!!!

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerVocation(cid) == 0 then
        if item.uid == 5555 then
            doPlayerSetVocation(cid,1)
            doPlayerSendTextMessage(cid, 22, "You are now a sorcerer!")
        else if item.uid == 5556 then
            doPlayerSetVocation(cid,2)
            doPlayerSendTextMessage(cid, 22, "You are now a druid!")
        else if item.uid == 5557 then
            doPlayerSetVocation(cid,3)
            doPlayerSendTextMessage(cid, 22, "You are now a paladin!")
        else if item.uid == 5558 then
            doPlayerSetVocation(cid,4)
            doPlayerSendTextMessage(cid, 22, "You are now a knight!")
        end
    else
        doPlayerSendTextMessage(cid, 22, "You already picked a vocation.")
    end
end
Now just assign ID 5555 -> 5558 on 4 different chestboxes (5555 = sorc, 5556 = druid, 5557 = pally, 5558 = knight). Also required to add it in your actions.xml file.
 
Anytime mate, let me know if any errors occurr! Also I wouldn't mind recieving a reputation point :cool:
 
Ok ill give you one ^.^

Can you say a little more detail on the chests? It didnt work for me :/
The chest just opened :O
 
If you read the first post you can clearly see he already tried that ^^
@Devilz; Did you add the chests in data/actions/actions.xml?
 
Erhm.. Sorry i only added the code/script you gave me into actions under "Voc Chest"..

I didnt know for sure what to put for the chests..

P.S Have msn? Be easier to talk on there :)
 
Yeah I do, but I'd like to keep it personal, sorry mate.

In case you saved the other file in data/actions/scripts/quests/ as voc chest.lua then this should work. If not, just change the script="" part.

data/actions/actions.xml
Code:
<action uniqueid="5555" script="quests/voc chest.lua"/>
<action uniqueid="5556" script="quests/voc chest.lua"/>
<action uniqueid="5557" script="quests/voc chest.lua"/>
<action uniqueid="5558" script="quests/voc chest.lua"/>

Anywhere you want.
 
Ok mate, dont worry about msn :p

I've gave you rep.. Thanks alot for helping me out ^^
Im getting
Warning: [Event::loadScript] Can not load script data/actions/scripts/voc chest.lua : No such file or directory

Is this because i haven't added the chests to my map yet.. or another problem?
 
Last edited:
This should do, sorry for the late reply btw.
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerVocation(cid) == 0 then
        if item.uid == 5555 then
            doPlayerSetVocation(cid,1)
            doPlayerSendTextMessage(cid, 22, "You are now a sorcerer!")
        elseif item.uid == 5556 then
            doPlayerSetVocation(cid,2)
            doPlayerSendTextMessage(cid, 22, "You are now a druid!")
        elseif item.uid == 5557 then
            doPlayerSetVocation(cid,3)
            doPlayerSendTextMessage(cid, 22, "You are now a paladin!")
        elseif item.uid == 5558 then
            doPlayerSetVocation(cid,4)
            doPlayerSendTextMessage(cid, 22, "You are now a knight!")
        end
    else
        doPlayerSendTextMessage(cid, 22, "You already picked a vocation.")
    end
end
 
Back
Top