Jump to content
  • 0

[Help]java code


vaggos909090

Question

pedia katebasa ena jet bike

kai eixe mesa 2 zip ena core kai ena dp

ta ekana extract kai ta files itan se .diff

download link:http://www.4shared.com/file/257820077/30e26a15/Jet_bike.html gia na dite ta files

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

ton plirwneis?ax0a0xa0

enoeis plhgwneis?an  nai oxi kai toso

to ekana post epeidh i8ela na to balw kai elege diff type

 

dn ine tpt duskolo

mono to anoigis me notepad

8es na rotisis tpt alo/

Link to comment
Share on other sites

  • 0

ok to anoi3a

min to kaneis lock mipos 8elw help sto na to balw java

an parousiastoun problimata 8a to post edw

oso gia auto re ventic http://www.maxcheaters.com/forum/index.php?topic=148153.0

exw problima

otan bazw auto to code m exei problima oti dn mporw na bgalw/balw items

kana help?

Link to comment
Share on other sites

  • 0

ok to anoi3a

min to kaneis lock mipos 8elw help sto na to balw java

an parousiastoun problimata 8a to post edw

oso gia auto re ventic http://www.maxcheaters.com/forum/index.php?topic=148153.0

exw problima

otan bazw auto to code m exei problima oti dn mporw na bgalw/balw items

kana help?

lipon se auto to topic rotas gia to code,dn 8a s apantiso gia to alo s topic

ama 8es perimene na s reply

oti alo 8es gia ton code reply edo

Link to comment
Share on other sites

  • 0

DP:

Index: data/scripts.cfg
===================================================================
--- data/scripts.cfg	(revision 7222)
+++ data/scripts.cfg	(working copy)
@@ -89,6 +89,7 @@
transformations/InquisitorBishop.java
transformations/InquisitorElvenElder.java
transformations/InquisitorShilienElder.java
+transformations/JetBike.java
transformations/Kadomas.java
transformations/Kamael.java
transformations/KamaelGuardCaptain.java
Index: data/html/admin/gm_menu.htm
===================================================================
--- data/html/admin/gm_menu.htm	(revision 7222)
+++ data/html/admin/gm_menu.htm	(working copy)
@@ -56,5 +56,8 @@
<td><button value="Strider" action="bypass -h admin_ride_strider" width=65 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
<td><button value="Wyvern" action="bypass -h admin_ride_wyvern" width=65 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
<td><button value="Horse" action="bypass -h admin_ride_horse" width=65 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
-</tr></table><br>
-</center></body></html>
\ No newline at end of file
+</tr></table></center>
+<table width=65><tr>
+<td><button value="Bike" action="bypass -h admin_ride_bike" width=65 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
+</tr></table>
+</body></html>
\ No newline at end of file
Index: data/html/admin/transform3.htm
===================================================================
--- data/html/admin/transform3.htm	(revision 7222)
+++ data/html/admin/transform3.htm	(working copy)
@@ -67,6 +67,7 @@
</tr>
<tr>
<td><button value="Guardian Strider" action="bypass -h admin_transform_menu 123 $qbox" width=80 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
+<td><button value="Jet Bike" action="bypass -h admin_transform_menu 20001 $qbox" width=80 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
</tr>
</table>
</center>
Index: data/scripts/handlers/admincommandhandlers/AdminRide.java
===================================================================
--- data/scripts/handlers/admincommandhandlers/AdminRide.java	(revision 7222)
+++ data/scripts/handlers/admincommandhandlers/AdminRide.java	(working copy)
@@ -28,6 +28,7 @@
	private static final String[] ADMIN_COMMANDS =
	{
		"admin_ride_horse",
+		"admin_ride_bike",
		"admin_ride_wyvern",
		"admin_ride_strider",
		"admin_unride_wyvern",
@@ -40,6 +41,8 @@

	private static final int PURPLE_MANED_HORSE_TRANSFORMATION_ID = 106;

+	private static final int JET_BIKE_TRANSFORMATION_ID = 20001;
+	
	public boolean useAdminCommand(String command, L2PcInstance activeChar)
	{

@@ -71,6 +74,15 @@

				return true;
			}
+			else if (command.startsWith("admin_ride_bike")) // handled using transformation
+			{
+				if (activeChar.isTransformed() || activeChar.isInStance())
+					activeChar.sendPacket(new SystemMessage (SystemMessageId.YOU_CANNOT_MOUNT_A_STEED_WHILE_TRANSFORMED));
+				else
+					TransformationManager.getInstance().transformPlayer(JET_BIKE_TRANSFORMATION_ID, activeChar);
+				
+				return true;
+			}
			else
			{
				activeChar.sendMessage("Command '" + command + "' not recognized");
@@ -85,6 +97,9 @@
		{
			if (activeChar.getTransformationId() == PURPLE_MANED_HORSE_TRANSFORMATION_ID)
				activeChar.untransform();
+
+			if (activeChar.getTransformationId() == JET_BIKE_TRANSFORMATION_ID)
+				activeChar.untransform();
			else
				activeChar.dismount();
		}
Index: data/scripts/transformations/JetBike.java
===================================================================
--- data/scripts/transformations/JetBike.java	(revision 0)
+++ data/scripts/transformations/JetBike.java	(revision 0)
@@ -0,0 +1,53 @@
+package transformations;
+
+import com.l2jserver.gameserver.datatables.SkillTable;
+import com.l2jserver.gameserver.instancemanager.TransformationManager;
+import com.l2jserver.gameserver.model.L2Transformation;
+
+public class JetBike extends L2Transformation
+{
+private static final int[] SKILLS = {5491,839};
+public JetBike()
+{
+ // id, colRadius, colHeight
+ super(20001, 25, 22.5);
+ }
+
+ public void onTransform()
+ {
+ if (getPlayer().getTransformationId() != 20001 || getPlayer().isCursedWeaponEquipped())
+ return;
+
+ transformedSkills();
+ }
+
+ public void transformedSkills()
+ {
+ // Decrease Bow/Crossbow Attack Speed
+ getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);
+ // Dismount
+ getPlayer().addSkill(SkillTable.getInstance().getInfo(839, 1), false);
+
+ getPlayer().setTransformAllowedSkills(SKILLS);
+ }
+
+ public void onUntransform()
+ {
+ removeSkills();
+ }
+
+ public void removeSkills()
+ {
+ // Decrease Bow/Crossbow Attack Speed
+ getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);
+ // Dismount
+ getPlayer().removeSkill(SkillTable.getInstance().getInfo(839, 1), false);
+
+ getPlayer().setTransformAllowedSkills(EMPTY_ARRAY);
+ }
+
+ public static void main(String[] args)
+ {
+ TransformationManager.getInstance().registerTransformation(new JetBike());
+ }
+}
\ No newline at end of file
Index: data/stats/armor/20900-20999.xml
===================================================================
--- data/stats/armor/20900-20999.xml	(revision 7222)
+++ data/stats/armor/20900-20999.xml	(working copy)
@@ -6,4 +6,10 @@
	<item id="20922" name="Adventurer Hat">
		<for />
	</item>
+	<item id="20938" name="Jet Bike Mounting Bracelet - 7 day Limited Period">
+		<for />
+	</item>
+	<item id="20939" name="Jet Bike Mounting Bracelet - 30 day Limited Period">
+		<for />
+	</item>
</list>
\ No newline at end of file
Index: data/stats/skills/21100-21199.xml
===================================================================
--- data/stats/skills/21100-21199.xml	(revision 7222)
+++ data/stats/skills/21100-21199.xml	(working copy)
@@ -488,4 +488,17 @@
		<set name="skillType" val="NOTDONE" />
		<set name="operateType" val="OP_PASSIVE" />
	</skill>
+	<skill id="21171" levels="1" name="Riding Jet Bike">
+		<set name="operateType" val="OP_ACTIVE" />
+		<set name="skillType" val="BUFF" />
+		<set name="transformId" val="20001" />
+		<cond msgId="1509">
+			<player olympiad="false" />
+		</cond>
+		<for>
+			<effect name="Transformation" time="1800" val="0">
+				<mul order="0x30" stat="runSpd" val="1.5" />
+			</effect>
+		</for>
+	</skill>
</list>
\ No newline at end of file
Index: sql/admin_command_access_rights.sql
===================================================================
--- sql/admin_command_access_rights.sql	(revision 7222)
+++ sql/admin_command_access_rights.sql	(working copy)
@@ -433,6 +433,7 @@
('admin_res_monster','1'),

-- RIDE
+('admin_ride_bike','1'),
('admin_ride_horse','1'),
('admin_ride_wyvern','1'),
('admin_ride_strider','1'),
Index: sql/armor.sql
===================================================================
--- sql/armor.sql	(revision 7222)
+++ sql/armor.sql	(working copy)
@@ -2965,6 +2965,8 @@
(20897,'Purple Paper Mask','Blessed Soul - 7 day limited period','face','false','none',10,'wood','none',0,-1,10080,0,0,0,0,0,'false','false','true','false','false','0-0','0-0;'),
(20900,'Santa Hat','14 day limited period','hairall','false','none',10,'wood','none',0,-1,20160,0,0,0,0,0,'false','false','true','false','false','0-0','0-0;'),
(20922,'Adventurer Hat','','hairall','false','none',10,'wood','none',0,-1,-1,0,0,0,0,0,'false','false','true','false','false','0-0','0-0;'),
+(20938,'Jet Bike Mounting Bracelet','7-day Limited Period','lbracelet','false','none',30,'wood','none',0,-1,10080,0,0,0,0,0,'false','false','true','false','true','0-0','21171-1;'),
+(20939,'Jet Bike Mounting Bracelet','30 day limited period','lbracelet','false','none',30,'wood','none',0,-1,43200,0,0,0,0,0,'false','false','true','false','true','0-0','21171-1;'),
(22154,'Shadow Weapon - Wolf Hat','Blessed Escape','hairall','false','none',10,'wood','none',0,1440,-1,0,0,0,0,0,'true','true','true','true','true','0-0','0-0;'),
(22155,'Shadow Weapon - Wolf Hat','Blessed Resurrection','hairall','false','none',10,'wood','none',0,1440,-1,0,0,0,0,0,'true','true','true','true','true','0-0','0-0;'),
(22156,'Daisy Hairpin','','hair','false','none',10,'wood','none',0,-1,-1,0,0,0,0,0,'false','false','true','false','true','0-0','0-0;'),
Index: sql/npc.sql
===================================================================
--- sql/npc.sql	(revision 7222)
+++ sql/npc.sql	(working copy)
@@ -77,6 +77,7 @@
(29,29,'Flame Box',0,'Flame Box',0,'LineageNPC2.br_fire_box',11.00,12.50,70,'male','L2Npc',40,3862,1494,0.00,0.00,40,43,30,21,20,20,0,0,1303,471,607,382,253,0,333,0,0,0,0,60,120,0,0,'LAST_HIT','false'),
(30,30,'Santa',0,'Merry Christmas',0,'LineageNPC2.br_xmas08_santa',9.00,16.00,70,'male','L2Npc',40,3862,1494,0.00,0.00,40,43,30,21,20,20,0,0,1303,471,607,382,253,0,333,0,0,0,0,60,120,0,0,'LAST_HIT','false'),
(31,31,'',0,'',0,'LineageNPC.clear_npc',0.10,0.10,70,'male','L2Npc',40,3862,1494,0.00,0.00,40,43,30,21,20,20,0,0,1303,471,607,382,253,0,333,0,0,0,0,60,120,0,0,'LAST_HIT','false'),
+(32,32,'Jet Bike',0,'',0,'LineageNPC2.br_z_bike',25,22,70,'male','L2Npc',40,2444,2444,0,0,10,10,10,10,10,10,0,0,500,500,500,500,278,0,333,0,0,0,0,60,120,0,0,'LAST_HIT','false'),
(1501,1501,'Majo Agathion',0,'',0,'LineageNPC2.br_agathion_mazu',0.01,5.50,55,'male','L2Npc',40,2643,988,0.00,0.00,40,43,30,21,20,25,0,0,665,322,311,262,253,0,333,0,0,0,0,24,125,0,0,'LAST_HIT','false'),
(1502,1502,'Gold Agathion',0,'',0,'LineageNPC2.br_agathion_mazu',0.01,5.50,55,'male','L2Npc',40,2643,988,0.00,0.00,40,43,30,21,20,25,0,0,665,322,311,262,253,0,333,0,0,0,0,24,125,0,0,'LAST_HIT','false'),
(1503,1503,'Black Agathion',0,'',0,'LineageNPC2.br_agathion_mazu',0.01,5.50,55,'male','L2Npc',40,2643,988,0.00,0.00,40,43,30,21,20,25,0,0,665,322,311,262,253,0,333,0,0,0,0,24,125,0,0,'LAST_HIT','false'),

Core:

Index: java/com/l2jserver/gameserver/network/serverpackets/Ride.java
===================================================================
--- java/com/l2jserver/gameserver/network/serverpackets/Ride.java	(revision 4046)
+++ java/com/l2jserver/gameserver/network/serverpackets/Ride.java	(working copy)
@@ -59,6 +59,7 @@
			case 16042: // White Fenrir Wolf
				_rideType = 3;
				break;
+			case 32:    //Jet Bike
			case 13130: // Light Purple Maned Horse
			case 13146: // Tawny-Maned Lion
			case 13147: // Steam Sledge

 

Ginetai na mou to kanete gia interlude?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...