SHARE
TWEET

Untitled

a guest May 25th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   public static void SelectMenuResponse(Client player, String callbackId, int selectedIndex, String objectName, String valueList)
  2.     {
  3.         if (callbackId == "FISH_SELL")
  4.         {
  5.             string item_name = player.GetData("ListTrack_" + selectedIndex);
  6.  
  7.             if (Inventory.GetPlayerItemFromInventory(player, Inventory.Item_Name_To_Type(item_name)) < 1)
  8.             {
  9.                 Main.SendErrorMessage(player, "Ich habe diese Menge nicht.");
  10.                 return;
  11.             }
  12.  
  13.             int index = Inventory.GetInventoryIndexFromName(player, item_name);
  14.  
  15.             foreach (var fishes in fishes)
  16.             {
  17.                 if (fishes.name == item_name)
  18.                 {
  19.                     int price = fishes.price;
  20.                     Main.GivePlayerMoney(player, price);
  21.  
  22.                    // player.TriggerEvent("createNewHeadNotificationAdvanced", "Sie haben verkauft~y~" + fishes.name + " ~o~(" + fishes.rarity + ")~w~ für ~g~$" + price + "~w~.");
  23.                     NAPI.Notification.SendNotificationToPlayer(player, "Sie haben verkauft~y~" + fishes.name + " ~o~(" + fishes.rarity + ")~w~ für ~g~$" + price + "~w~.");
  24.  
  25.                     Inventory.RemoveItem(player, item_name, 1);
  26.                     CMD_venderpeixe(player);
  27.                 }
  28.             }
  29.         }
  30.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top