Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 03.02.2006, 22:47   #1
GANSH
Архивный участник
 
Join Date: Feb 2006
Posts: 21
Default How to change beginning Items???

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...
GANSH is offline  
Old 03.02.2006, 22:56   #2
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

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.
Aikeleer is offline  
Old 03.02.2006, 23:07   #3
GANSH
Архивный участник
 
Join Date: Feb 2006
Posts: 21
Default

Quote:
Originally Posted by Aikeleer
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?
GANSH is offline  
Old 03.02.2006, 23:37   #4
johnsmith2
Архивный участник
 
Join Date: Jan 2006
Posts: 82
Default

you can, there is a sql procedure for creating char, so use it
johnsmith2 is offline  
Old 03.02.2006, 23:54   #5
GANSH
Архивный участник
 
Join Date: Feb 2006
Posts: 21
Default

Quote:
Originally Posted by johnsmith2
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:
GANSH is offline  
Old 03.02.2006, 23:58   #6
Mayii
Архивный участник
 
Join Date: Aug 2005
Posts: 113
Default

probably lin2world, he? and probably something like lin_CreateCharacter or so. just browse the stored procs.
Mayii is offline  
Old 04.02.2006, 01:15   #7
GANSH
Архивный участник
 
Join Date: Feb 2006
Posts: 21
Default

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???
GANSH is offline  
Old 04.02.2006, 01:25   #8
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

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 :]
horyfilipe is offline  
Old 04.02.2006, 01:34   #9
GANSH
Архивный участник
 
Join Date: Feb 2006
Posts: 21
Default

Quote:
Originally Posted by horyfilipe
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?
GANSH is offline  
Old 04.02.2006, 03:03   #10
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

Not for the DB, but for the rest of the server :P
Flamestrike is offline  
Old 04.02.2006, 04:18   #11
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

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
horyfilipe is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:44.