Jump to content
  • 0

Need Help To Create Teleport Scroll


Question

Posted

hi guys... i need your help is someone knows how to create a custom scroll of teleport to a custom loc.... like scroll of war from exilium... if someone can hlp me i glad to learn

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Create your own itemhandler / skillhandler. Scrolls of escape use generic ItemSkills itemhandler, which uses skillid 2013. Skill 2013 uses RECALL skill type, which uses itself L2SkillTeleport.

 

Easiest would be to make your scroll acts like a generic SoE, but create your own recallType (behavior handled by L2SkillTeleport).

 

Edit that section, add another else if with your new recall type and behavior, and c/p the SoE : ClanHall item data and edit the recallType :

				if (_recallType.equalsIgnoreCase("Castle"))
					loc = MapRegionTable.getInstance().getTeleToLocation(target, MapRegionTable.TeleportWhereType.Castle);
				else if (_recallType.equalsIgnoreCase("ClanHall"))
					loc = MapRegionTable.getInstance().getTeleToLocation(target, MapRegionTable.TeleportWhereType.ClanHall);
				else
					loc = MapRegionTable.getInstance().getTeleToLocation(target, MapRegionTable.TeleportWhereType.Town);
Edited by Tryskell

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...