huntax Posted January 13, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 44 Reputation: 0 Joined: 12/11/12 Last Seen: May 3, 2013 Share Posted January 13, 2013 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 Quote Link to comment Share on other sites More sharing options...
Question
huntax
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.