Code:
//Start Dangt351's Farming
//Allotment-Vegetables
if (ItemID == 5318 && UsedOnObjectID == 8553) { //Potato
if(playerLevel[19] >= 1) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5318,getItemSlot(5318), 1);
addItem(1942, 1);
addSkillXP(80, 19);
} else {
sM("You need a farming Level Of 1 to plant this seed.");
}
}
if (ItemID == 7548 && UsedOnObjectID == 8553) { //Onion
if(playerLevel[19] >= 5) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(7548,getItemSlot(7548), 1);
addItem(1957, 1);
addSkillXP(110, 19);
} else {
sM("You need a farming Level Of 5 to plant this seed.");
}
}
if (ItemID == 5322 && UsedOnObjectID == 8553) { //Tomato
if(playerLevel[19] >= 10) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5322,getItemSlot(5322), 1);
addItem(1982, 1);
addSkillXP(140, 19);
} else {
sM("You need a farming Level Of 10 to plant this seed.");
}
}
if (ItemID == 5284 && UsedOnObjectID == 8553) { //Banana
if(playerLevel[19] >= 15) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5284,getItemSlot(5284), 1);
addItem(1963, 1);
addSkillXP(150, 19);
} else {
sM("You need a farming Level Of 15 to plant this seed.");
}
}
if (ItemID == 5324 && UsedOnObjectID == 8553) { //Cabbage
if(playerLevel[19] >= 20) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5324,getItemSlot(5324), 1);
addItem(1965, 1);
addSkillXP(160, 19);
} else {
sM("You need a farming Level Of 20 to plant this seed.");
}
}
if (ItemID == 5323 && UsedOnObjectID == 8553) { //StrawBerry
if(playerLevel[19] >= 25) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5323,getItemSlot(5323), 1);
addItem(5504, 1);
addSkillXP(180, 19);
} else {
sM("You need a farming Level Of 25 to plant this seed.");
}
}
if (ItemID == 5321 && UsedOnObjectID == 8553) { //WaterMelon
if(playerLevel[19] >= 40) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5321,getItemSlot(5321), 1);
addItem(5982, 1);
addSkillXP(210, 19);
} else {
sM("You need a farming Level Of 40 to plant this seed.");
}
}
//Herbs
if (ItemID == 5291 && UsedOnObjectID == 8151) { //Guam
if(playerLevel[19] >= 1) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5291,getItemSlot(5291), 1);
addItem(249, 1);
addSkillXP(100, 19);
} else {
sM("You need a farming Level Of 1 to plant this seed.");
}
if (ItemID == 5293 && UsedOnObjectID == 8151) { //Tarromin
if(playerLevel[19] >= 5) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5293,getItemSlot(5293), 1);
addItem(253, 1);
addSkillXP(125, 19);
} else {
sM("You need a farming Level Of 5 to plant this seed.");
}
}
if (ItemID == 5295 && UsedOnObjectID == 8151) { //Ranarr
if(playerLevel[19] >= 10) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5295,getItemSlot(5295), 1);
addItem(257, 1);
addSkillXP(175, 19);
} else {
sM("You need a farming Level Of 10 to plant this seed.");
}
}
if (ItemID == 5292 && UsedOnObjectID == 8151) { //Marrentil
if(playerLevel[19] >= 15) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5292,getItemSlot(5292), 1);
addItem(251, 1);
addSkillXP(200, 19);
} else {
sM("You need a farming Level Of 15 to plant this seed.");
}
}
if (ItemID == 5294 && UsedOnObjectID == 8151) { //Harralander
if(playerLevel[19] >= 20) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5294,getItemSlot(5294), 1);
addItem(255, 1);
addSkillXP(250, 19);
} else {
sM("You need a farming Level Of 20 to plant this seed.");
}
}
if (ItemID == 5296 && UsedOnObjectID == 8151) { //ToadFlax
if(playerLevel[19] >= 30) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5296,getItemSlot(5296), 1);
addItem(2998, 1);
addSkillXP(275, 19);
} else {
sM("You need a farming Level Of 30 to plant this seed.");
}
}
if (ItemID == 5297 && UsedOnObjectID == 8151) { //Irit
if(playerLevel[19] >= 35) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5297,getItemSlot(5297), 1);
addItem(259, 1);
addSkillXP(300, 19);
} else {
sM("You need a farming Level Of 35 to plant this seed.");
}
}
if (ItemID == 5298 && UsedOnObjectID == 8151) { //Avantoe
if(playerLevel[19] >= 40) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5298,getItemSlot(5298), 1);
addItem(261, 1);
addSkillXP(325, 19);
} else {
sM("You need a farming Level Of 40 to plant this seed.");
}
}
if (ItemID == 5299 && UsedOnObjectID == 8151) { //Kwuarm
if(playerLevel[19] >= 45) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5299,getItemSlot(5299), 1);
addItem(263, 1);
addSkillXP(350, 19);
} else {
sM("You need a farming Level Of 45 to plant this seed.");
}
}
if (ItemID == 5300 && UsedOnObjectID == 8151) { //SnapDragon
if(playerLevel[19] >= 50) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5300,getItemSlot(5300), 1);
addItem(3000, 1);
addSkillXP(375, 19);
} else {
sM("You need a farming Level Of 50 to plant this seed.");
}
}
if (ItemID == 5301 && UsedOnObjectID == 8151) { //Cadantine
if(playerLevel[19] >= 55) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5301,getItemSlot(5301), 1);
addItem(265, 1);
addSkillXP(400, 19);
} else {
sM("You need a farming Level Of 55 to plant this seed.");
}
}
if (ItemID == 5302 && UsedOnObjectID == 8151) { //Lantadyme
if(playerLevel[19] >= 60) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5302,getItemSlot(5302), 1);
addItem(2481, 1);
addSkillXP(450, 19);
} else {
sM("You need a farming Level Of 60 to plant this seed.");
}
}
if (ItemID == 5303 && UsedOnObjectID == 8151) { //Dwarf
if(playerLevel[19] >= 65) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5303,getItemSlot(5303), 1);
addItem(267, 1);
addSkillXP(500, 19);
} else {
sM("You need a farming Level Of 65 to plant this seed.");
}
}
if (ItemID == 5304 && UsedOnObjectID == 8151) { //Torstol
if(playerLevel[19] >= 70) {
startAnimation(2273);
sM("You Plant The Seed.");
deleteItem(5304,getItemSlot(5304), 1);
addItem(269, 1);
addSkillXP(600, 19);
} else {
sM("You need a farming Level Of 70 to plant this seed.");
}
}
}
//End Dangt351's Farming4. Save, Compile And Run.