Jump to content

xP3NG3Rx

Honorable Member
  • Content Count

    785
  • Joined

  • Last visited

  • Days Won

    240

xP3NG3Rx last won the day on April 2

xP3NG3Rx had the most liked content!

Community Reputation

2825 Chivalric

About xP3NG3Rx

  • Rank
    Chivalric

Informations

  • Gender
    Male
  • Location
    Wien

Social Networks

Recent Profile Visitors

21685 profile views

Single Status Update

See all updates by xP3NG3Rx

  1. Hi xP3NG3Rx!

     

    im use or function to see players inventory.... but how can i ask and remove one item to use option?

     

    ACMD(do_view_equip)
    {
    
    	LPITEM	item;
    	
    	char arg1[256];
    	one_argument(argument, arg1, sizeof(arg1));
    
    	if (*arg1)
    	{
    		DWORD vid = 0;
    		str_to_number(vid, arg1);
    		LPCHARACTER tch = CHARACTER_MANAGER::instance().Find(vid);
    
    		if (!tch)
    			return;
    
    		if (!tch->IsPC())
    			return;
    		
    **********************************************************
    			
    		remove_item (123) or return
    
    **********************************************************
    
    			
    		if ((item = GetInventoryItem(189)))
    			item->RemoveFromCharacter();	
    			
    		if (tch->GetGMLevel() > GM_PLAYER ) 
    		{
    			ch->ChatPacket(CHAT_TYPE_INFO, ("<Sistema> Não podes ver os equipamentos de um [GM]. "));
    			return;
    		}
    		//if (tch->IsBlockMode(BLOCK_VIEW_EQUIPMENT)) 
    		//{
    		//	ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ekipman konusmasi"));
    		//	return;
    		//}  
    	
    		
    		tch->SendEquipment(ch);
    	}
    }

    Can u help me please!

    1. Niko. Developer
    2. xP3NG3Rx
    3. EnKor

      EnKor

      No need now. But ty!

      if (CountSpecifyItem(vnum) >= count)
      	RemoveSpecifyItem(vnum, count);
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.