Teleport Scrolls
Page 1 of 1 • Share
Teleport Scrolls
Where is the data stored for teleport scrolls
Example: Scroll of escape: Heine
which is part of the Kekropus Letter quest, suppose to port you to Captain Gosta in Heine.
I see itemId which points to skillId, but there is no location data. Anyone have any clues?
I check restart points, and I didn't see anything that pertains to Scrolls.
Example: Scroll of escape: Heine
which is part of the Kekropus Letter quest, suppose to port you to Captain Gosta in Heine.
I see itemId which points to skillId, but there is no location data. Anyone have any clues?
I check restart points, and I didn't see anything that pertains to Scrolls.
GM-Exid- Elder
- Posts : 176
Join date : 2014-06-01
Location : Van Nuys, CA
Re: Teleport Scrolls
Skill for this SoE might be 9928.
Check Skill 18105 Faeron Village SoE and gameserver/skills/skillclasses/Recall.java
Check Skill 18105 Faeron Village SoE and gameserver/skills/skillclasses/Recall.java
Re: Teleport Scrolls
Hi,
if you look closer, you have this piece of code:
Town ID, Item consumed and the type of skill, here "RECALL"
In gameserver.skills.skillclasses.Recall.java you have the code you want
Just grab the good locations and add it to the code. The loop "if" for location out of town is line 189
but we haven't finish yet, in your xml skill, you have to put at the end of "#itemconsumedId" the ID of your item (scroll) and at #townId, the ID of nearest town i think (not sure, i haven't tested the loc atm)
if you look closer, you have this piece of code:
- Code:
<skill id="2213" levels="22" name="Scroll of Escape: Kamael Village">
<table name="#itemConsumeId">7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7618 7619 9716</table>
<table name="#townId">1 2 3 4 5 7 6 8 19 9 9 13 10 10 12 11 15 14 16 15 15 17</table>
<set name="magicType" val="SPECIAL"/>
<set name="icon" val="icon.skill0000"/>
<set name="magicLevel" val="1"/>
<set name="hitTime" val="20000"/>
<set name="hitCancelTime" val="500"/>
<set name="townId" val="#townId"/>
<set name="itemConsumeId" val="#itemConsumeId"/>
<set name="itemConsumeCount" val="1"/>
<set name="isHandler" val="true"/>
<set name="target" val="TARGET_SELF"/>
<set name="skillType" val="RECALL"/>
<set name="operateType" val="OP_ACTIVE"/>
</skill>
Town ID, Item consumed and the type of skill, here "RECALL"
In gameserver.skills.skillclasses.Recall.java you have the code you want
Just grab the good locations and add it to the code. The loop "if" for location out of town is line 189
- Code:
if (_isItemHandler)
but we haven't finish yet, in your xml skill, you have to put at the end of "#itemconsumedId" the ID of your item (scroll) and at #townId, the ID of nearest town i think (not sure, i haven't tested the loc atm)
Rizaar- Heir
- Posts : 47
Join date : 2014-06-07
Re: Teleport Scrolls
if (_itemConsumeId[0] == 34979) // Scroll of Escape: Forge of the Gods
{
pcTarget.teleToLocation(175992, -116088, -3798, 0);
return;
}
{
pcTarget.teleToLocation(175992, -116088, -3798, 0);
return;
}
Re: Teleport Scrolls
perfect, i will work on this tonight, i have the item and skill id's for the SOE's, man i was going crazy, one last thing, where are the townId's store
example
1 = ??
2 = ??
3 =??
etc etc
example
1 = ??
2 = ??
3 =??
etc etc
GM-Exid- Elder
- Posts : 176
Join date : 2014-06-01
Location : Van Nuys, CA
Re: Teleport Scrolls
You dont need to add town id.
Just add an if in the java file to check the use of the spesific SoE item.
Send me itemId and coords in skype and I will fix it for you.
Just add an if in the java file to check the use of the spesific SoE item.
Send me itemId and coords in skype and I will fix it for you.
Re: Teleport Scrolls
I was just wondering townId for my personal use, i can add these teleport items to the recall.java and ill add the spawn for eli also, quest will be submitted for commit tonight.
GM-Exid- Elder
- Posts : 176
Join date : 2014-06-01
Location : Van Nuys, CA
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|