Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 23.01.2006, 08:35   #1
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default [SHARE] Token System - ANTI-Exploit

There is a major exploit going around with people over-enchanting. This stops that. Agian, you will deal with the client side modifications, and what this does is, you cannot trade/drop/des any Enchant, BUT you can trade for a Token, which is Sellable/DropAble/Destrutable. So, players can exchange back and forth, and dont have to worry about exploits. Enjoy.

ITEMDATA.txt

Code:
item_begin	etcitem	9200	[token_enchant_wep_d]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9201	[token_enchant_arm_d]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9202	[token_enchant_wep_c]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9203	[token_enchant_arm_c]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9204	[token_enchant_wep_b]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9205	[token_enchant_arm_b]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9206	[token_enchant_wep_a]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9207	[token_enchant_arm_a]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9208	[token_enchant_wep_s]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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
item_begin	etcitem	9209	[token_enchant_arm_s]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=none	blessed=0	weight=0	default_action=action_none	consume_type=consume_type_normal	initial_count=1	maximum_count=1	spiritshot_count=0	immediate_effect=1	price=0	default_price=0	item_skill=[none]	critical_attack_skill=[none]	material_type=gold	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_rate=0	attack_range=0	effective_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=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.TXT

Code:
MultiSell_begin [token_to_enchant] 501 
selllist={{{[scrl_of_ench_wp_d];1};{{[token_enchant_wep_d];1}}}; 
{{[scrl_of_ench_am_d];1};{{[token_enchant_arm_d];1}}}; 
{{[scrl_of_ench_wp_c];1};{{[token_enchant_wep_c];1}}}; 
{{[scrl_of_ench_am_c];1};{{[token_enchant_arm_c];1}}}; 
{{[scrl_of_ench_wp_b];1};{{[token_enchant_wep_b];1}}}; 
{{[scrl_of_ench_am_b];1};{{[token_enchant_arm_b];1}}}; 
{{[scrl_of_ench_wp_a];1};{{[token_enchant_wep_a];1}}}; 
{{[scrl_of_ench_am_a];1};{{[token_enchant_arm_a];1}}}; 
{{[scrl_of_ench_wp_s];1};{{[token_enchant_wep_s];1}}}; 
{{[scrl_of_ench_am_s];1};{{[token_enchant_arm_s];1}}}} 
MultiSell_end 

MultiSell_begin [enchant_to_token] 502 
selllist={{{[token_enchant_wep_d];1};{{[scrl_of_ench_wp_d];1}}}; 
{{[token_enchant_arm_d];1};{{[scrl_of_ench_am_d];1}}}; 
{{[token_enchant_wep_c];1};{{[scrl_of_ench_wp_c];1}}}; 
{{[token_enchant_arm_c];1};{{[scrl_of_ench_am_c];1}}}; 
{{[token_enchant_wep_b];1};{{[scrl_of_ench_wp_b];1}}}; 
{{[token_enchant_arm_b];1};{{[scrl_of_ench_am_b];1}}}; 
{{[token_enchant_wep_a];1};{{[scrl_of_ench_wp_a];1}}}; 
{{[token_enchant_arm_a];1};{{[scrl_of_ench_am_a];1}}}; 
{{[token_enchant_wep_s];1};{{[scrl_of_ench_wp_s];1}}}; 
{{[token_enchant_arm_s];1};{{[scrl_of_ench_am_s];1}}}} 
MultiSell_end
NPCDATA.txt
Code:
npc_begin	citizen	15018	[enchant_manager]	level=70	exp=429634524	acquire_exp_rate=0	undying=1	can_be_attacked=0	acquire_sp=469	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=8	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=1346	base_defend=2xx.xx2779264	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=16	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[blacksmith_of_mammon];{[fnHi]=[enchant_manager.htm]}}	corpse_time=7	no_sleep_mode=0	npc_end
enchant_manager.htm
Code:
<html><head><body>
Welcome to the L2P Enchant NPC


<font color="LEVEL">[What is this?]</font>



At L2-Paradise, we need to take every aspect seriously.  There are rumors of an enchant exploit that exists. This NPC will be the stop of it.  You may trade your enchant scroll for a token or a token for an enchant scroll. You may sell tokens, just like normal.  But you cannot drop/trade/destruct a Enchant Scroll any longer.


<font color="LEVEL">[Menu]</font>


<a action="bypass -h multisell?id=501">Tokens to Enchants</a>

<a action="bypass -h multisell?id=502">Enchants to Tokens</a>

</body>
</html>
NPCPOS.txt
Code:
//Enchant Master
territory_begin	[enchantmaster]	{{82291;149596;-3464;-3464};{82291;149596;-3464;-3464};{82291;149596;-3464;-3464};{82291;149596;-3464;-3464}}	territory_end
npcmaker_begin	[enchantmaster]	initial_spawn = all maximum_npc=1
npc_begin [enchant_manager] pos={82291;149596;-3464;49152} total=1 respawn =1min 	npc_end
npcmaker_end
Kenster 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 22:18.