Jump to content

Question

Posted

Basically, a script / way to make it so that if you have 5 ppl in an instance, whenever a monster dies, all of them have a chance of obtaining the drop instead of it just dropping on the floor like normally, this would be encourage party play since many times people will not want to party due to having to share the loot, to clarify i dont want want just 1 person to randomly get it, i want the roll to done individually for all members and if it wouldve dropped, they get it in their inventory.

 

I hope this makes sense and any guide / help / assistance would be greatly appreciated and if required im willing to pay for a working version of this for my instances,

 

Thank you in advance.

3 answers to this question

Recommended Posts

  • 0
Posted
11 hours ago, LadyNanuia said:

Basically, a script / way to make it so that if you have 5 ppl in an instance, whenever a monster dies, all of them have a chance of obtaining the drop instead of it just dropping on the floor like normally, this would be encourage party play since many times people will not want to party due to having to share the loot, to clarify i dont want want just 1 person to randomly get it, i want the roll to done individually for all members and if it wouldve dropped, they get it in their inventory.

 

I hope this makes sense and any guide / help / assistance would be greatly appreciated and if required im willing to pay for a working version of this for my instances,

 

Thank you in advance.

 

That way you just need to adapt it to your instance script, in the simple way you would only need to add the code in the mob death label of your instance.

	setarray .@Drops[0],
		607,5,10000,	//5x Ygg 100%
		523,10,5000,	//10x Holy Water 50%
		12090,5,488,	//5x Steamed Desert Scorpions 4,88%
		5086,1,2200;	//1x Alarm Mask 22%


	getpartymember getcharid(1),1;
	getpartymember getcharid(1),2;

	for(set .@i,0; .@i<$@partymembercount; set .@i,.@i+1)
	{	
		if(isloggedin($@partymemberaid[.@i],$@partymembercid[.@i]))
		{
			attachrid($@partymemberaid[.@i]);		
			else if(strcharinfo(3) == instance_mapname("map_instance"))
			{	
				for(set .@i,0; .@i<getarraysize(.@Drops); set .@i,.@i+3)
				{
					set .@rnd,rand(1,10000);
					if(.@rnd <= .@Drops[.@i+2])
					{
						getitem .@Drops[.@i],.@Drops[.@i+1];
						if(.@Drops[.@i+2] <= 500)
						{
							set .@calc,(.@Drops[.@i+2]*100);
							set .@cRess$,(.@calc%10000 ? (.@calc/10000)+","+substr(""+(.@calc%10000),0,1):(.@calc/10000))+"%";
							announce "[IN INSTANCE]: "+strcharinfo(0)+" gained "+.@Drops[.@i+1]+"x "+getitemname(.@Drops[.@i])+" ~ "+.@cRess$+"",bc_all;
						}
					}
				}
			}
			detachrid;
		}
	}
	end;

 

  • Upvote 1
  • Love 1
  • 0
Posted
2 hours ago, Hyroshima said:

 

That way you just need to adapt it to your instance script, in the simple way you would only need to add the code in the mob death label of your instance.

	setarray .@Drops[0],
		607,5,10000,	//5x Ygg 100%
		523,10,5000,	//10x Holy Water 50%
		12090,5,488,	//5x Steamed Desert Scorpions 4,88%
		5086,1,2200;	//1x Alarm Mask 22%


	getpartymember getcharid(1),1;
	getpartymember getcharid(1),2;

	for(set .@i,0; .@i<$@partymembercount; set .@i,.@i+1)
	{	
		if(isloggedin($@partymemberaid[.@i],$@partymembercid[.@i]))
		{
			attachrid($@partymemberaid[.@i]);		
			else if(strcharinfo(3) == instance_mapname("map_instance"))
			{	
				for(set .@i,0; .@i<getarraysize(.@Drops); set .@i,.@i+3)
				{
					set .@rnd,rand(1,10000);
					if(.@rnd <= .@Drops[.@i+2])
					{
						getitem .@Drops[.@i],.@Drops[.@i+1];
						if(.@Drops[.@i+2] <= 500)
						{
							set .@calc,(.@Drops[.@i+2]*100);
							set .@cRess$,(.@calc%10000 ? (.@calc/10000)+","+substr(""+(.@calc%10000),0,1):(.@calc/10000))+"%";
							announce "[IN INSTANCE]: "+strcharinfo(0)+" gained "+.@Drops[.@i+1]+"x "+getitemname(.@Drops[.@i])+" ~ "+.@cRess$+"",bc_all;
						}
					}
				}
			}
			detachrid;
		}
	}
	end;

 

Can i DM you and we speak more about this in private?

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