Jump to content
  • 0

Unable to use Yggberry during @duel anywhere?


Wise

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  147
  • Reputation:   26
  • Joined:  11/19/11
  • Last Seen:  

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


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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 by cydh
Link to comment
Share on other sites

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...