Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
6.3 kB
1
Indexable
Never
string gemsshop = "\nadd_banner|interface/large/titles.rttex|0|2|\nadd_button|novablast|`oNova Blast``|interface/large/blasts.rttex|`2You Get:`` 1 Nova Blast. <CR><CR>`5Description:`` Create a `cNova World`` with this blast, what ever you break is `2giving gems`` in `cNova World!|0|0|25000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|springblast|`oSpring Blast``|interface/large/blasts.rttex|`2You Get:`` 1 Spring Blast. <CR><CR>`5Description:`` Create a `9Spring World`` with this blast, what ever you break is `2giving more gems`w in `9Spring World!|0|1|100000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|satanblast|`oSatan Blast``|interface/large/blasts.rttex|`2You Get:`` 1 Satan Blast. <CR><CR>`5Description:`` Create a `4Satan World`` with this blast, what ever you break is `2giving super more gems`w in `4Satan World! |0|2|250000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_banner|interface/large/titles.rttex|0|1|\nadd_button|dl|`oDiamond Lock``|interface/large/locks.rttex|`2You Get:`` 1 Diamond Lock. <CR><CR>`5Description:`` A beautiful shiny thing to lock your world!|0|3|100000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|5dl|`o5 Diamond Lock``|interface/large/locks.rttex|`2You Get:`` 5 Diamond Lock. <CR><CR>`5Description:`` A beautiful shiny thing to lock your world!|0|4|500000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|10dl|`o10 Diamond Lock``|interface/large/locks.rttex|`2You Get:`` 10 Diamond Lock. <CR><CR>`5Description:`` A beautiful shiny thing to lock your world!|0|5|1000000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|bgl|`oBlue Gem Lock``|interface/large/locks.rttex|`2You Get:`` 1 Blue Gem Lock. <CR><CR>`5Description:`` An amazing thing to lock your world!|0|0|10000000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|5bgl|`o5 Blue Gem Lock``|interface/large/locks.rttex|`2You Get:`` 5 Blue Gem Lock. <CR><CR>`5Description:`` An amazing thing to lock your world!|0|1|50000000|500000000|||-1|-1||-1|-1||1||||||0|0|\nadd_button|10bgl|`o10 Blue Gem Lock``|interface/large/locks.rttex|`2You Get:`` 10 Blue Gem Lock. <CR><CR>`5Description:`` An amazing thing to lock your world!|0|2|100000000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_banner|interface/large/titles.rttex|0|3|\nadd_button|mis|`oMagic Infused Stone``|interface/large/gachas.rttex|`2You Get:`` 1 Magic Infused Stone. <CR><CR>`5Description:`` You can get random cool items with breaking this block!|0|0|500000|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|valentine_goodies|`oValentine Goodies``|interface/large/store_buttons/store_buttons2.rttex|`2You Get:`` 1 Valentine Goodies. <CR><CR>`5Description:`` Its time to get all of the valentine items. So buy it now! |0|4|7500|0|||-1|-1||-1|-1||1||||||0|0|\nadd_button|pmo|`oPure Magic Ore``|interface/large/gachas.rttex|`2You Get:`` 1 Pure Magic Ore. <CR><CR>`5Description:`` You can get random more cool items with breaking this exclusive block!|0|2|1000000|0|||-1|-1||-1|-1||1||||||0|0|";
	


else if (t_ == 9718 || t_ == 9928 || t_ == 9720 || t_ == 13202 || t_ == 9162) {
				int id = items[t_].id, seedid = id += 1, idd = 0, randoran = 0, seedoran = 0, chances = rand() % 1000 + 1, chances2 = rand() % 100 + 1, chances3 = rand() % 100 + 1;
				int bune = server_uptime - pInfo(peer)->last_uptime;
				if (t_ == 9718) randoran = 500, seedoran = 10, add_peer_xp(peer, 10);
				if (t_ == 9162) randoran = 200, seedoran = 10, add_peer_xp(peer, 5);
				if (t_ == 9720) randoran = 1000, seedoran = 15, add_peer_xp(peer, 20);
				if (t_ == 13202) randoran = 700, seedoran = 15, add_peer_xp(peer, 15);
				if (t_ == 9928) randoran = 2000, seedoran = 20, add_peer_xp(peer, 25);
				if (bune >= 45 && pInfo(peer)->x / 32 == pInfo(peer)->lastx && pInfo(peer)->y / 32 == pInfo(peer)->lasty) {
					ServerLog("System detected " + pInfo(peer)->tankIDName + " while autofarming over 45 minutes");
					enet_peer_disconnect_later(peer, 0);
				}
				else {
					pInfo(peer)->lastx = pInfo(peer)->x / 32;
					pInfo(peer)->lasty = pInfo(peer)->y / 32;
					pInfo(peer)->last_uptime = server_uptime; //memleak: belki??
					s_log(peer, to_string(pInfo(peer)->lastx) + " " + to_string(pInfo(peer)->lasty) + " " + to_string(pInfo(peer)->last_uptime));
				}
				pInfo(peer)->bpoi++;
				modify_inventory(peer, pInfo(peer)->lastray, idd);
				if (idd >= 1 && pInfo(peer)->hand == pInfo(peer)->lastray) pInfo(peer)->raybreak++;
				if (chances2 < 10) {
					WorldDrop drop_seed_{};
					drop_seed_.id = t_, drop_seed_.count = 1, drop_seed_.uid = uint16_t(world_->drop.size()) + 1, drop_seed_.x = (x_ * 32) + rand() % 17, drop_seed_.y = (y_ * 32) + rand() % 17;
					if (not use_mag(world_, drop_seed_, x_, y_)) {
						dropas_(world_, drop_seed_);
					}
				}
				else if (chances3 < seedoran) {
					WorldDrop drop_seed_{};
					drop_seed_.id = t_ + 1, drop_seed_.count = 1, drop_seed_.uid = uint16_t(world_->drop.size()) + 1, drop_seed_.x = (x_ * 32) + rand() % 17, drop_seed_.y = (y_ * 32) + rand() % 17;
					if (not use_mag(world_, drop_seed_, x_, y_)) {
						dropas_(world_, drop_seed_);
					}
				}
				else if (chances == 77) {
					WorldDrop drop_seed_{};
					drop_seed_.id = 6922, drop_seed_.count = 1, drop_seed_.uid = uint16_t(world_->drop.size()) + 1, drop_seed_.x = (x_ * 32) + rand() % 17, drop_seed_.y = (y_ * 32) + rand() % 17;
					if (not use_mag(world_, drop_seed_, x_, y_)) {
						dropas_(world_, drop_seed_);
					}
				}
				else gems_(peer, world_, rand() % (randoran + 300), x_ * 32, y_ * 32, t_);
}


int drop_count = items[block_->fg - 1].rarity == 1 ? (items[block_->fg - 1].farmable ? (rand() % 9) + 4 : (rand() % block_->fruit) + 1) : items[block_->fg - 1].farmable ? (rand() % 5) + 4 : (rand() % block_->fruit) + 1;
if (block_->fg - 1 == 9718 or block_->fg - 1 == 9720 or block_->fg - 1 == 13202 or block_->fg - 1 == 9162) {
				drop_count = (rand() % 2) + 2;
}

	if (t_ == 9718 || t_ == 9720 || t_ == 13202 || t_ == 9162 || t_ == 9386 || t_ == 9380) punch_ = 4;
				

	else if (blast == 6422) {
		world_ = get_world("GENERATE_SPRING77");
		world_.d_weather = 67;
	}
	else if (blast == 6424) {
		world_ = get_world("GENERATE_NOVA77");
		world_.d_weather = 67;
	}
	else if (blast == 6666) {
		world_ = get_world("GENERATE_SATAN77");
		world_.d_weather = 62;
	}