I don't think you can do it in that sense, I think one will always be able to take the item into the wild, one thing you might be able to do is removing the stats the item gives in wild?
|
I was wondering if there is a way to ban items from the wild say your wearing a torva platebody then you try to walk in the wild you get teleported back to the beginning of the wild.
Like where you cross from normal land then you walk into pvp. * that's what i mean the beginning of the wild *
You can put this in your walking method so when your player tries walking it will teleport them to wherever. Obviously not your method names but should give you an idea of what to do! Good luck with the project
Code:if(player.isWearingItem == TorvaID && playerIsInWild == true) {//checks if you are wearing torva and if you are in the wild sendMessage("You cannot wear this item in the wild"); teleportPlayerBackToStart();//teleports you home return false;//returns false so that your player cannot move }
it is checking if the player is wearing it. And I agree it is a bad idea especially for those who pk in the deep wild. But it is what he is asking for.
"I was wondering if there is a way to ban items from the wild say your wearing a torva platebody then you try to walk in the wild you get teleported back to the beginning of the wild."
And it is just a base so hopefully he will modify it so that it can actually be used on a live serverCode:if(player.isWearingItem == TorvaID && playerIsInWild == true) {//checks if you are wearing torva and if you are in the wild sendMessage("You cannot wear this item in the wild"); teleportPlayerBackToStart();//teleports you home return false;//returns false so that your player cannot move }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |