Jump to content
  • 0

Unable to use Yggberry during @duel anywhere?


Question

Posted

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

Posted (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 by cydh

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...