To TMW2.org List of all Items

Friend Gift | 612

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

ID 612
Type IT_USABLE

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;
elsegetitem CottonCloth, 1;
[email protected]=PiouLegs;
switch(rand(1,3)) {case "1":,[email protected]=PiouLegs;
break;
case "2":,[email protected]=Piberries;
break;
case "3":,[email protected]=Cheese;
break;
}getitem [email protected], rand(2,3);
dispbottom l("Dear @@, I send you this gift in hopes you do well in TMW2.", strcharinfo(0));
$REFERRAL_IDS[#REFERRAL_PROG]=$REFERRAL_IDS[#REFERRAL_PROG]+1;
}