Jump to content
  • 0

Drop upper headgear after player death


MpLL

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  04/02/15
  • Last Seen:  

Hi all
I need a script for drop the upper headgear after player death in all PvP map.

I was trying PvP_nightmaredrop but it's random equip and I will just upper headgear.

Please help me

Sorry for my bad english

Edited by MpLL
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  04/02/15
  • Last Seen:  

Bump

 

Help me plz !

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

What about..

-	script	drop_headgear	-1,{
OnPCDieEvent:
	if ( getequipisequiped(EQI_HEAD_TOP) && getmapflag( strcharinfo(3),mf_pvp ) ) {
		getmapxy .@map$, .@x, .@y, 0;
		makeitem2 getequipid(EQI_HEAD_TOP),1,.@map$,.@x,.@y,1,getequiprefinerycnt(EQI_HEAD_TOP),0,getequipcardid(EQI_HEAD_TOP,0),getequipcardid(EQI_HEAD_TOP,1),getequipcardid(EQI_HEAD_TOP,2),getequipcardid(EQI_HEAD_TOP,3);
		delequip EQI_HEAD_TOP;
	}
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  04/02/15
  • Last Seen:  

Il fallait que je parle d'headgear pour tomber sur Capuche xD !! 

 

Big thank you  /no1

 

 

 

 

 

 

 

  • getmapxy("<variable for map name>",<variable for x>,<variable for y>,<type>{,"<search string>"});
  • makeitem2 <item id>,<amount>,"<map name>",<X>,<Y>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>;
  • delequip <equipment slot>;
Edited by MpLL
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...