Jump to content
  • 0

Custom Fly Wing


Question

Posted (edited)

Hello everybody,

it's me again xD

But I got a little question. I saw on some other Server that they have a Fly Wing which don't disappears after using.

Know someone maybe, how it works?

I tried to add it at the db with 'makeitem' and 'getitem' but you can see, that you become it again and if you use it to fast, you don't become another one.

Example:

601,Wing_Of_Fly,Fly Wing,11,60,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ itemskill "AL_TELEPORT",1; getitem 601,1; },{},{}

Greetings

Sere

Edited by Sere

5 answers to this question

Recommended Posts

Posted

The 'itemskill' command will cause delayed consumables (item type 11) to be consumed -- otherwise, they'll remain in your inventory. So a simple workaround would be something like:

{ warp strcharinfo(3),0,0; },{},{}

  • Upvote 1
Posted (edited)

oooww awesome!

Many many thanks, I wanted that Fly Wing for really a long time, exactly this way.

Edited by Sere
Posted

The 'itemskill' command will cause delayed consumables (item type 11) to be consumed -- otherwise, they'll remain in your inventory. So a simple workaround would be something like:

{ warp strcharinfo(3),0,0; },{},{}

I am having problem with this, it will allow player to use it to random warp inside building and guild castles. Any way to solve it?

Posted

Check against the "No Teleport" mapflag:

{ if (getmapflag(strcharinfo(3),mf_noteleport)) dispbottom "Unable to warp on this map."; else warp strcharinfo(3),0,0; },{},{}

  • Upvote 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...