PDA

View Full Version : [share] SQL First Character Bonus Adena + 2nd Class Q Items Auto Delivery


Firedaemon
10.07.2007, 19:21
I have not shared anything in a while, so I figured I would do so since I found a few *slightly useful* things over the past month from other contributions.
YwcGGb,%-%K0KB/sL0ShLMHQRSe)io'.zRK)xn%1
I always give when I take :P

I modified the process when a new character is created;

1. First character on an account gets bonus adena to encourage new players
2. Second class quest items are auto delivered to all toons upon creation.

As always, with most of my shares, if you want the password, just PM me.

You must have shared something in the last 90 days on PP to get the password.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
lin_CreateChar.rar — 1748 байт

RiVaL
10.07.2007, 21:38
Watch out Fire, Paul got pissed at me for making shares that are passworded. Deleted all my posts. =)

goodtimeshaxor
10.07.2007, 22:06
Great! I didn't know how to do this so I worked around it by giving all new characters a "packed item" that unpacks with X number of items when double clicked.

Wish I had this a few months back =) But it is still useful. Thanks

FidoW
10.07.2007, 22:45
Not too hard really... basic SQL commands...

Something like that ...


DECLARE @item_type INT
DECLARE @amount INT

SET @item_type = 57
SET @amount = 100000

INSERT INTO user_item (char_id,item_type,amount,enchant,eroded,bless,ide nt,wished,warehouse)
VALUES (@char_id,@item_type,@amount,0,0,0,0,0,0)

Aida
10.07.2007, 23:43
And here not simpler, you want all that to disfigure procedures of SQL. In setting.txt all is done far simpler and manipulating with classes is possible but not to pour everything in a heap.


setting.txt
//플레이어가 처음 시작할 때 가지고 시작하는 장비 리스트
initial_equipment_begin
human_fighter={[squire's_sword];[dagger];[squire's_shirt];[squire's_pants];[tutorial_guide]}
human_magician={[apprentice's_wand];[apprentice's_tunic];[apprentice's_hose];[tutorial_guide]}
elf_fighter={[squire's_sword];[dagger];[squire's_shirt];[squire's_pants];[tutorial_guide]}
elf_magician={[apprentice's_wand];[apprentice's_tunic];[apprentice's_hose];[tutorial_guide]}
darkelf_fighter={[squire's_sword];[dagger];[squire's_shirt];[squire's_pants];[tutorial_guide]}
darkelf_magician={[apprentice's_wand];[apprentice's_tunic];[apprentice's_hose];[tutorial_guide]}
orc_fighter={[squire's_sword];[training_gloves];[squire's_shirt];[squire's_pants];[tutorial_guide]}
orc_shaman={[training_gloves];[apprentice's_tunic];[apprentice's_hose];[tutorial_guide]}
dwarf_apprentice={[union_member's_club];[dagger];[squire's_shirt];[squire's_pants];[tutorial_guide]}
initial_equipment_end

L2server.ini
test_2nd_class=on - ready GM shop with distribution of professions, one time on that business went

m4rk
10.07.2007, 23:46
The problem with setting.txt is that you can' set quantity of an item...

Firedaemon
11.07.2007, 18:04
Watch out Fire, Paul got pissed at me for making shares that are passworded. Deleted all my posts. =)

Well I have always made shares like that to prevent leechers from taking without giving.

Yes Fidow, it is simple, but time saving nonetheless for someone who wants it.