Never used Emulous, ever. But, try something like:
if (hasItem(588))
{
isInWildy = false;
}
|
hi comunity
i want to make it that the orbs of protection make it so that u cant be atacked and cant atack in wildy would tha be possible??
what im thinking about is make: (im bad so please make my code so it works)
i would put tha in process so it checks ea 500ms or so (thats what iv heard) so that if he takes it off it doesent bug....Code:ifplayer in inventory (588); { public int (wateve it is) wildy = false }
now i was thinking (dono if this would be to hard):
if hes in wildy and has it in his inventory (but drops it) he gets teleported to the edge of wildy...
and:
thank you for your time with a learning noob =]Code:if in wild = true{ (dono how to do this part lol) }
luvgirl
p.s. i would be happy with a link to the right tutorial where i could learn how to do some of this.... and rep for evry1 who trys to help.
sry lol im a noob but its all packaged if it werent i would put in client.java but i dono where to put lol
edit: tryed in client.java got this error:
Code:.\server\players\Client.java:564: cannot find symbol symbol : method hasItem(int) location: class server.players.Client if (hasItem(588)) ^ .\server\players\Client.java:566: cannot find symbol symbol : variable isInWildy location: class server.players.Client isInWildy = false; ^
---------- Post added at 09:51 AM ---------- Previous post was at 09:39 AM ----------
this might helpfrom players.java)
Code:public boolean inWild() { if(absX > 2941 && absX < 3392 && absY > 3518 && absY < 3966) { return true; } return false; }
pm me and ill help you!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |