Examples of buyItem()


Examples of org.pokenet.server.backend.entity.PlayerChar.buyItem()

          switch(message.charAt(1)) {
          case 'b':
            //Buy items. Sent as SbITEMID,QUANTITY
            item = Integer.parseInt(message.substring(2, message.indexOf(',')));
            //int q = Integer.parseInt(message.substring(message.indexOf(',') + 1));
            p.buyItem(item, 1);
            break;
          case 's':
            //Sell items. Sent as SsITEMID,QUANTITY
            item = Integer.parseInt(message.substring(2, message.indexOf(',')));
            //int q = Integer.parseInt(message.substring(message.indexOf(',') + 1));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.