Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 19.10.2005, 17:03   #1
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default PK viliage

Hi, my eglish very bad, but i need help
I do PK viliage. (floran vilage),
Merchant_of_pk (hiz like drink, and trade wearpon on soulore end wine)
Guard_of_pk kill all haz not PK
And i need new ai for guard pk.. if karma < 1 guard kill.
Plees helpme and i finish my work and post complit work on this forum
I have
client side
npcname-e.dat

Code:
npc_begin	id=14001	nickcolor=raid		nick=[Nikolas]		name=[Merchant of PK]	npc_end
npcgrp.txt
Code:
npc_begin	npc_id=14001	npc_name=[]	npc_speed=1	class_name=[LineageNPC.black_market_trader_MDwarf_set]	mesh_name=[LineageNPCs.black_market_trader_MDwarf_set_m00]	texture_name={[LineageNPCsTex.black_market_trader_MDwarf_m00_t00_b00];[LineageNPCsTex.black_market_trader_MDwarf_m00_t00_b01];[LineageNPCsTex.black_market_trader_MDwarf_m00_t00_f];[LineageNPCsTex.black_market_trader_MDwarf_m00_t00_h]}	texture_name_second={[]}	collision_radius=N/A	collision_height=N/A	attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]}	defense_sound1={[ItemSound.armor_leather_1];[ItemSound.armor_leather_2];[ItemSound.armor_leather_5];[ItemSound.armor_leather_7];[ItemSound.armor_leather_8]}	damage_sound={[ChrSound.MNpc_Old_Dmg_1];[ChrSound.MNpc_Old_Dmg_2];[ChrSound.MNpc_Old_Dmg_3]}	sound_vol=250	sound_radius=50	sound_random=70	attack_effect=[LineageEffect.p_u002_a]	quest_be=0	level_limit={0;0}	class_limit={}	silhouette={[]}	property_list={0}	social=0	c3attr=0	npc_end
etcitemgrp.dat (wine)
Code:
item_begin	object_id=90004	object_name=[]	drop_type=0	drop_anim_type=0	drop_radius=2	drop_height=5	drop_mesh={[dropitems.drop_sack_m00]}	drop_texture={[dropitemstex.drop_sack_t00]}	icon={[icon.etc_luxury_wine_a_i00]}	mesh={[none]}	texture={[none]}	crystallizable=0	drop_sound=[ItemSound.itemdrop_sack]	equip_sound=[none]	etcitem_type=none	weight=20	consume_type=consume_type_stackable	material_type=liquid	crystal_type=none	durability=0	c3_newvar=0	item_end
itemname.dat
Code:
item_name_begin	id=90004	name=[12 Year Old Wine]	additionalname=[Wine]	popup=-1	description=[Вино для спившегося трейдера в деревне флоран, можеть быть использовано, но так же и служит предметом обмена]	item_name_end
serverside
npcdata.txt
Code:
npc_begin	merchant	14001	[merchant_of_pk]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.4	undying=1	can_be_attacked=0	acquire_sp=40	race=human	sex=male	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=24xx.xx818899627	org_mp=1345.8	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx3725587608	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=-4900	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={[gamble_master];{[fnHi] = [mpk001.htm]}}	corpse_time=7	no_sleep_mode=0	npc_end
itemdata.txt
Code:
item_begin	etcitem	90004	[12_Year_Old_Wine]	item_type=weapon	slot_bit_type={none}	armor_type=none	etcitem_type=potion	blessed=0	weight=60	default_action=action_skill_reduce	consume_type=consume_type_stackable	initial_count=1	maximum_count=20	soulshot_count=0	spiritshot_count=0	immediate_effect=1	price=0	default_price=1000	item_skill=[s_healing_potion]	critical_attack_skill=[none]	material_type=liquid	crystal_type=none	crystal_count=0	is_trade=1	is_drop=1	is_destruct=1	physical_damage=0	random_damage=0	weapon_type=none	can_penetrate=0	critical=0	hit_modify=0	avoid_modify=0	dual_fhit_rate=0	shield_defense=0	shield_defense_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=0	damaged=0	physical_defense=0	magical_defense=0	mp_bonus=0	category={}	enchanted=0	html=[item_default.htm]	equip_pet={0}	magic_weapon=0	item_end
multisell
Code:
MultiSell_begin	[DirtMaster]	900
selllist={
{{[greater_healing_potion];10};{{[12_Year_Old_Wine];1};{[soul_ore];10}}};
{{[saber*bastard_sword];1};{{[12_Year_Old_Wine];1};{[soul_ore];1200}}};
{{[akat_long_bow];1};{{[12_Year_Old_Wine];1};{[soul_ore];5200}}};
{{[sage's_staff];1};{{[12_Year_Old_Wine];1};{[soul_ore];5200}}};
{{[mithril_dagger];1};{{[12_Year_Old_Wine];1};{[soul_ore];2600}}};
{{[tattoo_o'_soul];1};{{[12_Year_Old_Wine];1};{[soul_ore];1500}}}}
{{[wool_underwear_set];1};{{[12_Year_Old_Wine];1};{[soul_ore];50}}}}
MultiSell_end
npcpos.txt, item and ppcpatch simle and i not posted
html
mpk001.htm
Code:
<html><head><body>
Пьяный торговец:

Эх... Я раньше был великим мастером. Ходил туда сюда, делал всякие вещи... но... сгубила любовь к вину. Давай бутылку и мы поговорим 


<a action="bypass -h multisell?id=900">Что я имею предложить</a></body></html>
And wine must heling and i use standart skins
tarvin is offline  
Old 19.10.2005, 18:23   #2
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default Re: PK viliage

visual
tarvin is offline  
Old 19.10.2005, 19:24   #3
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

If your contribution isn't done, then try posting in the Help section next time.

The MODs section is for done stuff. Thanks.
flakka is offline  
Old 19.10.2005, 21:32   #4
lolik18
Архивный участник
 
Join Date: Aug 2005
Posts: 7
Default

Nice skript sps !
lolik18 is offline  
Old 20.10.2005, 02:17   #5
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

wow, merchant of pk =O, jaaja

thanks.. ^^
wton is offline  
Old 20.10.2005, 10:09   #6
Drew
Архивный участник
 
Join Date: Sep 2005
Posts: 9
Default

gamble_master ai plz???
Drew is offline  
Old 20.10.2005, 12:56   #7
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

Quote:
Originally Posted by flakka
If your contribution isn't done, then try posting in the Help section next time.

The MODs section is for done stuff. Thanks.
Sorry but this my mod
tarvin is offline  
Old 20.10.2005, 13:00   #8
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

Quote:
Originally Posted by Drew
gamble_master ai plz???
gamble_master ai preview on this site

class gamble_master : merchant_for_cgrade
class_end
tarvin is offline  
Old 20.10.2005, 15:40   #9
bwgreen
Архивный участник
 
Join Date: Sep 2005
Posts: 408
Default

Quote:
Originally Posted by tarvin
Quote:
Originally Posted by flakka
If your contribution isn't done, then try posting in the Help section next time.

The MODs section is for done stuff. Thanks.
Sorry but this my mod
I think when he said "i need help" he was refering to his English - kinda proves a point really, doesn't it
bwgreen is offline  
Old 20.10.2005, 16:33   #10
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

Quote:
Originally Posted by bwgreen
Quote:
Originally Posted by tarvin
Quote:
Originally Posted by flakka
If your contribution isn't done, then try posting in the Help section next time.

The MODs section is for done stuff. Thanks.
Sorry but this my mod
I think when he said "i need help" he was refering to his English - kinda proves a point really, doesn't it
Yes i say help but help my first side (pk guard) and mod my second side (merchant of pk) and this side has done.
i reale need help for karma but (говоря русским языком я - запарился излагать на не нашем. Мне надо тупо аи гварда который бьет наоборот не ПК а тех кто не ПК, т.е. тех у кого карма равна 0, чтобы я смог с ней разобраться и доделать деревню
tarvin is offline  
Old 20.10.2005, 17:06   #11
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

Why just dont use any non used C3 NPC? you dont need make anything clientside if you use any C3 NPC citizen what never be used

then make in npcdata that NPC server only to PK
(npc_ai={[gamble_master];{[fnChaotic] = [mpk001.htm]}}

= its quickiest way how to make PK MERCHANT..
rodier is offline  
Old 20.10.2005, 17:15   #12
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

about PK guard - check sentinel topic.. someone here post anti pk guard AI .. I think there u will find how to make PK guard

its here
https://postpacific.loc-online.com/f...hlight=anti+pk

but I cant recognize how this anti PK guard check karma of player.. or simply "how know player is PK"..
rodier is offline  
Old 20.10.2005, 17:53   #13
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

Quote:
Originally Posted by rodier
about PK guard - check sentinel topic.. someone here post anti pk guard AI .. I think there u will find how to make PK guard

its here
https://postpacific.loc-online.com/f...hlight=anti+pk

but I cant recognize how this anti PK guard check karma of player.. or simply "how know player is PK"..
Yes i know i have ai guard or ai pixy but understand check karma of player and very small know AI.Obj. And i need complit help - manual
or tutorial)
tarvin is offline  
Old 20.10.2005, 17:58   #14
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

Quote:
Originally Posted by rodier
Why just dont use any non used C3 NPC? you dont need make anything clientside if you use any C3 NPC citizen what never be used

then make in npcdata that NPC server only to PK
(npc_ai={[gamble_master];{[fnChaotic] = [mpk001.htm]}}

= its quickiest way how to make PK MERCHANT..
O! tnx
tarvin is offline  
Old 20.10.2005, 18:30   #15
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

this?
Code:
class guard : default_npc
parameter_define_begin
	string fnHi "chi.htm"
	float Attack_DecayRatio 6.600000
	float UseSkill_DecayRatio 660xx.xx0000
	float Attack_BoostValue 5xx.xx0000
	float UseSkill_BoostValue 1000xx.xx0000
parameter_define_end
handler 3	//  TALKED
handler_end

handler 1	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_const 1
	push_const 2000
	func_call 2	//  func[AddAttackDesire]
	shift_sp -3
	shift_sp -1
handler_end

handler 5	//  see on creature :)
variable_begin
		"creature"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
variable_end

	push_event	//  if creature karma = 0 
	push_const 68
	add
	fetch_i	//karma
	push_const 412
	add
	fetch_i
	push_const 0
	greater
	branch_false L1 // if karma count=0 go L1 if >1 go L0 atack
L0
	shift_sp 1
	push_event	//  creature
	push_const 68
	add
	fetch_i
	push_const 1
	push_const 1500
	func_call 2	//  func[AddAttackDesire]
	shift_sp -3
	shift_sp -1
L1
handler_end

class_end
and my work simple change L0 and L1?
tarvin is offline  
Old 20.10.2005, 19:08   #16
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

As far as i know this is not possible....

Code:
   push_const 1 
   push_const 2000
if npc is attacked wipe the attacker his ass and run after it...
Code:
   push_const 0
   push_const 2000
if npc is attacked wipe attacker his ass but stand still on the spot it has been spawned.

haven't tried 2 or 3 etc. yet perhaps you should...
Phantom2005 is offline  
Old 13.11.2005, 10:20   #17
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

Is it possible just to teleport all pkers inside floran when they die and clicks nearest?
top-gear is offline  
Old 13.11.2005, 10:33   #18
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Settings.txt:

[php:1:26fc96d83e]
point_name=[floran_town]
point={17555;170393;-3400}
.... blabla
chao_point={17931;170381;-3451}
[/php:1:26fc96d83e]
point = normal player spawn
chao_point = PK player spawn
Phantom2005 is offline  
Old 13.11.2005, 11:16   #19
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

oO
nice. I want the pkers to spawn in floran no matter the location of death (could be anywhere on the map). I will try to put in chao_point of all towns the a loc inside floran. I hope it wont crash
top-gear 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:04.