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

Hi , need help.

ilpoonu

New Member
Joined
Jan 4, 2008
Messages
127
Reaction score
1
Few Questions:

1)How can i change the acc mananger (cant find it)
[So i can change it to also give vocs , atm when you make char it makes you no voc]

2)How to change starting set?

Thx
 
You should name what distro of otserv are you using, also show your acc manager configuration. Anyways, You can do all that in Config.lua, Accout namanger section should have if players are allowed to pic vocations, and configs of FIrst item should be in Creature scripts if you are not using a special Config.lua
 
For question number two :-

Goto data/creaturescripts/scripts

Make a .lua file called firstitems

Add this to it :-

-- Colandus @ 1337Rox0r

-- How to think when adding items? Try fill the hands first, then the arrow slot. This because armor etc won't go to hand slot (Vocation items will be given before commonItems, as you usually use to have
-- the hand/arrow slot items there and not in common items. Take a look at how I did it:

local commonItems = {
-- ITEMS ALL VOC RECEIVE
{itemid=2457, count=1}, -- demon set (legs, helm, arm)
{itemid=2463, count=1},
{itemid=2647, count=1},
{itemid=2160, count=10},
{itemid=2643, count=1},
{itemid=2661, count=1},
{itemid=2120, count=1},
{itemid=2554, count=1},
{itemid=2671, count=5}
}

local firstItems = {
{ -- SORC ITEMS
{itemid=2190, count=1}, -- wand
{itemid=2525, count=1}, --dwarven shield
{itemid=2268, count=100}, --sd
{itemid=2273, count=100}, --uh
{itemid=2304, count=100} --gfb
},
{ -- DRUID ITEMS
{itemid=2182, count=1}, -- rod
{itemid=2525, count=1}, --dwarven shield
{itemid=2268, count=100}, --sd
{itemid=2273, count=100}, --uh
{itemid=2304, count=100} --gfb
},
{ -- PALADIN ITEMS
{itemid=2455, count=1}, --xbow
{itemid=2543, count=1}, --1 bolt
{itemid=2268, count=100}, --sd
{itemid=2273, count=100}, --uh
{itemid=2304, count=100} --gfb
},
{ -- KNIGHT ITEMS
{itemid=2432, count=1}, -- fire axe o_O
{itemid=2525, count=1}, --dwarven shield
{itemid=2407, count=1}, --bright sword
{itemid=2436, count=1}, --skull staff
{itemid=2273, count=100} --uh
}
}

for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end

function onLogin(cid)
if getPlayerGroupId(cid) < 2 then
local hasReceivedFirstItems = getPlayerStorageValue(cid, 90808)

if hasReceivedFirstItems ~= TRUE then
--[[local backpack = ]]doPlayerAddItem(cid, 1988, TRUE)

local giveItems = firstItems[getPlayerVocation(cid)]

if giveItems ~= nil then
for _, v in ipairs(giveItems) do
--doAddContainerItem(backpack, v.itemid, v.count or 1)
doPlayerAddItem(cid, v.itemid, v.count or 1)
end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You received your first items depending on your vocation.")
end
setPlayerStorageValue(cid, 90808, TRUE)
end
end
return TRUE
end

Then go to data/creaturescripts.xml

and add this line :-

<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

Restart your server, and make an account, it will work fine!

Please give me rep++ If it worked!
 
You should name what distro of otserv are you using, also show your acc manager configuration. Anyways, You can do all that in Config.lua, Accout namanger section should have if players are allowed to pic vocations, and configs of FIrst item should be in Creature scripts if you are not using a special Config.lua

Its Evolution i think (XML)

inside config there is only

-- use account manager? (yes/no)
accountmanager = "yes"

nothing more about Manager
 
u said how will u change starting set i gave u this if u do it, then when u create sorc it will give u special items , druid also special , and so on for all vocations.. it works fine thats what u asked and here is the answer ^^
 
Few Questions:

1)How can i change the acc mananger (cant find it)
[So i can change it to also give vocs , atm when you make char it makes you no voc]

2)How to change starting set?

Thx


You want to change the looktype and/or its position, both those are located in the database. Under nameofserver, players, account manager, looktype(whole number) & posx(whole number), posy(whole number), posz(whole number 0 - 15)

In your config file you should have a setting that says something like this newPlayerChooseVoc = "yes" make sure it says yes

And use Collandus's script for your first time items, if your not sure what the item id's are check any map editor that is equal to your server for the item id's.
 
i did but it wont help because atm the starter items you get via Acc manager.

If you're using Evolutions (XML) then Im pretty sure you have to change the items on the "account manager" character itself, just like you said. Open the char "account manager" and find the inventory part, then identify each slot and put the items u want but all vocations will receive the same items that way.

Strong recommendation:
Switch to SQL servers. They are way better than XML and there are many tutorials in this forum on how to setup a SQL server correctly and easily. There are many SQL distributions in this forum, just go to the Downloads section and then Distributions (Distros), there you can choose the one you wish, being TFS the best and most popular.

Cheers~
 
Few Questions:

1)How can i change the acc mananger (cant find it)
[So i can change it to also give vocs , atm when you make char it makes you no voc]

2)How to change starting set?

Thx
First question!

-- Account Manager
accountManager = "yes"
newPlayerChooseVoc = "yes" <----
newPlayerSpawnPosX = 1
newPlayerSpawnPosY = 1
newPlayerSpawnPosZ = 7
newPlayerTownId = 1
newPlayerLevel = 8
newPlayerMagicLevel = 0
generateAccountNumber = "no"
 
yeah but inside what file it is ? name.lua/xml/txt ?

Thats on config.lua, but as you're using Evolutions (XML) the only thing about acc manager you will find in the config.lua there is the choice to use it (yes/no), there's no more configurations to account manager from there. Not in Evo.

What drimdrom said is what you can find on the config.lua of TFS.

Again, you should switch ;)

Cheers~
 
So where can i find the rest of the acc manager settings?

Ok mate, I dont think you're understanding me lol :p

Let me put it easy for ya:

The server you will (should) use from now on:
http://otland.net/f18/8-4-forgotten-server-v0-3-2-crying-damson-25767/

How to create/setup your TFS correctly:
http://otland.net/f137/all-steps-how-create-forgotten-server-7839/
(this tutorial is kinda outdated but maybe it still works, try it and if it doesnt work find another tutorial like the one below)

How to setup your SQL database (with photos), if last one didnt work out:
http://otland.net/f137/how-setup-mysql-answers-normal-errors-too-photos-now-11804/

Other useful tutorials:
http://otland.net/f137/ot-server-how-why-22076/
http://otland.net/f137/tutorial-how-compile-forgotten-server-latest-sources-166/

Time to start reading :)

Cheers~
 
I understand you well , but i do like XML more , i had SQL but i still like XML more.

And Im asking Where i can FIND the Acc manager SCRIPT? since nothing can run without a SCRIPT.
 
Back
Top