in your item equip method add this.
Code:if(itemID == 1379 && !playerName.equalsIgnoreCase("Th3SiNz")) { sendMessage("You can't wield this item!"); return;
|
How do I restrict this item to only me on BattleScape?
Wouldn't it be something like
Item ID: 1379
Sorry about this, I just haven't coded in over two years and forget almost all. So if you can please help me.
This is all I remember......
Code:if (playerName.equalsIgnoreCase("Th3SiNz"))
in your item equip method add this.
Code:if(itemID == 1379 && !playerName.equalsIgnoreCase("Th3SiNz")) { sendMessage("You can't wield this item!"); return;
I am new to BattleScape source, I am use to 317s from two years ago. Now them I am famaliar with. I would put this shit under a boolean that would call itself every 500ms
I've been on Moparscape Servers for four years. Made one 3 years ago, after a year I left. Now I've come back.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |