Good, after so many attempts, I managed to OFF spawn a rb using an ITEM, this method is not very seen in the current servers, that's why I decided to share this with you, I hope you can give me the credits <3.$ |. X8 j0 L! ^0 J( F. |: t
C: `9 A+ w5 M! ]
0 }. t& z: x8 K; n& B; F5 ~
1 h3 F0 c0 Q! ?5 X$ FFirst of all, the first thing we all know is that there are many items or skills that spawn objects or summons, like the necro skills or the dragon flute, we will also find others in the ai.obj or in the base programming that have certain functions to spawn or summon.
; T3 b" ~1 T! R+ d. K" H2 p5 u0 O8 R+ |: u9 q/ S8 t
! b% t; t+ k) f* S+ U# _. b
But we forget that there is one that especially spawns an NPC for a certain time, and this code is dedicated to that, we are talking about the Christmas NPC, although it is actually an ITEM that spawns the Christmas NPC.
" G4 k+ V6 B3 h7 V; g; X$ [: F" B$ H! D8 i6 L* Y5 N
7 P4 X; `$ O4 l; d! m
1 o% u8 P+ D( M$ VID: 5560 ITEM NAME: Christmas Tree
" d4 X* y7 } {! V/ C( A/ S/ h/ x$ _* |4 j; j4 V. e, _
Once we know this, to know what type of skill this item uses, we go to ItemData.txt (located in script and press Ctrl + f, we look for the ID 5560, automatically all the information of this item will appear:2 ~/ ~5 ]/ k7 X: }5 I$ U
* L& _! _3 j4 {
item_begin etcitem 5560 [x_mas_tree1] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=potion recipe_id=0 blessed=0 weight=0 default_action=action_skill_reduce consume_type=consume_type_stackable initial_count=1 maximum_count=20 soulshot_count=0 spiritshot_count=0 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=1 item_skill=[s_summon_x_mas_tree_a] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[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 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 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end! W+ O& @, h) b
, {5 y7 u2 G1 s( T+ p3 ~$ {7 r) K* N9 J$ F5 a2 A
Once we verify which skill is being used (marked in yellow above), we copy the name, in this case it is "item_skill=[s_summon_x_mas_tree_a]" -> "item_skill=[s_summon_x_mas_tree_a]". -> "s_summon_x_mas_tree_a", we make the same search process, but in this case we go to the file called "SkilData.txt", we open it and pressing Ctrl + F, we look for s_summon_x_mas_tree_a.$ p0 W' b- ]- J7 ^* h0 _, Y* _
. p9 [9 k: Q% ^, }
) U( c# u+ B- J+ P( E% r" |
This information will appear, it is important to clarify that this info is the creation of the skill and its effect;
' Q. b h# B$ A) L* Q" _, \( l0 p/ l+ O" e1 k# n2 c: g( H
skill_begin skill_name=[s_summon_x_mas_tree_a] /* [쁼뀘 킸났 삌큘] */ skill_id=2137 level=1 operate_type=A1 magic_level=1 effect={{i_summon_npc;[x_mas_tree_a];1}} is_magic=0 mp_consume2=0 cast_range=-1 effective_range=-1 skill_hit_time=0 skill_cool_time=0 skill_hit_cancel_time=0 reuse_delay=0 attribute=attr_none effect_point=0 target_type=self affect_scope=single affect_limit={0;0} next_action=none ride_state={@ride_none} skill_end
) K6 P/ ]' E3 j. U1 Y
3 q, m/ n) i- u8 c( q. c
# N( k4 ~) S1 l BOnce found, you will see that there is a part that says "effect", this would be what kind of call this skill makes, in this case, it is calling to spawn an NPC (you can check the id of the skills you want and look for them in this file, and you will see the effects), "effect={{i_summon_npc;[x_mas_tree_a];1}}".! z8 C8 Q& f7 G7 p% b$ J
/ p! u/ M( {' [% i( ]0 Q* h v. ^8 J
effect= -> refers to the effect you are going to produce.
/ o: T8 z$ O% F9 t- g, s% N3 f, k{{i_summon_npc; -> refers to spawning an npc.
- G* [4 C8 G1 ?3 K[x_mas_tree_a];1 -> refers to the NPC id in square brackets and the ;1 refers to the amount. $ h8 g w2 `7 R, I8 l; O
4 E7 o6 b8 N6 S3 U! m
- Q. C2 g- d' Donce verified this, now we have the base to spawn a mob, we will proceed to do the basics, create an item with filedit (itemname, skillgrp, skillname, etc), in this case I leave you the skillgrp/itemname/skillname:
4 @; z- v7 R7 W) G2 B
9 i& s) B; m0 z- @* k7 C" JEXAMPLES HOW:
' ]. c: n" r& x4 d. `' l
/ S0 b9 ~* ^5 @ K- G
& H( ?0 O# x9 U4 b, d4 x& vskillgrp: 2138 1 0 0 -1 0 0.000000 0 icon.skill0000 0 0 0 0 -1 -1/ x2 Z* k0 {2 S5 \, p
* n5 \4 l9 M- ?. nskillname: 2138 1 Summon Special Boss none none none
9 Y) b/ _! V X# \* M- T! P' U2 U1 q* c( p w+ a
Itemname: 2138 Raid Boss - Random Bomb Double-click to summon the Raid Boss. Beware: In case you move the raidboss into a peace zone, it will get despawned without warning! -1 0 0 0 4 o5 L( Z" M/ k
' H3 [' @& {+ d; f% T7 jetcgrp: 2 2138 0 3 5 6 0 dropitems.drop_jewel_box_m00 dropitemstex.drop_jewel_box_t00 Raidboss.Bomb 0 1 18 0 0 1 1 ItemSound.itemdrop_jewelbox 2 0 08 p5 J% Z0 a) q A7 a7 q# D
2 {# D9 H$ U X2 X8 Y+ E, u$ Z
. ?7 t1 a- s% C" u
) D7 l1 Q0 n, b! N4 V; v' T- Change the IDs, because they are ID ramdoms. -. q$ |9 o: Q: L' \
& v$ w3 @5 B6 n( k7 m+ v
% o2 p4 g/ c+ {. S7 lOnce this is done, we proceed to DATAPACK, where we will have to create the skill from 0 to work correctly, in my case, I replaced the id of the npc of the tree and it works correctly with that item. But in this case, what you should do, is to clone the skilldata of the tree and the itemdata, that is to say:/ \( G6 S c, ~4 t5 @, _
) o/ n1 _# C4 |- I0 n: m* a. I1 C* W
$ g" q; I+ }, m+ |+ |$ u
6 ]1 j' o. ]+ u, p) C/ @' W5 R1 [SKILLDATA:
- Q! z: u' A, l/ W5 o: I; s- I8 I5 m/ M2 }
. O9 I5 Y- f2 @( x7 h C3 P
4 J! Y' S+ g; R/ u
skill_begin skill_name=[s_Name_SKILL] /* [ꃠꀉ 킸났 삌큘] */ [skill_id=ID_SKILL level=1 operate_type=A1 magic_level=1 effect={{i_summon_npc;[x_mas_tree_b];1}} is_magic=0 mp_consume2=0 cast_range=-1 effective_range=-1 skill_hit_time=0 skill_cool_time=0 skill_hit_cancel_time=0 reuse_delay=0 attribute=attr_none effect_point=0 target_type=self affect_scope=single affect_limit={0;0} next_action=none ride_state={@ride_none} skill_end
. d. J+ @- C6 B7 j; M8 m, a% u: L1 U' g- L
* O! `; v6 O1 B, C
$ X ^% o3 U* `5 B
ITEMDATA:3 m# ` L5 `) D' x6 l
& z7 h! Y# U; I* m4 Z
( v' f( ?( }6 a2 e2 x. e0 G$ M0 k* s0 ^$ e/ Q! g
[code]item_begin etcitem (5560 ID ITEM) [name_item] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=potion recipe_id=0 blessed=0 weight=0 default_action=action_skill_reduce consume_type=consume_type_stackable initial_count=1 maximum_count=20 soulshot_count=0 spiritshot_count=0 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=1 item_skill=[s_name_SKILL] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[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 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 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end
) b+ a5 A q# }% {" G# E3 l
6 P- L6 s, {: x7 `0 k
. G: \/ Q4 @8 N U1 j+ f4 Q
$ ?5 ]- j& d. G& v$ F# N: ?SKILLPCH Y SKILLPCH2:
8 d2 r. Z* M2 n# ^% S$ Q; K7 ?9 `: H" o7 k7 K- R
! \" n; D7 Y# E6 W" Z7 X) d0 fYou should copy the code of skilldata and put it in the "L2OFF GM PANEL", where you have it installed, you have a txt that is also called "skilldata.txt", there paste the code and save, after this, open the "L2OFF GM PANEL", touching the option of "PCH Editor" and that will open the generator, in which you click "skilldata".1 w: w1 y9 ^$ {6 `- l& R
1 `; S/ k: z9 W0 y) y, b4 h1 a |
|