Don't understand? So example your trading someone and you did like ::train and you're still in trade?
|
okay, can someone tell me how to make it so , if you tele somewhere so it's not let you trade with someone?
I mean both command tele and spellbook tele ;c
Don't understand? So example your trading someone and you did like ::train and you're still in trade?
Try this?
Player.java make sure you got this
tradeandduel.java and find:Code:public boolean inTrade;
after you find it, AddCode:public void openTrade() {
if you dont already have it there,Code:c.inTrade = true;
then go to playerassistant.java and find:
afteryou found it, add this under it:Code:public void startTeleport(int x, int y, int height, String teleportType) {
goodluckCode:if (c.inTrade) { c.sendMessage("Please finish the trade first."); return; }
hm..distance check?
(estimated guess, but if you're talking about being in the trade screen, and the player does something like ::home/::train you just add if(c.inTrade) { c.sendMessage("Finish the trade.."); return; }.)
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |