Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 03.08.2005, 00:49   #1
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default [Sharing] Gamble npc ;)

Well i made this package for you, maybe something good maybe not, maybe useful, maybe useless ^^.

[right:5e9ffe1295]http://img338.imageshack.us/img338/1951/Shot00012.jpg[/right:5e9ffe1295]
SoaPy is offline  
Old 03.08.2005, 01:02   #2
noypi
Архивный участник
 
Join Date: Jun 2005
Posts: 104
Default

cool tnx soapy
noypi is offline  
Old 03.08.2005, 01:15   #3
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

that is very cool

but I never realize casino can work on recipe script ;-DD

I past here code for lazy ass .. I add this to event_human / elf /delf ..etc they are useless it can work with this and noone need client side patch
rodier is offline  
Old 03.08.2005, 01:37   #4
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by rodier
that is very cool

but I never realize casino can work on recipe script ;-DD

I past here code for lazy ass .. I add this to event_human / elf /delf ..etc they are useless it can work with this and noone need client side patch
yes is the best way, i added a npc to client because iam too lazy to search an empty or useless npc ^^.
SoaPy is offline  
Old 03.08.2005, 01:42   #5
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

Code:
npc_begin	citizen	12260	[event_human]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.4	undying=1	can_be_attacked=0	acquire_sp=4	race=human	sex=female	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=fist	base_can_penetrate=0	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=1000	org_mp=1000	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx4851683855	physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=253	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=0	collision_radius=8	collision_height=24	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[event_darkelf];{[fnHi] = [gamble_master_01.htm]}}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	12261	[event_elf]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.4	undying=1	can_be_attacked=0	acquire_sp=4	race=elf	sex=female	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=fist	base_can_penetrate=0	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=1000	org_mp=1000	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx4851683855	physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=253	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=0	collision_radius=8	collision_height=24	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[event_elf];{[fnHi] = [gamble_master_01.htm]}}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	12262	[event_darkelf]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.4	undying=1	can_be_attacked=0	acquire_sp=4	race=darkelf	sex=female	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=fist	base_can_penetrate=0	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=1000	org_mp=1000	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx4851683855	physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=253	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=0	collision_radius=8	collision_height=24.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[event_darkelf];{[fnHi] = [gamble_master_01.htm]}}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	12263	[event_dwarf]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.4	undying=1	can_be_attacked=0	acquire_sp=4	race=dwarf	sex=female	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=fist	base_can_penetrate=0	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=1000	org_mp=1000	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx4851683855	physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=253	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=0	collision_radius=7	collision_height=18.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[event_dwarf];{[fnHi] = [gamble_master_01.htm]}}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	12264	[event_orc]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.4	undying=1	can_be_attacked=0	acquire_sp=4	race=orc	sex=female	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=fist	base_can_penetrate=0	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=1000	org_mp=1000	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx4851683855	physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=253	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=0	collision_radius=8	collision_height=24	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[event_orc];{[fnHi] = [gamble_master_01.htm]}}	corpse_time=7	no_sleep_mode=0	npc_end
I think replacing your event_ npcs with this code will work too and noone need clientside patch :-) its all about find & replace in npcdata / ai.obj / + adding few lines to npcpos.txt

Code:
class event_human : merchant_for_cgrade
class_end


class event_elf : merchant_for_cgrade
class_end


class event_darkelf : merchant_for_cgrade
class_end


class event_dwarf : merchant_for_cgrade
class_end


class event_orc : merchant_for_cgrade
class_end

Code:
territory_begin	[L2day_ti]	{{-84577;243088;-3784;-3584};{-84377;243088;-3784;-3584};{-84377;243288;-3784;-3584};{-84577;243288;-3784;-3584}}	territory_end
npcmaker_begin	[L2day_ti]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {-84477;243188;-3730;32768}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_gludin]	{{-83129;150765;-3184;-2984};{-82929;150765;-3184;-2984};{-82929;150965;-3184;-2984};{-83129;150965;-3184;-2984}}	territory_end
npcmaker_begin	[L2day_gludin]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {-83029;150865;-3130;16384}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_gludio]	{{-14236;123763;-3172;-2972};{-14036;123763;-3172;-2972};{-14036;123963;-3172;-2972};{-14236;123963;-3172;-2972}}	territory_end
npcmaker_begin	[L2day_gludio]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {-14136;123863;-3118;40960}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_dion]	{{19290;144912;-3163;-2963};{19490;144912;-3163;-2963};{19490;145112;-3163;-2963};{19290;145112;-3163;-2963}}	territory_end
npcmaker_begin	[L2day_dion]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {19390;145012;-3109;16384}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_floran]	{{17264;170469;-3556;-3356};{17464;170469;-3556;-3356};{17464;170669;-3556;-3356};{17264;170669;-3556;-3356}}	territory_end
npcmaker_begin	[L2day_floran]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {17364;170569;-3502;49152}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_giran]	{{82733;148513;-3534;-3334};{82933;148513;-3534;-3334};{82933;148713;-3534;-3334};{82733;148713;-3534;-3334}}	territory_end
npcmaker_begin	[L2day_giran]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {82833;148613;-3470;32768}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_oren]	{{80907;55093;-1580;-1380};{81107;55093;-1580;-1380};{81107;55293;-1580;-1380};{80907;55293;-1580;-1380}}	territory_end
npcmaker_begin	[L2day_oren]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {81007;55193;-1526;40960}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_hunters]	{{116761;75429;-2786;-2586};{116961;75429;-2786;-2586};{116961;75629;-2786;-2586};{116761;75629;-2786;-2586}}	territory_end
npcmaker_begin	[L2day_hunters]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {116861;75529;-2732;24576}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_aden]	{{147354;27728;-2323;-2123};{147554;27728;-2323;-2123};{147554;27928;-2323;-2123};{147354;27928;-2323;-2123}}	territory_end
npcmaker_begin	[L2day_aden]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_human]	pos = {147454;27828;-2269;16384}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_darkelf]	{{11250;16663;-4716;-4516};{11450;16663;-4716;-4516};{11450;16863;-4716;-4516};{11250;16863;-4716;-4516}}	territory_end
npcmaker_begin	[L2day_darkelf]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_darkelf]	pos = {11350;16763;-4662;49152}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_elf]	{{44686;49476;-3115;-2915};{44886;49476;-3115;-2915};{44886;49676;-3115;-2915};{44686;49676;-3115;-2915}}	territory_end
npcmaker_begin	[L2day_elf]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_elf]	pos = {44786;49576;-3061;32768}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_orc]	{{-44766;-113704;-254;-54};{-44566;-113704;-254;-54};{-44566;-113504;-254;-54};{-44766;-113504;-254;-54}}	territory_end
npcmaker_begin	[L2day_orc]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_orc]	pos = {-44666;-113604;-200;1}	total = 1	respawn = 1min	npc_end
npcmaker_end
territory_begin	[L2day_dwarf]	{{114788;-178826;-888;-688};{114988;-178826;-888;-688};{114988;-178626;-888;-688};{114788;-178626;-888;-688}}	territory_end
npcmaker_begin	[L2day_dwarf]	initial_spawn = all	maximum_npc = 1		
npc_begin	[event_dwarf]	pos = {114888;-178726;-834;1}	total = 1	respawn = 1min	npc_end
npcmaker_end
of course u have maybe working L2day event ;-) We add alphabets to drop C2 monsters.. and change is in luxury
rodier is offline  
Old 03.08.2005, 01:44   #6
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

btw > anybody have working emotions @ npc? like npc welcome you.. when u click on him..etc?

I now think to make casino @ every gatekeeper .. that will be cool.. basic html with 2 choice 1. teleport -> teleport menu 2. casino - > casino menu
but dont know if this can work.. dont know how to call for teleport menu @ ai.obj
rodier is offline  
Old 03.08.2005, 02:45   #7
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by rodier
btw > anybody have working emotions @ npc? like npc welcome you.. when u click on him..etc?

I now think to make casino @ every gatekeeper .. that will be cool.. basic html with 2 choice 1. teleport -> teleport menu 2. casino - > casino menu
but dont know if this can work.. dont know how to call for teleport menu @ ai.obj
handler 28 // TELEPORT_REQUESTED

SoaPy is offline  
Old 03.08.2005, 04:25   #8
pipislav
Архивный участник
 
Join Date: Apr 2005
Posts: 50
Default

thanks SoaPy
pipislav is offline  
Old 03.08.2005, 05:17   #9
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

Quote:
Originally Posted by rodier
btw > anybody have working emotions @ npc? like npc welcome you.. when u click on him..etc?
Mhhhm, I do I do..
You just need to recode the citizen AI, and add a timer for "boring/sleepy" animations.
archy is offline  
Old 03.08.2005, 05:29   #10
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

SoaPy Your work ?!@#!@# i gave it to entrox how the fuck its your work
demon is offline  
Old 03.08.2005, 05:34   #11
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by demon
SoaPy Your work ?!@#!@# i gave it to entrox how the fuck its your work
entrox give to me an old public chinese code, and i have the code a long time ago, and i say my work because i use the chinese method but l2j too, isnt the pack you say. Dont say shit please, if you want that i dont share anything more just say, i will goint too keep all my codes to me and my devs.
SoaPy is offline  
Old 03.08.2005, 05:35   #12
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

i gave the code to entrox before 3 days oh cmon
demon is offline  
Old 03.08.2005, 05:38   #13
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by demon
i gave the code to entrox before 3 days oh cmon
i dont want to fight, yes you give the code to entrox, but i didnt get from him, like i said i have the chinese package a long time. And isnt exactly the same.
SoaPy is offline  
Old 03.08.2005, 05:39   #14
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

you could say "here something i've found" or "here something someone gave me"
and i translate the html
demon is offline  
Old 03.08.2005, 05:42   #15
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by demon
you could say "here something i've found" or "here something someone gave me"
and i translate the html
i see you dont understand, isnt my problem.
SoaPy is offline  
Old 03.08.2005, 05:44   #16
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

anyway finito
demon is offline  
Old 03.08.2005, 10:48   #17
Kanodin
Архивный участник
 
Join Date: Jun 2005
Posts: 56
Default

wow very nice soapy, heh...
Kanodin is offline  
Old 03.08.2005, 14:10   #18
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

ant this is of a stolen ai code demon ?







SoaPy is offline  
Old 03.08.2005, 15:35   #19
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default gambling

is this just for C3?
Dave is offline  
Old 03.08.2005, 16:23   #20
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

Dave no, should be implementable on all versions, you just need to find a NPC to be the gambler.

---

And the screens Soapy showed second is a working but not finished version of our new gambling system, will include Jackpot where all "lost adena" gets collected till someone wins it
archy is offline  
Old 03.08.2005, 16:36   #21
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default gambler

can i create a new npc to be gambler
Dave is offline  
Old 03.08.2005, 17:37   #22
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

You can create any kind of NPC as a Gambler as long as you use the correct settings...... :|
Phantom2005 is offline  
Old 03.08.2005, 18:10   #23
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default gambler

what are the percentages of winning. and how is it calculated.
Dave is offline  
Old 03.08.2005, 18:28   #24
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

On the one you can download in this thread, its a simple recipe, success_rate is the chance you have of winning.
archy is offline  
Old 03.08.2005, 19:05   #25
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default gambling

is there another one?
Dave 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 18:52.