View Single Post
Old 18.03.2006, 17:18   #150
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default [SHARE] Scroll of EXP

[SHARE] Scroll of EXP

Complete Scroll of EXP...

I don't know if anyone share this before... but i do for myself.. except AI... AI is in pack of hami.

ai.obj
Code:
class xp_1000000 : default_npc
parameter_define_begin
	int xp 1000000
parameter_define_end
handler 13	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_const 40000
	push_const 100
	func_call 28	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  master
	push_const 2404
	add
	fetch_i
	push_const 0
	push_parameter xp
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
handler_end

handler 12	//  TIMER_FIRED_EX
	variable_begin
		"timer_id"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  timer_id
	push_const 176
	add
	fetch_i
	push_const 40000
	equal
	branch_false L858993425
L858993426
	shift_sp 1
	func_call 175	//  func[Despawn]
	shift_sp -1
L858993425
handler_end

class_end


class xp_10000000 : default_npc
parameter_define_begin
	int xp 10000000
parameter_define_end
handler 13	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_const 40001
	push_const 100
	func_call 28	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  master
	push_const 2404
	add
	fetch_i
	push_const 0
	push_parameter xp
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
handler_end

handler 12	//  TIMER_FIRED_EX
	variable_begin
		"timer_id"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  timer_id
	push_const 176
	add
	fetch_i
	push_const 40001
	equal
	branch_false L858993423
L858993424
	shift_sp 1
	func_call 175	//  func[Despawn]
	shift_sp -1
L858993423
handler_end

class_end


class xp_100000000 : default_npc
parameter_define_begin
	int xp 100000000
parameter_define_end
handler 13	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_const 40002
	push_const 100
	func_call 28	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  master
	push_const 2404
	add
	fetch_i
	push_const 0
	push_parameter xp
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
handler_end

handler 12	//  TIMER_FIRED_EX
	variable_begin
		"timer_id"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  timer_id
	push_const 176
	add
	fetch_i
	push_const 40002
	equal
	branch_false L858993421
L858993422
	shift_sp 1
	func_call 175	//  func[Despawn]
	shift_sp -1
L858993421
handler_end

class_end
itemdata.txt
Code:
item_begin	etcitem	6523	[xp_scroll1]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=scroll	blessed=0	weight=30	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=1800	item_skill=[s_scroll_of_xp1]	critical_attack_skill=[none]	material_type=paper	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
item_begin	etcitem	6524	[xp_scroll2]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=scroll	blessed=0	weight=30	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=18000	item_skill=[s_scroll_of_xp2]	critical_attack_skill=[none]	material_type=paper	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
item_begin	etcitem	6525	[xp_scroll3]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=scroll	blessed=0	weight=30	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=180000	item_skill=[s_scroll_of_xp3]	critical_attack_skill=[none]	material_type=paper	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
item_pch.txt
Code:
[xp_scroll1] = 6523
[xp_scroll2] = 6524
[xp_scroll3] = 6525
npcdata.txt
Code:
npc_begin	summon	17004	[xp_1000000]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.266	undying=1	can_be_attacked=0	acquire_sp=1550	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=43	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=1	collision_height=1	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[xp_1000000]}	corpse_time=7	no_sleep_mode=0	npc_end	
npc_begin	summon	17005	[xp_10000000]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.266	undying=1	can_be_attacked=0	acquire_sp=1550	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=43	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=1	collision_height=1	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[xp_10000000]}	corpse_time=7	no_sleep_mode=0	npc_end	
npc_begin	summon	17006	[xp_100000000]	level=70	exp=4296345xx.xx5	acquire_exp_rate=0.266	undying=1	can_be_attacked=0	acquire_sp=1550	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=43	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=1	collision_height=1	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[xp_100000000]}	corpse_time=7	no_sleep_mode=0	npc_end
npc_pch.txt
Code:
[xp_1000000] = 1017004
[xp_10000000] = 1017005
[xp_100000000] = 1017006
skilldata.txt
Code:
skill_begin skill_name = [s_scroll_of_xp1] /* [Scroll of Exp] */ skill_id = 16000 level = 1 operate_type = A1 magic_level = 80 effect = {{i_summon;[xp_1000000];70}} is_magic = 0 mp_consume2 = 0 item_consume = {[xp_scroll1];1} cast_range = -1 effective_range = -1 skill_hit_time = 0.3 skill_cool_time = 0 skill_hit_cancel_time = 0.1 reuse_delay = 3 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
skill_begin skill_name = [s_scroll_of_xp2] /* [Scroll of Exp] */ skill_id = 16000 level = 2 operate_type = A1 magic_level = 80 effect = {{i_summon;[xp_10000000];70}} is_magic = 0 mp_consume2 = 0 item_consume = {[xp_scroll2];1} cast_range = -1 effective_range = -1 skill_hit_time = 0.3 skill_cool_time = 0 skill_hit_cancel_time = 0.1 reuse_delay = 3 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
skill_begin skill_name = [s_scroll_of_xp3] /* [Scroll of Exp] */ skill_id = 16000 level = 3 operate_type = A1 magic_level = 80 effect = {{i_summon;[xp_100000000];70}} is_magic = 0 mp_consume2 = 0 item_consume = {[xp_scroll3];1} cast_range = -1 effective_range = -1 skill_hit_time = 0.3 skill_cool_time = 0 skill_hit_cancel_time = 0.1 reuse_delay = 3 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
skill_pch.txt
Code:
[s_scroll_of_xp1] = 4096001
[s_scroll_of_xp2] = 4096002
[s_scroll_of_xp3] = 4096003
skill_pch2.txt
Code:
4096001 -1 0 0 0 0 29 -1 0 1 3 0 -12345
4096002 -1 0 0 0 0 29 -1 0 1 3 0 -12345
4096003 -1 0 0 0 0 29 -1 0 1 3 0 -12345
be carefull... in C4 itemdata IDs is fish items... maybe you need change...

client side is missing... do yourself...
FidoW is offline