Jump to content
  • 0

setmounting() problem


huntax

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  12/11/12
  • Last Seen:  

here is the item i made with the script

30015,Rival_Mount_Flute,Rival Mount Flute,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ setmounting(); },{},{}

When I click the item it works my character gets on the mount.

But when I click it again to get off the mount it doesn't work.

I tried the Reins item

12622,Reins_Of_Mount,Reins Of Mount,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ setmounting(); },{},{}

Everything works i can get on and off the mount with no problem.

Why isn't the custom item not making me get off my mount.

Fixed it i changed a coding in pc.c

/* Items with delayed consume are not meant to work while in mounts except reins of mount(12622) */

if( sd->inventory_data[n]->flag.delay_consume ) {

if( nameid != ITEMID_REINS_OF_MOUNT && sd->sc.option&OPTION_MOUNTING )

return 0;

else if( pc_issit(sd) )

return 0;

}

Changed it to my custom item id

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×
×
  • Create New...