Thread: [DSPK/PI] Whats this do? Regarding PvP store...

Results 1 to 2 of 2
  1. #1 [DSPK/PI] Whats this do? Regarding PvP store... 
    Registered Member
    Join Date
    Jan 2011
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Nevermind im a dumbass.
     

  2. #2  
    Registered Member
    Join Date
    Feb 2008
    Posts
    400
    Thanks given
    10
    Thanks received
    11
    Rep Power
    26
    Code:
    		if (c.myShopId == 21) {
                c.sendMessage(c.getItems().getItemName(removeId)+": currently costs " + getSpecialItemValue(removeId) + " PVP points.");
    			return;
            }
    looks like it's giving you the cost of the item in shop.

    Code:
    		if (ShopValue >= 1000 && ShopValue < 1000000) {
    			ShopAdd = " (" + (ShopValue / 1000) + "K)";
    		} else if (ShopValue >= 1000000) {
    			ShopAdd = " (" + (ShopValue / 1000000) + " million)";
    		}
    		c.sendMessage(c.getItems().getItemName(removeId)+": currently costs "+ShopValue+" coins"+ShopAdd);
    	}
    If the value in the shop greater then 1k and les then 1M the shop add's the shop value and divides it by 1000 else if the shop value is greater than or equal to 1m the shop will add the value and divide it by 1M, giving you the current cost of that item.

    I think.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 04:09 AM
  2. [dspk]anti-cheat[dspk]
    By flame_blade00 in forum Help
    Replies: 0
    Last Post: 02-03-2011, 03:38 AM
  3. [DSPK] Webclient 8/10 people[DSPK]
    By blood eater in forum Help
    Replies: 3
    Last Post: 01-29-2011, 08:55 PM
  4. Replies: 10
    Last Post: 01-16-2011, 12:26 AM
  5. [ DSPK ] Adding Items [ / DSPK ]
    By Project- in forum Help
    Replies: 9
    Last Post: 01-14-2011, 02:43 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •