![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Apr 2006
Posts: 52
|
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
Would anybody know how I do to define numbers? Ex: how do I do to be born with 500 SSNG? Thank you! |
|
|
|
|
#2 |
|
Архивный участник
Join Date: May 2005
Posts: 944
|
As long as I can remember, you can't do that in settings.txt
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Apr 2005
Posts: 98
|
use sql create char stored procedure.
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: May 2006
Posts: 53
|
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') |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|