Advertisement
Guest User

grzn kaina err

a guest
Feb 19th, 2021
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 36.25 KB | None | 0 0
  1. try {
  2.                                 ItemDefinition itemDef = getItemDef(id);
  3.                                 if (getItemDef(id).blockType == BlockTypes::FOREGROUND || getItemDef(id).blockType == BlockTypes::BACKGROUND || getItemDef(id).blockType == BlockTypes::GROUND_BLOCK)
  4.                                 {
  5.                                     bool success = false;
  6.                                     SaveShopsItem(id, 200, peer, success, "free from shop");
  7.                                     if (success) Player::OnConsoleMessage(peer, "`@You got `$200 `@" + getItemDef(id).name);
  8.                                 }
  9.                                 else if (getItemDef(id).rarity == 999 && getItemDef(id).name.find("Golden") != string::npos)
  10.                                 {
  11.                                     int kaina = 9000;
  12.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is Very Rare`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  13.                                 }
  14.                                 else if (getItemDef(id).rarity == 999 && getItemDef(id).name.find("Phoenix") != string::npos)
  15.                                 {
  16.                                     int kaina = 5000;
  17.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is Very Rare`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  18.                                 }
  19.                                 else if (getItemDef(id).rarity == 999 && getItemDef(id).name.find("Nightmare") != string::npos)
  20.                                 {
  21.                                     int kaina = 4000;
  22.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is Very Rare`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  23.                                 }
  24.                                 else if (getItemDef(id).name.find("Subscription") != string::npos || id == 6260)
  25.                                 {
  26.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5Sorry, but this item is only available for premium subscribers`5!|\nadd_textbox|`5Subscriptions gives you many benefits including increased daily gems, new titles, and many other. They can be only obtained from `cWebsite Store`5, or `cIlluminati Stones`5`5!|\nadd_spacer|small|\nend_dialog|buyitembyrarity|`wCancel||");
  27.                                 }
  28.                                 else if (id == 9644)
  29.                                 {
  30.                                     int kaina = 25000;
  31.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5By consuming this item you will receive 5x of all surgery tools and a Surg-E`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$Gems|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  32.                                 }
  33.                                 else if (id == 2204)
  34.                                 {
  35.                                     int kaina = 60000;
  36.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to hunt for geiger stuff! Find the crystals and a lot of more to explore`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$Gems|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  37.                                 }
  38.                                 else if (itemDef.properties & Property_Untradable)
  39.                                 {
  40.                                     int kaina = 3000;
  41.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is Rare`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  42.                                 }
  43.                                 else if (getItemDef(id).blockType == BlockTypes::CLOTHING)
  44.                                 {
  45.                                     int kaina;
  46.                                     ifstream infile("pricedata.txt");
  47.                                     for (string line; getline(infile, line);)
  48.                                     {
  49.                                         if (line.length() > 3 && line[0] != '/' && line[1] != '/')
  50.                                         {
  51.                                             auto ex = explode("|", line);
  52.                                             if (ex[0] == to_string(id))
  53.                                             {
  54.                                                 kaina = atoi(ex[1].c_str());
  55.                                                 break;
  56.                                             }
  57.                                         }
  58.                                     }
  59.                                     /*if (kaina == 0) continue;*/ //second kaina fix?
  60.                                     if (kaina == 0) kaina = 10;
  61.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  62.                                 }
  63.                                 else if (id == 1662)
  64.                                 {
  65.                                     int kaina = 30;
  66.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to walk on spikes for 3 seconds`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  67.                                 }
  68.                                 else if (id == 1452)
  69.                                 {
  70.                                     int kaina = 10;
  71.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you and other players to place something into it`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  72.                                 }
  73.                                 else if (id == 1240)
  74.                                 {
  75.                                     int kaina = 10;
  76.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you and other players to place something into it`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  77.                                 }
  78.                                 else if (id == 8878)
  79.                                 {
  80.                                     int kaina = 80;
  81.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to store any kind of items in it, also ability to protect it with password`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  82.                                 }
  83.                                 /*Mails*/
  84.                                 else if (id == 1006)
  85.                                 {
  86.                                     int kaina = 15;
  87.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows players to leave message for the owners`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  88.                                 }
  89.                                 else if (id == 656)
  90.                                 {
  91.                                     int kaina = 15;
  92.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows players to leave message for the owners`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  93.                                 }
  94.                                 /*Storage*/
  95.                                 else if (id == 6286)
  96.                                 {
  97.                                     int kaina = 20;
  98.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to store any kind of items in it, has 20 capacity`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  99.                                 }
  100.                                 else if (id == 6288)
  101.                                 {
  102.                                     int kaina = 50;
  103.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to store any kind of items in it, has 40 capacity`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  104.                                 }
  105.                                 else if (id == 6290)
  106.                                 {
  107.                                 int kaina = 120;
  108.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to store any kind of items in it, has 90 capacity`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  109.                                 }
  110.                                 /*Fishing Things*/
  111.                                 else if (id == 2912)
  112.                                 {
  113.                                 int kaina = 10;
  114.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This rod allows you to fish, able to catch small fishes`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  115.                                 }
  116.                                 else if (id == 3010)
  117.                                 {
  118.                                 int kaina = 120;
  119.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This rod allows you to fish, able to catch medium fishes and low rarity gear`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  120.                                 }
  121.                                 else if (id == 3040)
  122.                                 {
  123.                                 int kaina = 690;
  124.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This rod allows you to fish, able to catch big fishes and medium rarity gear`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  125.                                 }
  126.                                 else if (id == 3100)
  127.                                 {
  128.                                 int kaina = 3200;
  129.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This rod allows you to fish, able to catch huge fishes and high rarity gear`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  130.                                 }
  131.                                 else if (id == 5740)
  132.                                 {
  133.                                 int kaina = 9600;
  134.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This thing is so magical...`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  135.                                 }
  136.                                 /*Baits*/
  137.                                 else if (id == 2914)
  138.                                 {
  139.                                 int kaina = 1;
  140.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5Simple regular worm bait for small fishes`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `45`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  141.                                 }
  142.                                 else if (id == 3098)
  143.                                 {
  144.                                 int kaina = 5;
  145.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This bait gives you faster strike time and bigger luck`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  146.                                 }
  147.                                 else if (id == 3218)
  148.                                 {
  149.                                 int kaina = 8;
  150.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5Its so sticky that probably stuff will stick to it`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  151.                                 }
  152.                                 else if (id == 3432)
  153.                                 {
  154.                                 int kaina = 90;
  155.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5Ever dreamed of becoming a champion of fishing? Try your luck, able to catch high tier gear`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  156.                                 }
  157.                                 else if (id == 4246)
  158.                                 {
  159.                                 int kaina = 3;
  160.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5Bait for medium fishes`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  161.                                 }
  162.                                 else if (id == 4248)
  163.                                 {
  164.                                 int kaina = 3;
  165.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5Bait for medium fishes`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  166.                                 }
  167.                                 else if (id == 5528)
  168.                                 {
  169.                                 int kaina = 15;
  170.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5Woah, this bait is large it must catch something greater`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  171.                                 }
  172.                                 /*End*/
  173.                                 else if (id == 6924)
  174.                                 {
  175.                                 int kaina = 60;
  176.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item gives you triple place ability for all farmable blocks 5 minutes when consumed`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  177.                                 }
  178.                                 else if (id == 6918)
  179.                                 {
  180.                                 int kaina = 80;
  181.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item gives you 1 HIT ability for all farmable blocks 5 minutes when consumed`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  182.                                 }
  183.                                 else if (id == 6840)
  184.                                 {
  185.                                 int kaina = 1200;
  186.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item gives you 30% chance to obtain extra blocks when harvesting trees`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  187.                                 }
  188.                                 else if (id == 1436)
  189.                                 {
  190.                                 int kaina = 5;
  191.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to prevent moderators abuse by logging every action into this camera`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  192.                                 }
  193.                                 else if (id == 2978)
  194.                                 {
  195.                                 int kaina = 5;
  196.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is used to sell your stuff directly for world locks, works totally like in real growtopia with full visuals`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  197.                                 }
  198.                                 else if (id == 898)
  199.                                 {
  200.                                 int kaina = 60;
  201.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to harvest trees`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  202.                                 }
  203.                                 else if (id == 1966)
  204.                                 {
  205.                                 int kaina = 800;
  206.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to harvest trees, with a chance to get bonus drop`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  207.                                 }
  208.                                 else if (id == 5022)
  209.                                 {
  210.                                 int kaina = 350;
  211.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to plant trees`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  212.                                 }
  213.                                 else if (id == 528)
  214.                                 {
  215.                                 int kaina = 25;
  216.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item gives you extra gem drop for 30 minutes when consumed`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  217.                                 }
  218.                                 else if (id == 5638)
  219.                                 {
  220.                                 int kaina = 3500;
  221.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item can collect any blocks, capacity 5000 and remote included`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  222.                                 }
  223.                                 else if (id == 6946)
  224.                                 {
  225.                                 int kaina = 900;
  226.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item can collect any seeds, capacity 1500`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  227.                                 }
  228.                                 else if (id == 6948)
  229.                                 {
  230.                                 int kaina = 300;
  231.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item can collect any foreground or background, capacity 1500`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  232.                                 }
  233.                                 else if (id == 10012)
  234.                                 {
  235.                                 int kaina = 1800;
  236.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is made by Shirogane`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  237.                                 }
  238.                                 else if (id == 10016)
  239.                                 {
  240.                                 int kaina = 3500;
  241.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is made by Fads`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  242.                                 }
  243.                                 else if (id == 10018)
  244.                                 {
  245.                                 int kaina = 1200;
  246.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is made by Shiina`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  247.                                 }
  248.                                 else if (getItemDef(id).clothType == ClothTypes::BACK && getItemDef(id).rarity == 999)
  249.                                 {
  250.                                 int kaina = 900;
  251.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  252.                                 }
  253.                                 else if (id == 10014)
  254.                                 {
  255.                                 int kaina = 1500;
  256.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item is made by Shiina`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  257.                                 }
  258.                                 else if (id == 2946)
  259.                                 {
  260.                                 int kaina = 5;
  261.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This block can store blocks and items in it`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  262.                                 }
  263.                                 else if (id == 1404)
  264.                                 {
  265.                                 int kaina = 15;
  266.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item allows you to move white door`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  267.                                 }
  268.                                 else if (id == 874)
  269.                                 {
  270.                                 int kaina = 3;
  271.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_textbox|`5This item can be used as ingredient for other items`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  272.                                 }
  273.                                 else if (getItemDef(id).rarity == 999)
  274.                                 {
  275.                                 int kaina = 600;
  276.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  277.                                 }
  278.                                 else
  279.                                 {
  280.                                 int kaina = round(static_cast<float>(getItemDef(id).rarity) / 10 * 5);
  281.                                     Player::OnDialogRequest(peer, "add_label_with_icon|big|`9Purchase `c" + getItemDef(id).name + " `9(`c" + to_string(getItemDef(id).rarity) + "`9)|left|" + to_string(id) + "|\nadd_spacer|small|\nadd_textbox|`5You are preparing to buy `c" + getItemDef(id).name + "`5!|\nadd_spacer|small||\nadd_textbox|`5This item cost `41`c/`4" + to_string(kaina) + " `$World Locks|\nadd_spacer|small||\nadd_textbox|`5How much you want to buy? |\nadd_text_input|buyitembyrarityid_" + to_string(id) + "|||7||\nend_dialog|buyitembyrarity|`wCancel|`^Purchase!|");
  282.                                 }
  283.                             }
  284.                             catch (...) {
  285.                                 // ...
  286.                             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement