Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
18 kB
3
Indexable
Never
.find("action|dialog_return\ndialog_name|upgrademenu\nbuttonClicked|wing") != string::npos) {
							int level1pickaxe = 0; int level2pickaxe = 0; int level3pickaxe = 0;
							modify_inventory(peer, 9532, level1pickaxe); modify_inventory(peer, 9806, level2pickaxe);  modify_inventory(peer, 9876, level3pickaxe);

							if (level1pickaxe > 0 && level2pickaxe < 1 && level3pickaxe < 1)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Wing``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6[LEVEL 2] Dark Chimera``|left|9806|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bREQUIREMENTS:``|left|10396|\n"
									"add_label_with_icon|small|`0- Level 1 Wing``|left|9532|\n"
									"add_label_with_icon|small|`0- 60,000,000``|left|9438|\n"
									"add_label_with_icon|small|`0- Upgrade Box``|left|13726|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bFEAUTURES:``|left|10396|\n"
									"add_label_with_icon|small|`0- 3x Gems``|left|2310|\n"
									"add_label_with_icon|small|`0- Double Jump``|left|2318|\n"
									"add_spacer|small|\n"
									"add_button|upgrade|`cUpgrade``|noflags|0|0|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|upgradewing1|||");
								p.CreatePacket(peer);
							}
							else if (level2pickaxe > 0 && level3pickaxe < 1)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Wing``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6[LEVEL 3] Neon Phoenix``|left|9876|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bREQUIREMENTS:``|left|10396|\n"
									"add_label_with_icon|small|`0- Level 2 Wing``|left|9806|\n"
									"add_label_with_icon|small|`0- 3x Blue Gem Lock`|left|7188|\n"
									"add_label_with_icon|small|`0- Upgrade Box``|left|13726|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bFEAUTURES:``|left|10396|\n"
									"add_label_with_icon|small|`0- 4x Gems``|left|2322|\n"
									"add_label_with_icon|small|`0- Double Jump``|left|2320|\n"
									"add_spacer|small|\n"
									"add_button|upgrade|`2Upgrade``|noflags|0|0|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|upgradewing2|||");
								p.CreatePacket(peer);
							}
							else if (level1pickaxe == 0 && level2pickaxe == 0 && level3pickaxe == 0)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Wing``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6You dont have level 1 wing``|left|9532|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|marketdigger|||");
								p.CreatePacket(peer);
							}
							else if (level3pickaxe >= 0)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Wing``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6You have max wing``|left|9876|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|marketdigger|||");
								p.CreatePacket(peer);
							}
						}
						else if (cch.find("action|dialog_return\ndialog_name|upgrademenu\nbuttonClicked|pickaxe") != string::npos) {
							int level1pickaxe = 0; int level2pickaxe = 0; int level3pickaxe = 0;
							modify_inventory(peer, 4956, level1pickaxe); modify_inventory(peer, 13026, level2pickaxe);  modify_inventory(peer, 9536, level3pickaxe);

							if (level1pickaxe > 0 && level2pickaxe < 1 && level3pickaxe < 1)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Pickaxe``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6[LEVEL 2] Obsidian Pickaxe``|left|13026|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bREQUIREMENTS:``|left|10396|\n"
									"add_label_with_icon|small|`0- Level 1 Pickaxe``|left|4956|\n"
									"add_label_with_icon|small|`0- 60,000,000``|left|9438|\n"
									"add_label_with_icon|small|`0- Upgrade Box``|left|13726|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bFEAUTURES:``|left|10396|\n"
									"add_label_with_icon|small|`0- 3x Xp``|left|2310|\n"
									"add_label_with_icon|small|`0- 1 Hit``|left|2318|\n"
									"add_spacer|small|\n"
									"add_button|upgrade|`cUpgrade``|noflags|0|0|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|upgradepickaxe1|||");
								p.CreatePacket(peer);
							}
							else if (level2pickaxe > 0 && level3pickaxe < 1)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Pickaxe``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6[LEVEL 3] Pink Pickaxe``|left|9536|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bREQUIREMENTS:``|left|10396|\n"
									"add_label_with_icon|small|`0- Level 2 Pickaxe``|left|13026|\n"
									"add_label_with_icon|small|`0- 3x Blue Gem Lock`|left|7188|\n"
									"add_label_with_icon|small|`0- Upgrade Box``|left|13726|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bFEAUTURES:``|left|10396|\n"
									"add_label_with_icon|small|`0- 4x Xp``|left|2322|\n"
									"add_label_with_icon|small|`0- 1 Hit``|left|2320|\n"
									"add_spacer|small|\n"
									"add_button|upgrade|`2Upgrade``|noflags|0|0|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|upgradepickaxe2|||");
								p.CreatePacket(peer);
							}
							else if (level1pickaxe == 0 && level2pickaxe == 0 && level3pickaxe == 0)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Pickaxe``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6You dont have level 1 Pickaxe``|left|4956|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|marketdigger|||");
								p.CreatePacket(peer);
							}
							else if (level3pickaxe >= 0)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Pickaxe``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6You have max Pickaxe``|left|9536|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|marketdigger|||");
								p.CreatePacket(peer);
							}
						}
						else if (cch.find("action|dialog_return\ndialog_name|upgrademenu\nbuttonClicked|rayman") != string::npos) {
							int level1pickaxe = 0; int level2pickaxe = 0; int level3pickaxe = 0;
							modify_inventory(peer, 9770, level1pickaxe); modify_inventory(peer, 9846, level2pickaxe);  modify_inventory(peer, 10362, level3pickaxe);

							if (level1pickaxe > 0 && level2pickaxe < 1 && level3pickaxe < 1)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Rayman``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6[LEVEL 2] Apocalypse Rayman``|left|9846|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bREQUIREMENTS:``|left|10396|\n"
									"add_label_with_icon|small|`0- Level 1 Rayman``|left|9770|\n"
									"add_label_with_icon|small|`0- 60,000,000``|left|9438|\n"
									"add_label_with_icon|small|`0- Upgrade Box``|left|13726|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bFEAUTURES:``|left|10396|\n"
									"add_label_with_icon|small|`0- 3x Place``|left|2310|\n"
									"add_label_with_icon|small|`0- 3x Break``|left|2318|\n"
									"add_spacer|small|\n"
									"add_button|upgrade|`cUpgrade``|noflags|0|0|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|upgraderayman1|||");
								p.CreatePacket(peer);
							}
							else if (level2pickaxe > 0 && level3pickaxe < 1)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Rayman``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6[LEVEL 3] Experience Rayman``|left|10362|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bREQUIREMENTS:``|left|10396|\n"
									"add_label_with_icon|small|`0- Level 2 Rayman``|left|9846|\n"
									"add_label_with_icon|small|`0- 3x Blue Gem Lock`|left|7188|\n"
									"add_label_with_icon|small|`0- Upgrade Box``|left|13726|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`bFEAUTURES:``|left|10396|\n"
									"add_label_with_icon|small|`0- 4x Place``|left|2322|\n"
									"add_label_with_icon|small|`0- 4x Break``|left|2320|\n"
									"add_spacer|small|\n"
									"add_button|upgrade|`2Upgrade``|noflags|0|0|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|upgraderayman2|||");
								p.CreatePacket(peer);
							}
							else if (level1pickaxe == 0 && level2pickaxe == 0 && level3pickaxe == 0)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Rayman``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6You dont have level 1 Rayman``|left|9770|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|marketdigger|||");
								p.CreatePacket(peer);
							}
							else if (level3pickaxe >= 0)
							{
								gamepacket_t p;
								p.Insert("OnDialogRequest");
								p.Insert("set_default_color|`o\nadd_label_with_icon|big|`bUpgrade Rayman``|left|10396|\n"
									"add_spacer|small|\n"
									"add_label_with_icon|small|`6You have max Rayman``|left|10362|\n"
									"add_spacer|small|\nadd_quick_exit|\nend_dialog|marketdigger|||");
								p.CreatePacket(peer);
							}
						}

						else if (cch.find("action|dialog_return\ndialog_name|upgraderayman1\nbuttonClicked|upgrade") != string::npos) {
							int canta = 1;
							int item1 = 0; int item2 = 0;  int item3 = 0;  int item4 = 0;
							modify_inventory(peer, 9770, item1); modify_inventory(peer, 13726, item2);

							if (item1 >= 1 && item2 >= 1 && pInfo(peer)->gems >= 60000000) {
								if (modify_inventory(peer, 9846, canta) == 0)
								{
									modify_inventory(peer, 9770, item3 -= 1);
									modify_inventory(peer, 13726, item4 -= 1);

									gamepacket_t ps;
									ps.Insert("OnSetBux");
									ps.Insert(pInfo(peer)->gems -= 60000000);
									ps.Insert(0);
									ps.CreatePacket(peer);

									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`2You successfully upgraded!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer);
								}
								else {
									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You don't have enough space in your inventory!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
								}
							}
							else {
								gamepacket_t p;
								p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You have enough material!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
							}
						}
						else if (cch.find("action|dialog_return\ndialog_name|upgraderayman2\nbuttonClicked|upgrade") != string::npos) {
							int canta = 1;
							int item1 = 0; int item2 = 0; int item3 = 0; int item4 = 0; int item5 = 0; int item6 = 0;
							modify_inventory(peer, 9846, item1); modify_inventory(peer, 7188, item2); modify_inventory(peer, 13726, item3);

							if (item1 >= 1 && item2 >= 1 && item3 >= 1) {
								if (modify_inventory(peer, 10362, canta) == 0)
								{
									modify_inventory(peer, 9846, item4 -= 1);
									modify_inventory(peer, 7188, item5 -= 3);
									modify_inventory(peer, 13726, item6 -= 1);

									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`2You successfully upgraded!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer);
								}
								else {
									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You don't have enough space in your inventory!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
								}
							}
							else {
								gamepacket_t p;
								p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You have enough material!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
							}
						}

						else if (cch.find("action|dialog_return\ndialog_name|upgradewing1\nbuttonClicked|upgrade") != string::npos) {
							int canta = 1;
							int item1 = 0; int item2 = 0;  int item3 = 0;  int item4 = 0;
							modify_inventory(peer, 9532, item1); modify_inventory(peer, 13726, item2);

							if (item1 >= 1 && item2 >= 1 && pInfo(peer)->gems >= 60000000) {
								if (modify_inventory(peer, 9806, canta) == 0)
								{
									modify_inventory(peer, 9532, item3 -= 1);
									modify_inventory(peer, 13726, item4 -= 1);

									gamepacket_t ps;
									ps.Insert("OnSetBux");
									ps.Insert(pInfo(peer)->gems -= 60000000);
									ps.Insert(0);
									ps.CreatePacket(peer);

									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`2You successfully upgraded!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer);
								}
								else {
									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You don't have enough space in your inventory!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
								}
							}
							else {
								gamepacket_t p;
								p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You have enough material!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
							}
						}
						else if (cch.find("action|dialog_return\ndialog_name|upgradewing2\nbuttonClicked|upgrade") != string::npos) {
							int canta = 1;
							int item1 = 0; int item2 = 0; int item3 = 0; int item4 = 0; int item5 = 0; int item6 = 0;
							modify_inventory(peer, 9806, item1); modify_inventory(peer, 7188, item2); modify_inventory(peer, 13726, item3);

							if (item1 >= 1 && item2 >= 1 && item3 >= 1) {
								if (modify_inventory(peer, 9876, canta) == 0)
								{
									modify_inventory(peer, 9806, item4 -= 1);
									modify_inventory(peer, 7188, item5 -= 3);
									modify_inventory(peer, 13726, item6 -= 1);

									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`2You successfully upgraded!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer);
								}
								else {
									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You don't have enough space in your inventory!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
								}
							}
							else {
								gamepacket_t p;
								p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You have enough material!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
							}
						}

						else if (cch.find("action|dialog_return\ndialog_name|upgradepickaxe1\nbuttonClicked|upgrade") != string::npos) {
							int canta = 1;
							int item1 = 0; int item2 = 0;  int item3 = 0;  int item4 = 0;
							modify_inventory(peer, 4956, item1); modify_inventory(peer, 13726, item2);

							if (item1 >= 1 && item2 >= 1 && pInfo(peer)->gems >= 60000000) {
								if (modify_inventory(peer, 13026, canta) == 0)
								{
									modify_inventory(peer, 4956, item3 -= 1);
									modify_inventory(peer, 13726, item4 -= 1);

									gamepacket_t ps;
									ps.Insert("OnSetBux");
									ps.Insert(pInfo(peer)->gems -= 60000000);
									ps.Insert(0);
									ps.CreatePacket(peer);

									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`2You successfully upgraded!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer);
								}
								else {
									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You don't have enough space in your inventory!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
								}
							}
							else {
								gamepacket_t p;
								p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You have enough material!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
							}
						}
						else if (cch.find("action|dialog_return\ndialog_name|upgradepickaxe2\nbuttonClicked|upgrade") != string::npos) {
							int canta = 1;
							int item1 = 0; int item2 = 0; int item3 = 0; int item4 = 0; int item5 = 0; int item6 = 0;
							modify_inventory(peer, 13026, item1); modify_inventory(peer, 7188, item2); modify_inventory(peer, 13726, item3);

							if (item1 >= 1 && item2 >= 1 && item3 >= 1) {
								if (modify_inventory(peer, 9536, canta) == 0)
								{
									modify_inventory(peer, 13026, item4 -= 1);
									modify_inventory(peer, 7188, item5 -= 3);
									modify_inventory(peer, 13726, item6 -= 1);

									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`2You successfully upgraded!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer);
								}
								else {
									gamepacket_t p;
									p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You don't have enough space in your inventory!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
								}
							}
							else {
								gamepacket_t p;
								p.Insert("OnTalkBubble"), p.Insert(pInfo(peer)->netID), p.Insert("`4You have enough material!"), p.Insert(0), p.Insert(0), p.CreatePacket(peer); break;
							}
						}