Jump to content
  • 0
Sign in to follow this  
hadji22

R> Gold room when player die inside gold room 10% of gold loot will dropped

Question

good day masters can i request a gold room for my server?

something like this
when you die inside the gold room, 10% of your gold loot will dropped from your inventory

ex. i have 100 gold in my inventory and someone killed me so 10% of my gold will dropped.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Try below

prontera,150,150,6	script	Gold Room Warper	100,{
	warp "ordeal_3-1", 149, 149;
	end;

	OnPCDieEvent:
		if (strcharinfo(3) != "ordeal_3-1" || !countitem(.item) || killerrid == getcharid(3)) end;
		getmapxy [email protected]$, [email protected], [email protected];
		[email protected] = countitem(.item) / 10;
		if ([email protected]) end;
		delitem .item, [email protected];
		makeitem .item, [email protected], [email protected]$, [email protected], [email protected];
		end;
	
	OnInit:
		.item = 969; // Gold
		end;
}

ordeal_3-1,0,0	monster	Dokebi	1110,50,5000

 

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Patskie said:

Try below

prontera,150,150,6	script	Gold Room Warper	100,{
	warp "ordeal_3-1", 149, 149;
	end;

	OnPCDieEvent:
		if (strcharinfo(3) != "ordeal_3-1" || !countitem(.item) || killerrid == getcharid(3)) end;
		getmapxy [email protected]$, [email protected], [email protected];
		[email protected] = countitem(.item) / 10;
		if ([email protected]) end;
		delitem .item, [email protected];
		makeitem .item, [email protected], [email protected]$, [email protected], [email protected];
		end;
	
	OnInit:
		.item = 969; // Gold
		end;
}

ordeal_3-1,0,0	monster	Dokebi	1110,50,5000

 

Oh thank you, it's working perfectly

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.