Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [HELP-ME] About setting.txt (https://postpacific.loc-online.com/showthread.php?t=4609)

GamesX 29.05.2006 19:40

[HELP-ME] About setting.txt
 
I am care of a problem with setting.txt, I would like to put for my players to be born with more than 1 item of the same and I am not getting;

Ex: as I do to put for him to be born with 7 [red_potion]

Code:

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

I did like this, more it was not good because each potion occupies a slot in the inventory!

Would anybody know how I do to define numbers?

Ex: how do I do to be born with 500 SSNG?

Thank you!

Truffe 29.05.2006 20:50

As long as I can remember, you can't do that in settings.txt

OnlyOne 29.05.2006 20:51

use sql create char stored procedure.

nowak2006 29.05.2006 23:10

Drop and create again the store procedure lin_CreateChar (table lin2world) adding the follow sql into the procedure:

Code:

INSERT INTO user_item
(user_item.char_id,user_item. item_type, user_item.amount, user_item.enchant, user_item.eroded,user_item. bless,user_item. ident,user_item. wished,user_item. warehouse)
VALUES
(@char_id, '65', '7' , '0', '0', '0', '0', '0', '0')



All times are GMT. The time now is 15:26.