Jump to content
  • 0

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


Question

Posted

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.

3 answers to this question

Recommended Posts

  • 0
Posted

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

 

  • 0
Posted
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

  • 0
Posted
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
 

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...