Wise Posted January 26, 2013 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 147 Reputation: 26 Joined: 11/19/11 Last Seen: October 28, 2021 Share 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 Link to comment Share on other sites More sharing options...
Cydh Posted January 27, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.