Moubootaur Legends

Friend Gift - Item DB

Friend Gift | 612

Sent by your friend. Can be opened at level 5.

ID 612
type IT_USABLE

Mobs that drop this item:

No Monsters drop this item.

This Item has Trade restrictions

ID for use in Discord:
Expert View

You'd like to see behind the curtain? Then you are here at the right place - lots of data only contributors would normally see.

Open raw JSON
ID 612
aegisName FriendGift
Script

Script to execute when the item is used/equipped.

if (BaseLevel < 5) {
	dispbottom l("You must reach level 5 to open this gift.");
	getitembound FriendGift, 1, 1;
} else {
	getitem ScorpionStinger, rand(1,3);
	getitem BugLeg, rand(1,3);
	getitem MaggotSlime, rand(1,3);
	Zeny=Zeny+50;

	if (rand(1,2) == 1)
getitem Beer, 1;
	else
getitem CottonCloth, 1;

	.@it=PiouLegs;
	switch(rand(1,3)) {
	case 1:
.@it=PiouLegs;break;
	case 2:
.@it=Piberries;break;
	case 3:
.@it=Cheese;break;
	}
	getitem .@it, rand(2,3);
	dispbottom l("Dear @@, I send you this gift in hopes you do well in TMW2.", strcharinfo(0));
$REFERRAL_IDS[	.@charid=callfunc("gf_charid", 	rodex_sendmail(.@charid, "TMW2 Team", "Invite Accepted", strcharinfo(0)+" accepted your invite and got level 5!\nAs they get stronger, more rewards will be sent to you!", rand(25,50));
}