don't have a client that loads higher then 2006 revision items?
|
How do i make something where you have to use only oldschool pking gear like only 2006 items.
don't have a client that loads higher then 2006 revision items?
if(itemID > 12340)
{
c.sendMessage("You're currently carrying/wielding an item not allowed in this pvp zone."
return false;
}
It's just a basic idea for what you could do. Add an exception as such within the coordinates of the oldschool pvp zone in order to not allow higher revision items in it. "12340" being whatever the highest itemID of items you would allow in the zone.
Code:if (playerCommand.startsWith("safepk")) { c.getPA().startTeleport(coords, coords, 0, "modern"); c.sendMessage("Welcome to Safepk!!"); } if(itemID >*12340){ if(c.inPvP) { c.sendMessage("You're currently carrying/wielding an item not allowed in this pvp zone."): return false;
Something a long them lines.
so all u did was add a teleport command to the code he pasted....
Lol, in Walking.java
Lets say in Player.java you have something like
You can just do something likeCode:public boolean inOldSchool() { return(jank); }
Code:if (c.inOldSchool()) { if (!c.isSuited()) { c.getPA().movePlayer(safeZoneX,safeZoneY,0); c.sendMessage("You need to remove all your items that aren't before the 2006 era to enter this area!"); } }Code:public boolean isSuited() { for (int i=0;i<11;i++) { if (c.playerEquipment[i] > 10000) return false; } for (int x=10000; x<21000; x++) { //HORRIBLE way to do this, sorry :L if (c.getItems().playerHasItem(x)) return false; } return true; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |