Jump to content
  • 0

Edit Script nighmare mode


Erio-chan

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   10
  • Joined:  07/23/16
  • Last Seen:  

I have found this script here it makes player drop item 100% when die (monster/player kill).

I wanted to implement it on all map so I disabled first line in OnPCDieEvent and also the pk points.

Is it possible to disable this script by having special item on my inventory? (example "apple")

-	script	Bloodymode	-1,{
	
	OnPCDieEvent:
		//if ( strcharinfo(3) != "moc_fild12" ) end; // set your map
		//if ( pkpoints < 100 ) end; // decide on the pk points
		getinventorylist;
		if ( !@inventorylist_count ) end;
		.@r = rand( @inventorylist_count );
		delitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
		getmapxy .@map$, .@x, .@y, 0;
		makeitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], .@map$, .@x, .@y, @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
		end;
	}

 

Edited by Erio-chan
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

just add the line after the OnPCDieEvent:

if (countitem(501) >= 1) end;

where, 501 is the id of the item

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   10
  • Joined:  07/23/16
  • Last Seen:  

@Enthrthank you, I will try it <3

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