Professional Documents
Culture Documents
Malascdrop
Malascdrop
int wl = 0;
wl += g_server->local_player.inventory.getItemCount(242);
wl += g_server->local_player.inventory.getItemCount(1796) * 100;
wl += g_server->local_player.inventory.getItemCount(7188) * 10000;
return wl;
}
dropwl = true;
g_server->send(false, "action|drop\n|itemID|242");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|242|\ncount|" + cdropcount); //242
gt::send_log("`9Dropping `c" + cdropcount + "`9 wls...");
}
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|7188|\ncount|" + std::to_string(sayi1)); //242
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string(kalan)); //242
dropwl = true;
g_server->send(false, "action|drop\n|itemID|242");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|242|\ncount|" + std::to_string(kalan2)); //242
}
else if (item_count(1796) < sayi1) {
gameupdatepacket_t drop{ 0 };
drop.m_type = PACKET_ITEM_ACTIVATE_REQUEST;
drop.m_int_data = 242;
g_server->send(false, NET_MESSAGE_GAME_PACKET,
(uint8_t*)&drop, sizeof(gameupdatepacket_t));
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string(sayi1)); //242
dropwl = true;
g_server->send(false, "action|drop\n|itemID|242");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|242|\ncount|" + std::to_string(kalan)); //242
dropwl = true;
g_server->send(false, "action|drop\n|itemID|242");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|242|\ncount|" + cdropcount); //242
gt::send_log("`9Dropping `c" + cdropcount + "`9 wls...");
}
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|7188|\ncount|" + std::to_string(sayi1)); //242
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string(kalan)); //242
dropwl = true;
g_server->send(false, "action|drop\n|itemID|242");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|242|\ncount|" + std::to_string(kalan2)); //242
}
else if (item_count(1796) < sayi1) {
gameupdatepacket_t drop{ 0 };
drop.m_type = PACKET_ITEM_ACTIVATE_REQUEST;
drop.m_int_data = 242;
g_server->send(false, NET_MESSAGE_GAME_PACKET,
(uint8_t*)&drop, sizeof(gameupdatepacket_t));
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string(sayi1)); //242
dropwl = true;
g_server->send(false, "action|drop\n|itemID|242");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|242|\ncount|" + std::to_string(kalan)); //242
}
std::string cdropcount = chat.substr(7);
if (balance() < (stoi(cdropcount) * 100)) {
gt::send_log("`9Dont have enough `#balance`9.");
return true;
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|7188|\ncount|" + std::to_string((dlcount / 100))); //242
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string((dlcount % 100))); //1796
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|7188|\ncount|" + std::to_string((dlcount / 100))); //242
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string((dlcount % 100))); //1796
}
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|drop_item\
nitemID|1796|\ncount|" + cdropcount); //1796
gt::send_log("`9Dropping `c" + cdropcount + "`9 Dl...");
}
catch (std::exception) { gt::send_log("Critical Error : Invalid String
Position"); }
return true;
}
else if (find_command(chat, "dd ")) {
try {
if (item_count(1796) == 0) {
return true;
}
std::string cdropcount = chat.substr(4);
if (balance() < (stoi(cdropcount) * 100)) {
gt::send_log("`9Dont have enough `#balance`9.");
return true;
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|7188|\ncount|" + std::to_string((dlcount / 100))); //242
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string((dlcount % 100))); //1796
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|7188|\ncount|" + std::to_string((dlcount / 100))); //242
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|
drop_item\nitemID|1796|\ncount|" + std::to_string((dlcount % 100))); //1796
}
dropdl = true;
g_server->send(false, "action|drop\n|itemID|1796");
std::this_thread::sleep_for(std::chrono::milliseconds(300));
g_server->send(false, "action|dialog_return\ndialog_name|drop_item\
nitemID|1796|\ncount|" + cdropcount); //1796
gt::send_log("`9Dropping `c" + cdropcount + "`9 Dl...");
}
catch (std::exception) { gt::send_log("Critical Error : Invalid String
Position"); }
return true;
}