First off, I am Jeff from R-S. I did not 'leech' these. I am simply sharing with you guys since I am back now. I wrote these myself, no tutorials were involved.
Alright, well I thought this could be useful.
I know this has been posted before, but not for BattleScape.
What this does:
-Administrators cannot drop items
-Administrators can duel, but they cannot stake
-Administrators cannot trade with other players
-Administrators don't lose items upon death.
I did it this way so your players can still fight with admins in mini-games, or fun fights in the wilderness.
Difficulty - 0/1
Assumed knowledge - Copy and paste
Classes modified - Just your client class.
Alright, first we will disable item dropping.
in your client class search for:
Now under your ints, add this:
What this does is it checks the players rights. If it is equal to or greater than 2, it won't complete the dropping of an item action.
Alright, next we will disable trading.
search for:
Now under this:
Add this:
This will completely disable trading for administrators. However it will give admins the ability to trade other admins.
Alright, next we will disable the ability for administrators to lose items upon death.
search for:
In that void, add this:
Alright, next we will remove their abilities to stake items in a duel.
Search for:
Right under that boolean add this:
That will disable administrators ability to stake.
Save compile, and bam. Your economy is safe from reckless administrators.
Alright, well I thought this could be useful.
I know this has been posted before, but not for BattleScape.
What this does:
-Administrators cannot drop items
-Administrators can duel, but they cannot stake
-Administrators cannot trade with other players
-Administrators don't lose items upon death.
I did it this way so your players can still fight with admins in mini-games, or fun fights in the wilderness.
Difficulty - 0/1
Assumed knowledge - Copy and paste
Classes modified - Just your client class.
Alright, first we will disable item dropping.
in your client class search for:
Code: [Select]
public void DropItem()Now under your ints, add this:
Code: [Select]
if (playerRights >= 2) {
sendMessage("Administrators aren't able to drop items.");
return;
}What this does is it checks the players rights. If it is equal to or greater than 2, it won't complete the dropping of an item action.
Alright, next we will disable trading.
search for:
Code: [Select]
case 153:Now under this:
Code: [Select]
//TradePlayer
TradingWith = misc.HexToInt(inStream.buffer, 0, packetSize) / 1000;
p = Server.s.playerHandler.clients[TradingWith];
TurnPlayerTo(32768 + TradingWith);Add this:
Code: [Select]
if (playerRights > 1 && p.playerRights < 2 || playerRights < 2 && p.playerRights > 1) {
sendMessage("Administrators cannot trade other players.");
return;
}This will completely disable trading for administrators. However it will give admins the ability to trade other admins.
Alright, next we will disable the ability for administrators to lose items upon death.
search for:
Code: [Select]
public void ApplyDead()In that void, add this:
Code: [Select]
if (playerRights >= 2) {
resetDamage();
deadTele();
IsDead = false;
killMyNPCs();
resetDuel();
resetEmotes();
resetKeepItem();
resetOtherAtk();
setSkillLevel(i);
updateHp(getLevelForXP(playerXP[3]), true);
knightWavesGame = 0;
playerUpdate();
specialAmount = 100;
sendMessage("Since you're an administrator, you do not lose items");
return;
}Alright, next we will remove their abilities to stake items in a duel.
Search for:
Code: [Select]
public boolean stakeItem(int itemId, int itemSlot, int itemAmount)Right under that boolean add this:
Code: [Select]
if (playerRights >= 2) {
sendMessage("Administators aren't aloud to stake in a duel");
return true;
}That will disable administrators ability to stake.
Save compile, and bam. Your economy is safe from reckless administrators.

















comments (0)
Post a Comment