PDA

View Full Version : How to change beginning Items???


GANSH
03.02.2006, 22:47
in my server players start with 0 adena, so I want players to start with for example 5000 adena. Where should I put this value???

I found something in settings.txt

initial_equipment_begin
human_fighter={[squire's_sword];[dagger];[squire's_shirt];[squire's_pants]}
human_magician={[apprentice's_wand];[apprentice's_tunic];[apprentice's_hose]}
elf_fighter={[squire's_sword];[dagger];[squire's_shirt];[squire's_pants]}
elf_magician={[apprentice's_wand];[apprentice's_tunic];[apprentice's_hose]}
darkelf_fighter={[squire's_sword];[dagger];[squire's_shirt];[squire's_pants]}
darkelf_magician={[apprentice's_wand];[apprentice's_tunic];[apprentice's_hose]}
orc_fighter={[training_gloves];[squire's_sword];[squire's_shirt];[squire's_pants]}
orc_shaman={[apprentice's_wand];[apprentice's_tunic];[apprentice's_hose]}
dwarf_apprentice={[union_member's_club];[dagger];[squire's_shirt];[squire's_pants]}
initial_equipment_end

and I tried to add here like ;[adena]=5000; or ;{[adena];5000}; but didnt work. is this the right place? or where is the right place? and how to do that? Thx for help and know hat I really used searched many times...

Aikeleer
03.02.2006, 22:56
Create another item that everyone gets, edit the tutorial AI so once you made your character the item will be traded in for 5k adena. You can do this if you know your way a bit in AI. Otherwise you can use the multisell and add a new item to the settings.txt that you can trade in for 5k.

GANSH
03.02.2006, 23:07
Create another item that everyone gets, edit the tutorial AI so once you made your character the item will be traded in for 5k adena. You can do this if you know your way a bit in AI. Otherwise you can use the multisell and add a new item to the settings.txt that you can trade in for 5k.

thx for help but does this mean that I cant put adena to inventory of new player?

johnsmith2
03.02.2006, 23:37
you can, there is a sql procedure for creating char, so use it

GANSH
03.02.2006, 23:54
you can, there is a sql procedure for creating char, so use it

The post u did really made me very happy. And I will feel PERFECT if u say the name of the Stored Procedure u were talking about and the name of the db whi it belongs. :wink:

Mayii
03.02.2006, 23:58
probably lin2world, he? and probably something like lin_CreateCharacter or so. just browse the stored procs.

GANSH
04.02.2006, 01:15
yeah I found it. its in lin2world and its name is lin_CreateChar

I put some INSERT INTO user_item code here and it worked but server console gave some error

account.cpp 341 error connol load week play time

it doesnt effect game play but does it grow bigger problems in db on following days and when the db gets bigger???

horyfilipe
04.02.2006, 01:25
it means the char is new so that it cant load week play time.. btw, making players start with adena.. imagine the amount new chars ur server will have just to take hands on the adena :]

GANSH
04.02.2006, 01:34
it means the char is new so that it cant load week play time.. btw, making players start with adena.. imagine the amount new chars ur server will have just to take hands on the adena :]

My English is not so good but I understood that u mean ppl will open new chars for free adena. Yeah?

And we created some chars before but there was no such an error. Can that error be harmful for db?

Flamestrike
04.02.2006, 03:03
Not for the DB, but for the rest of the server :P

horyfilipe
04.02.2006, 04:18
yes, people will make new chars for free adena.

About error, this is when it tries to calculate the time the player played on the week, but as the char is new, it can't load. This is not harmful