Jump to content
  • 0

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


hadji22

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  12/28/14
  • Last Seen:  

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.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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 .@map$, .@x, .@y;
		.@i = countitem(.item) / 10;
		if (!.@i) end;
		delitem .item, .@i;
		makeitem .item, .@i, .@map$, .@x, .@y;
		end;
	
	OnInit:
		.item = 969; // Gold
		end;
}

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  12/28/14
  • Last Seen:  

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 .@map$, .@x, .@y;
		.@i = countitem(.item) / 10;
		if (!.@i) end;
		delitem .item, .@i;
		makeitem .item, .@i, .@map$, .@x, .@y;
		end;
	
	OnInit:
		.item = 969; // Gold
		end;
}

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

 

Oh thank you, it's working perfectly

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.02
  • Content Count:  43
  • Reputation:   0
  • Joined:  04/06/22
  • Last Seen:  

On 5/12/2020 at 10:32 PM, 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 .@map$, .@x, .@y;
		.@i = countitem(.item) / 10;
		if (!.@i) end;
		delitem .item, .@i;
		makeitem .item, .@i, .@map$, .@x, .@y;
		end;
	
	OnInit:
		.item = 969; // Gold
		end;
}

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

 

Hi. im using this script and it doesnt delete the item ?

 

    warp "guild_vs3", 50, 50;
    end;

    OnPCDieEvent:
        if (strcharinfo(3) != "guild_vs3" || !countitem(.item) || killerrid == getcharid(3)) end;
        getmapxy .@map$, .@x, .@y;
        .@i = countitem(.item) / 50;
        if (!.@i) end;
        delitem .item, .@i;
        makeitem .item, .@i, .@map$, .@x, .@y;
        end;
    
    OnInit:
        .item = 671; // Gold
        end;
}

guild_vs3,0,0    monster    Dokebi    1491,50,0
 

 

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