PDA

View Full Version : [Sharing] Gamble npc ;)


SoaPy
03.08.2005, 00:49
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]

noypi
03.08.2005, 01:02
cool tnx soapy :)

rodier
03.08.2005, 01:15
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

SoaPy
03.08.2005, 01:37
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 ^^.

rodier
03.08.2005, 01:42
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


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




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
03.08.2005, 01:44
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

SoaPy
03.08.2005, 02:45
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

;)

pipislav
03.08.2005, 04:25
thanks SoaPy :)

archy
03.08.2005, 05:17
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.

demon
03.08.2005, 05:29
SoaPy Your work ?!@#!@# i gave it to entrox how the fuck its your work

SoaPy
03.08.2005, 05:34
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.

demon
03.08.2005, 05:35
i gave the code to entrox before 3 days oh cmon

SoaPy
03.08.2005, 05:38
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.

demon
03.08.2005, 05:39
you could say "here something i've found" or "here something someone gave me"
and i translate the html

SoaPy
03.08.2005, 05:42
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.

demon
03.08.2005, 05:44
anyway finito
:)

Kanodin
03.08.2005, 10:48
wow very nice soapy, heh...

SoaPy
03.08.2005, 14:10
ant this is of a stolen ai code demon ?

http://drnagel.dyndns.org/ftp/shot00028.jpg

http://drnagel.dyndns.org/ftp/shot00029.jpg

http://drnagel.dyndns.org/ftp/shot00030.jpg

http://drnagel.dyndns.org/ftp/shot00031.jpg

Dave
03.08.2005, 15:35
is this just for C3?

archy
03.08.2005, 16:23
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 ;)

Dave
03.08.2005, 16:36
can i create a new npc to be gambler

Phantom2005
03.08.2005, 17:37
You can create any kind of NPC as a Gambler as long as you use the correct settings...... :|

Dave
03.08.2005, 18:10
what are the percentages of winning. and how is it calculated.

archy
03.08.2005, 18:28
On the one you can download in this thread, its a simple recipe, success_rate is the chance you have of winning.

Dave
03.08.2005, 19:05
is there another one?

bobby
03.08.2005, 21:40
don't take the hate peopel display on thiss forum, everyoen just wants personal fame. Keep up th sharing, I appreciate it and think it makes a better community, although it doesn't stop the whiners :(

noypi
04.08.2005, 00:24
Here is the client dat files which I made lastnight and the NPCPOS of the Gambling Manager. As for now the Gambling Manager is in Giran near Alexandria Store. Enjoy Have Fun!!!

Big Thanks to my friend archonus for helping :) Also like to thank soapy for sharing the gamble file. :)

This is for NPCPOS

npc_begin [gamble_master] pos={80964;145227;-3528;32768} total=1 respawn=3min npc_end

Pls. make sure to back up your dat files before using the rar files.

Pls. download the npcname-e.dat I have post the bug one which don't show npcname... sorry

djvogans
04.08.2005, 01:03
hehe .. boing files :) not entire your work

DreadWolf
04.08.2005, 01:39
Don't worry about it Soapy, we still appreciate your work. I didn't like the A Grade items being available via gamble but I customized to my needs. It's the idea to make as recipe that's good.

Dave
04.08.2005, 01:47
got it installed and it workd great. thnx to those who created and shared. Now if someone could post marriage patch for c2 i would almost be happy

Cy4eHoK
27.09.2005, 13:18
I have Mistake:
[php:1:dcf2dad513]
09/27/2005 16:48:xx.xx0, [ObjectDB.cpp][168] undefined (or unregistered) Name[gamble_master]
09/27/2005 16:48:xx.xx3, invalid npc name [gamble_master] at file[NpcSocket.cpp], line[141]
[/php:1:dcf2dad513]

With С2 all were right, but C3 writes this mistake.
AI, npcdata, npc_pch, recipe are 100%

Phantom2005
27.09.2005, 17:18
not added to npc_pch.txt......

toolpunk
27.09.2005, 17:30
didnt he say his noc_pch is ok?
nah. anyway, mb u r right...

Phantom2005
27.09.2005, 18:29
I'm sure of it... or else it's his npcpos.txt i had that a few times...

Cy4eHoK
27.09.2005, 22:08
I created nps_pch by means of L2ScriptMaker ([gamble_master] = 1014000).
I have deleted it from npcpos, yes when loading no mistake, but when //summon gamble_master server writes this mistake!

Cy4eHoK
28.09.2005, 00:20
I have solved my problem! But I don't know why it was, I carry line on the first place in npcdata and all have earned! Why this can be?

flakka
28.09.2005, 01:17
Either everyone is very lucky, or you need to change the success rate.

On the one you can download in this thread, its a simple recipe, success_rate is the chance you have of winning.

top-gear
17.11.2005, 23:15
SoaPy Your work ?!@#!@# i gave it to entrox how the fuck its your work

Demon thinks that everyone in the world is stealing his scripts. GET A GRIP DUDE

Zil
21.01.2006, 23:12
I have solved my problem! But I don't know why it was, I carry line on the first place in npcdata and all have earned! Why this can be?
It's because you have an error in one of the lines in npcdata, after this npc loading not correctly.

_________________
sorry for my English

Flamestrike
21.01.2006, 23:44
SoaPy Your work ?!@#!@# i gave it to entrox how the fuck its your work

Demon thinks that everyone in the world is stealing his scripts. GET A GRIP DUDE


uh, ouch u're right.