use the CODE format please how to do [ CODE] <-- No Space And Ending the statement [ /CODE] < NO SPACE
|
Hey, i am trying to customize my "jail" command a bit. i'm trying to make it so you have to earn 1m in jail to be set free so i decided to make it that you need 1m to go through a magic portal. but the code ain't working....
Heres My code :
if(objectID == 2156 && absX == 2935 && absY == 3279) && HasItemAmount(995, 1000000)){
triggerTele(3099, 3503, 0);
deleteItem(995, 1000000);
sM("You are free to go.");
}
Heres my error :
client.java:7276: illegal start of expression
if(objectID == 2156 && absX == 2935 && absY == 3279) && HasItemAmount(995, 1000000)){
^
client.java:7276: ';' expected
if(objectID == 2156 && absX == 2935 && absY == 3279) && HasItemAmount(995, 1000000)){
^
2 errors
If someone could Edited my code to make it work I woulld be very happy!
rep++
try that, i think it worksif(objectID == 2156 && !isInJail()){
if(playerHasItem(995, 1000000)){
triggerTele(3099, 3503, 0);
deleteItem(995, 1000000);
sM("You are free to go.");
}
Isn't there some code about this in delta? Requires you to have 250 silver or some bull shit?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |