Adding NPC

Results 1 to 3 of 3
  1. #1
    Apprentice traxes is offline
    MemberRank
    Apr 2009 Join Date
    17Posts

    sad Adding NPC

    First i want to say thanks to all who read this post!
    I've tried to add a NPC in BI (rune agent flusha ebm),and every time when i buy/sell something i got dc.
    i know ,ths problem is client and server don't synchronize , but i can't see the problem.i will post the enc contents and the scp.
    Extra_obj:
    Code:
    <cabal>
    	<version	index="1"	/>
    		<extra_object world_id="1">
    			<extra_stuff		id="0" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775"/>
    			<extra_stuff		id="1" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775"/>
    		
    			<extra_entity  type="1" pos="1496,0,4345" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="npc01-0035" npc_id="35" npc_tag="0" npc_type="1" />
    			<extra_entity  type="1" pos="1115,0,3022" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="7" />
    	</extra_object>	
    	    <extra_object world_id="2">
    	       <extra_stuff		id="0" filename="object\object_fx\songkran\songkran_event_fountain.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775"/>
    	       
    	       <extra_entity  type="0" pos="8555,0,23100" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="2" stuff_id="0"/>
    	    </extra_object>
    </cabal>
    extra_obj_msg:
    Code:
    <cabal_msg>					
    	<version index="1"/>				
    	<nation code="CN"/>				
    	<extra_obj_msg>				
    		<msg	id="extra_npc_000"	cont="ÉϹŽǶ·³¡Èë¿Ú"	/>
    		<msg	id="npc01-0035" 	cont="Dragon Cabal Shop"	/>
    	</extra_obj_msg>				
    </cabal_msg>
    cabal.enc:
    Code:
    <world_npc  id="35" npc_name="npc01-0035"   x="14"  y="43"  is_obj="0"  />
    
    
    And
    <shop    id="35"    >
                    <item   slot_id="0"     item_id="1"     option="0"      reputation_class="-19"  duration_id="0" price="1"    />
                </shop>
    cabal_msg:
    Code:
    <msg id="npc01-0035" cont="Dragon Cabal Shop" />
    world1-npc:
    Code:
    [NpcPos]	Flags	Index	PosX	PosY Type IsRangeCheck
    28     0      35     15     43     1      1
    
    
    And:
    [ShopLst]	NpcsIdx	NSetIdx	ItemKind	ItemOpt	ReputationClass	DurationIdx	Price
    
    
    142    35     0      1      0      1      0      1
    That all thanks.Sorry for my horible english.
    Last edited by traxes; 03-08-10 at 12:59 PM.


  2. #2
    0x1F0FFF TanGzkie is offline
    MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    987Posts

    Re: Adding NPC

    I would recommend this study this first then do what you want:
    http://forum.ragezone.com/f459/npc-e...-ds-gd-631302/

  3. #3
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Adding NPC

    moving to proper section



Advertisement