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