Wise Posted January 26, 2013 Posted January 26, 2013 I thought this would be a source mod because of @duel so i posted it here. I know how the PVP Arena works because you will only have to use the restrict mapflag but this one is @duel, so yeah. hope someone could figure this one out Quote
Cydh Posted January 27, 2013 Posted January 27, 2013 (edited) I think when player on @duel, he has sd->duel_group not empty. Maybe you can use this for check on pc_useitem() on src/map/pc.c int pc_useitem(struct map_session_data *sd,int n) { .... if( !pc_isUseitem(sd,n) ) return 0; //try use this, 607 = Yggdrasilberry if(sd->duel_group && sd->status.inventory[n].nameid == 607) return 0; //------ // Store information for later use before it is lost (via pc_delitem) [Paradox924X] nameid = sd->inventory_data[n]->nameid; .... } Edited January 27, 2013 by cydh Quote
Question
Wise
I thought this would be a source mod because of @duel so i posted it here.
I know how the PVP Arena works because you will only have to use the restrict mapflag
but this one is @duel, so yeah. hope someone could figure this one out
1 answer 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.