numl0ckas Posted July 24, 2013 Posted July 24, 2013 Hello, can someone make config with PetRunSpeed = 0, if i put 10 all pets run speed is increased by 10. Thanks! Pack: L2jaCis
0 Medisept Posted July 24, 2013 Posted July 24, 2013 all pets you mean summons too? Because in l2 summons and pets are different things :o
0 numl0ckas Posted July 25, 2013 Author Posted July 25, 2013 I think only summons, Dark Panther, Magnus the Unicorn etc.
0 Medisept Posted July 25, 2013 Posted July 25, 2013 You could make it within 1 minute using this query to your database. update npc set runspd = runspd +10 WHERE type = 'L2Pet' 10 is the value you would like to increase.
0 Devlin Posted July 25, 2013 Posted July 25, 2013 Dunno if works just test. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PetInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PetInstance.java (revision 65) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PetInstance.java (working copy) @@ -938,7 +938,7 @@ @Override public int getRunSpeed() { - return getStat().getRunSpeed(); + return getStat().getRunSpeed() + Config.PET_RUN_SPEED; } Plus create an int config.
0 numl0ckas Posted July 25, 2013 Author Posted July 25, 2013 Thanks, Devlin! Its for summons like magnus the unicorn, dark panther etc?
0 Devlin Posted July 25, 2013 Posted July 25, 2013 Thanks, Devlin! Its for summons like magnus the unicorn, dark panther etc? It's for all summons whose type is L2Pet.
0 numl0ckas Posted July 25, 2013 Author Posted July 25, 2013 <npc id="14835" name="Dark Panther" title=""> <set name="level" val="80"/> <set name="radius" val="7"/> <set name="height" val="13"/> <set name="rHand" val="0"/> <set name="lHand" val="0"/> <set name="type" val="L2Pet"/> So okey, very good, lock it. thanks!
0 Devlin Posted July 25, 2013 Posted July 25, 2013 <npc id="14835" name="Dark Panther" title=""> <set name="level" val="80"/> <set name="radius" val="7"/> <set name="height" val="13"/> <set name="rHand" val="0"/> <set name="lHand" val="0"/> <set name="type" val="L2Pet"/> So okey, very good, lock it. thanks! Test it first if you want.
0 Gries Posted July 25, 2013 Posted July 25, 2013 Aren't pet stored as npc in the database? If yes, you can just modify their stats from there.
0 Tryskell Posted July 25, 2013 Posted July 25, 2013 What, NO, edit L2SummonInstance. Don't begin to put Dark Panther as a L2Pet, you will manage to get funny surprises.
0 numl0ckas Posted July 25, 2013 Author Posted July 25, 2013 Tryskell, i dont change anything in npcs.xml, in default its same:)
Question
numl0ckas
Hello, can someone make config with PetRunSpeed = 0, if i put 10 all pets run speed is increased by 10.
Thanks!
Pack: L2jaCis
11 answers to this question
Recommended Posts