Teleport Scrolls

Go down

Teleport Scrolls

Post by GM-Exid on 12/11/14, 08:34 am

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.

GM-Exid
Elder
Elder

Posts : 176
Join date : 2014-06-01
Location : Van Nuys, CA

View user profile

Back to top Go down

Re: Teleport Scrolls

Post by Mobius on 12/11/14, 02:58 pm

Skill for this SoE might be 9928.

Check Skill 18105 Faeron Village SoE and gameserver/skills/skillclasses/Recall.java
avatar
Mobius
Administrator
Administrator

Posts : 686
Join date : 2014-05-31

View user profile http://mobius.great-forum.com

Back to top Go down

Re: Teleport Scrolls

Post by Rizaar on 12/11/14, 03:11 pm

Hi,

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>
What information we need for a scroll is:
Town ID, Item consumed and the type of skill, here "RECALL"

In gameserver.skills.skillclasses.Recall.java you have the code you want  Wink

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
Heir

Posts : 47
Join date : 2014-06-07

View user profile

Back to top Go down

Re: Teleport Scrolls

Post by Mobius on 12/11/14, 03:43 pm

if (_itemConsumeId[0] == 34979) // Scroll of Escape: Forge of the Gods
{
pcTarget.teleToLocation(175992, -116088, -3798, 0);
return;
}
avatar
Mobius
Administrator
Administrator

Posts : 686
Join date : 2014-05-31

View user profile http://mobius.great-forum.com

Back to top Go down

Re: Teleport Scrolls

Post by GM-Exid on 12/11/14, 06:14 pm

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

GM-Exid
Elder
Elder

Posts : 176
Join date : 2014-06-01
Location : Van Nuys, CA

View user profile

Back to top Go down

Re: Teleport Scrolls

Post by Mobius on 12/11/14, 08:10 pm

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.
avatar
Mobius
Administrator
Administrator

Posts : 686
Join date : 2014-05-31

View user profile http://mobius.great-forum.com

Back to top Go down

Re: Teleport Scrolls

Post by GM-Exid on 13/11/14, 02:16 am

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
Elder

Posts : 176
Join date : 2014-06-01
Location : Van Nuys, CA

View user profile

Back to top Go down

Re: Teleport Scrolls

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum