[Request] GK Global, Npc Change Class, GM Shop?

Discussion in 'Help' started by CDVM, Nov 28, 2010.

  1. CDVM

    CDVM New Member

    Hi again people... i have your help again... im trying to put a good GMShop but its don't work good... someone can give a link where i can download a good GK Global, Npc to Change Class (Like Cat of L2J) and a good GM Shop or Individuals Shops in MultiSell or AI.obj?

    Thank & Regards...
     
    Last edited: Nov 28, 2010
  2. loest

    loest New Member

    there you go
    link
     
  3. demo

    demo New Member

    Now now, let's not be to hard on the fellah:)
    This will give you a dwarf selling soulshot C , BSSC and Spritshot C

    Cheers

    NPCDATA.txt
    Code:
    npc_begin	citizen	75004	[exclusive_soulshot_c_dwarf]	level=70	acquire_exp_rate=0	acquire_sp=0	unsowing=1	clan={}	ignore_clan_list={}	clan_help_range=300	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	shield_defense_rate=0	shield_defense=0	skill_list={@s_race_undead;@s_full_magic_defence}	npc_ai={[exclusive_soulshot_c];{[fnHi]=[exclusive_css.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=165};{[MoveAroundSocial2]=165}}	category={}	race=dwarf	sex=male	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	ground_high={120;0;0}	ground_low={50;0;0}	exp=429634528	org_hp=2444.46819	org_hp_regen=7.5	org_mp=1345.8	org_mp_regen=2.7	collision_radius={8;8}	collision_height={17;17}	str=40	int=21	dex=30	wit=20	con=43	men=10	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=688.86373	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=470.40463	base_defend=295.91597	base_magic_defend=216.53847	physical_avoid_modify=0	soulshot_count=0	spiritshot_count=0	hit_time_factor=0.6	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
    
    HTML: exclusive_css.html
    HTML:
    <html><head><body>
    C-Grade Helper:<br>
    Hey sir. What can i do for you today?
    <br>
    <br>
    <a action="bypass -h menu_select?ask=-1&reply=0">I need Soul/Spiritshots</a>
    </body>
    </html>
    Npcgrp.dat
    Code:
    75004	LineageNPC.e_mine_master_MDwarf	LineageNPCs.e_mine_master_MDwarf_m00	4	LineageNPCsTex.e_mine_master_MDwarf_m00_t00_b00	LineageNPCsTex.e_mine_master_MDwarf_m00_t00_b01	LineageNPCsTex.e_mine_master_MDwarf_m00_t00_f	LineageNPCsTex.e_mine_master_MDwarf_m00_t00_h		0			1	0								1.20000005	0	3	ItemSound.fist_1	ItemSound.fist_2	ItemSound.fist_3	5	ItemSound.armor_leather_1	ItemSound.armor_leather_2	ItemSound.armor_leather_4	ItemSound.armor_leather_6	ItemSound.armor_leather_7	3	ChrSound.MNpc_Old_Dmg_1	ChrSound.MNpc_Old_Dmg_2	ChrSound.MNpc_Old_Dmg_3	1	5	53	54	55	56	57																																									6	15	LineageEffect.p_u002_a	0	50.00000000	250.00000000	70.00000000	1	0
    
    Npcname-e.dat
    Code:
    75004	Big Fat Dwarf	Soulshot-C seller	9C	E8	A9	-1
    
     
    Last edited: Dec 1, 2010
  4. demo

    demo New Member

    and ofcourse the AI.obj file
    This will give you a dwarf selling soulshot C , BSSC and Spritshot C


    Code:
    class 1 exclusive_soulshot_c : merchant_for_newbie
    property_define_begin
    	buyselllist_begin SellList0
    		{1463; 0; 0.000000; 0 }
    		{2510; 0; 0.000000; 0 }
    		{3948; 0; 0.000000; 0 }
    	buyselllist_end
    property_define_end
    handler 4 579	//  TALK_SELECTED
    	variable_begin
    		"talker"
    		"myself"
    		"_choiceN"
    		"_code"
    		"_from_choice"
    	variable_end
    
    	push_event	//  _from_choice
    	push_const 544
    	add
    	fetch_i4
    	push_const 0
    	equal
    	branch_false L125872
    L125871
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 153
    	func_call 184680543	//  func[HaveMemo]
    	shift_sp -2
    	push_const 0
    	not_equal
    	push_reg_sp
    	fetch_i
    	branch_false L125873
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1013
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	push_const 0
    	not_equal
    	and
    L125873
    	branch_false L125875
    L125874
    	push_event	//  _choiceN
    	push_const 540
    	add
    	push_reg_sp
    	fetch_i
    	push_event	//  _choiceN
    	push_const 540
    	add
    	fetch_i4
    	push_const 1
    	add
    	assign4
    	shift_sp -1
    	push_event	//  _code
    	push_const 536
    	add
    	push_reg_sp
    	fetch_i
    	push_const 0
    	assign4
    	shift_sp -1
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_const 0
    S14886.	"Deliver Goods"
    	push_string S14886
    	func_call 184680640	//  func[AddChoice]
    	shift_sp -2
    	shift_sp -1
    L125875
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 153
    	func_call 184680543	//  func[HaveMemo]
    	shift_sp -2
    	push_const 0
    	not_equal
    	push_reg_sp
    	fetch_i
    	branch_false L125876
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1016
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	push_const 0
    	not_equal
    	and
    L125876
    	branch_false L125878
    L125877
    	push_event	//  _choiceN
    	push_const 540
    	add
    	push_reg_sp
    	fetch_i
    	push_event	//  _choiceN
    	push_const 540
    	add
    	fetch_i4
    	push_const 1
    	add
    	assign4
    	shift_sp -1
    	push_event	//  _code
    	push_const 536
    	add
    	push_reg_sp
    	fetch_i
    	push_const 1
    	assign4
    	shift_sp -1
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_const 1
    S14887.	"Deliver Goods"
    	push_string S14887
    	func_call 184680640	//  func[AddChoice]
    	shift_sp -2
    	shift_sp -1
    L125878
    	push_event	//  _choiceN
    	push_const 540
    	add
    	fetch_i4
    	push_const 1
    	greater
    	branch_false L125880
    L125879
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1
    	func_call 184680641	//  func[ShowChoicePage]
    	shift_sp -2
    	shift_sp -1
    	exit_handler
    L125880
    L125872
    	push_event	//  _from_choice
    	push_const 544
    	add
    	fetch_i4
    	push_reg_sp
    	fetch_i
    	branch_true L125881
    	push_event	//  _choiceN
    	push_const 540
    	add
    	fetch_i4
    	push_const 1
    	equal
    	or
    L125881
    	branch_false L125883
    L125882
    	push_event	//  _code
    	push_const 536
    	add
    	fetch_i4
    	push_reg_sp
    	fetch_i
    	push_const 0
    	equal
    	branch_false L125886
    L125885
    	push_event	//  _from_choice
    	push_const 544
    	add
    	fetch_i4
    	push_const 0
    	equal
    	push_reg_sp
    	fetch_i
    	branch_true L125887
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 153
    	func_call 184680543	//  func[HaveMemo]
    	shift_sp -2
    	push_const 0
    	not_equal
    	push_reg_sp
    	fetch_i
    	branch_false L125888
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1013
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	push_const 0
    	not_equal
    	and
    L125888
    	or
    L125887
    	branch_false L125890
    L125889
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_const 153
    	func_call 184615017	//  func[SetCurrentQuestID]
    	shift_sp -1
    	shift_sp -1
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 0
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_const 0.800000
    	mul
    	greater_equal
    	push_reg_sp
    	fetch_i
    	branch_true L125891
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 2
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 3
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_const 0.800000
    	mul
    	greater_equal
    	or
    L125891
    	branch_false L125893
    L125892
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1118
    	func_call 184680517	//  func[ShowSystemMessage]
    	shift_sp -2
    	shift_sp -1
    	exit_handler
    L125893
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1013
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1013
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	func_call 184746114	//  func[DeleteItem1]
    	shift_sp -3
    	shift_sp -1
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1016
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	push_const 0
    	equal
    	branch_false L125895
    L125894
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1016
    	push_const 1
    	func_call 184746111	//  func[GiveItem1]
    	shift_sp -3
    	shift_sp -1
    L125895
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    S14888.	"noquest.htm"
    	push_string S14888
    	func_call 184680516	//  func[ShowPage]
    	shift_sp -2
    	shift_sp -1
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1017
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	push_const 1
    	greater_equal
    	push_reg_sp
    	fetch_i
    	branch_false L125896
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1018
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	push_const 1
    	greater_equal
    	and
    L125896
    	branch_false L125898
    L125897
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 153
    	push_const 2
    	func_call 184746087	//  func[SetFlagJournal]
    	shift_sp -3
    	shift_sp -1
    L125898
    L125890
    	jump L125884
    	jump L125899
    L125886
    	push_reg_sp
    	fetch_i
    	push_const 1
    	equal
    	branch_false L125900
    L125899
    	push_event	//  _from_choice
    	push_const 544
    	add
    	fetch_i4
    	push_const 0
    	equal
    	push_reg_sp
    	fetch_i
    	branch_true L125901
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 153
    	func_call 184680543	//  func[HaveMemo]
    	shift_sp -2
    	push_const 0
    	not_equal
    	push_reg_sp
    	fetch_i
    	branch_false L125902
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1016
    	func_call 184680579	//  func[OwnItemCount]
    	shift_sp -2
    	push_const 0
    	not_equal
    	and
    L125902
    	or
    L125901
    	branch_false L125904
    L125903
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_const 153
    	func_call 184615017	//  func[SetCurrentQuestID]
    	shift_sp -1
    	shift_sp -1
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 0
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_const 0.800000
    	mul
    	greater_equal
    	push_reg_sp
    	fetch_i
    	branch_true L125905
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 2
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 3
    	func_call 184680556	//  func[GetInventoryInfo]
    	shift_sp -2
    	push_const 0.800000
    	mul
    	greater_equal
    	or
    L125905
    	branch_false L125907
    L125906
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    	push_const 1118
    	func_call 184680517	//  func[ShowSystemMessage]
    	shift_sp -2
    	shift_sp -1
    	exit_handler
    L125907
    	push_event	//  myself
    	push_const 704
    	add
    	fetch_i
    	push_event	//  talker
    	push_const 40
    	add
    	fetch_i
    S14889.	"noquest.htm"
    	push_string S14889
    	func_call 184680516	//  func[ShowPage]
    	shift_sp -2
    	shift_sp -1
    L125904
    	jump L125884
    	jump L125908
    L125900
    L125908
    L125884
    	shift_sp -1
    	exit_handler
    L125883
    	call_super
    handler_end
    
    class_end
     
  5. Zeland

    Zeland AdvExt64 Customers (IL)

  6. FidoW

    FidoW AdvExt64 Customers (IL)

    You can delete the entire TALK_SELECTED handler, not needed for that.

    Code:
    class 1 exclusive_soulshot_c : merchant_for_newbie
    property_define_begin
    	buyselllist_begin SellList0
    		{1464; 0; 0.000000; 0 }
    		{2511; 0; 0.000000; 0 }
    		{3949; 0; 0.000000; 0 }
    	buyselllist_end
    property_define_end
    class_end
    
     
  7. demo

    demo New Member

    a k, didn't know that myself^^
     
  8. FidoW

    FidoW AdvExt64 Customers (IL)

    You probably copy that from another npc.. but that handler is for some specific quest and the code that make the sell list works is the master class merchant.
     
  9. demo

    demo New Member

    Well my biggest problem is not finding a AI Decompiller and Compiller I do it all like it is posted in the AI.obj file... Barbaric, I know but hey! it works, I know it's a wrong attitude but i've been looking for a descent AI decompiller and compiller, got one to share?

    Thx in advance!
     
  10. CDVM

    CDVM New Member

    great share :eek:

    i have a error here when i put the SkillData.txt

    here a screen:
    [​IMG]

    it work right but give me that error. how i can solve it?
     
    Last edited: Dec 3, 2010
  11. Nish

    Nish AdvExt64 Customers (IL)

    you put a wrong character somewhere in the skilldata...... find it and remove it