Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 29.05.2006, 19:40   #1
GamesX
Архивный участник
 
Join Date: Apr 2006
Posts: 52
Default [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!
GamesX is offline  
Old 29.05.2006, 20:50   #2
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

As long as I can remember, you can't do that in settings.txt
Truffe is offline  
Old 29.05.2006, 20:51   #3
OnlyOne
Архивный участник
 
Join Date: Apr 2005
Posts: 98
Default

use sql create char stored procedure.
OnlyOne is offline  
Old 29.05.2006, 23:10   #4
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default

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')
nowak2006 is offline  
 


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:15.