PDA

View Full Version : Why won't this line work? 317



ibanezrg320
January 19th, 2011, 04:09
I'm running a 317, my friend says its Delta, but unfortunately I'm not 100% sure. But anyways I'm making a code so that the wise old man will give mods, admins, hidden admins, and owners a certain item, but reg players nothing. although as soon as i try and compile with this code in it pops up with 100 errors, literally :(. heres the code:


}
if(NPCID == 2253){
if(rights >= 4) {
talk3("+username!", "Here! Take these!", "I insist!", 2253);
addItem(8024, 1);
} else {
if(rights >=3) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
if(rights >=2) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
If(rights >=1) {
talk2("Hmm, +username. Here, take these.", "Keep up the good work!", 2253);
addItem(8024, 1);
} else {
if(rights >=0) {
talk3("Welcome to RuneEVO +username!", "If you become a mod or admin,", "come talk to me.", 2253);
}

I know the +username seems sketchy but i've tried it without that and it still has same error. Most of the errors that pop-up i notice are string errors.

Thank you to anyone who can give me a solution!

Dark Resurrection
January 19th, 2011, 16:23
100 error means often that you for got a }

maccas
January 19th, 2011, 21:29
FaIl, nah these pplz will help you.

Angelforce
January 19th, 2011, 22:04
replace this:

}
if(NPCID == 2253){
if(rights >= 4) {
talk3("+username!", "Here! Take these!", "I insist!", 2253);
addItem(8024, 1);
} else {
if(rights >=3) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
if(rights >=2) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
If(rights >=1) {
talk2("Hmm, +username. Here, take these.", "Keep up the good work!", 2253);
addItem(8024, 1);
} else {
if(rights >=0) {
talk3("Welcome to RuneEVO +username!", "If you become a mod or admin,", "come talk to me.", 2253);
}

with this:


}
if(NPCID == 2253){
if(rights >= 3) {
talk3("+username!", "Here! Take these!", "I insist!", 2253);
addItem(8024, 1);
} else {
if(rights >=3) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
if(rights >=2) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
If(rights >=1) {
talk2("Hmm, +username. Here, take these.", "Keep up the good work!", 2253);
addItem(8024, 1);
} else {
if(rights >=0) {
talk3("Welcome to RuneEVO +username!", "If you become a mod or admin,", "come talk to me.", 2253);
}

ibanezrg320
January 20th, 2011, 00:55
replace this:

}
if(NPCID == 2253){
if(rights >= 4) {
talk3("+username!", "Here! Take these!", "I insist!", 2253);
addItem(8024, 1);
} else {
if(rights >=3) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
if(rights >=2) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
If(rights >=1) {
talk2("Hmm, +username. Here, take these.", "Keep up the good work!", 2253);
addItem(8024, 1);
} else {
if(rights >=0) {
talk3("Welcome to RuneEVO +username!", "If you become a mod or admin,", "come talk to me.", 2253);
}

with this:


}
if(NPCID == 2253){
if(rights >= 3) {
talk3("+username!", "Here! Take these!", "I insist!", 2253);
addItem(8024, 1);
} else {
if(rights >=3) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
if(rights >=2) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
If(rights >=1) {
talk2("Hmm, +username. Here, take these.", "Keep up the good work!", 2253);
addItem(8024, 1);
} else {
if(rights >=0) {
talk3("Welcome to RuneEVO +username!", "If you become a mod or admin,", "come talk to me.", 2253);
}

Thanks for responding, but unfortunately it didnt work, I can't figure out why. I found out my source IS delta. But this is the error i get in command prompt:


^
client.java:18105: illegal start of expression
} public String passHash(String password) {
^
client.java:18105: ';' expected
} public String passHash(String password) {
^
client.java:18105: ';' expected
} public String passHash(String password) {
^
client.java:18111: illegal start of expression
public boolean pickUpItem(int item, int amount) {
^
client.java:18111: ';' expected
public boolean pickUpItem(int item, int amount) {
^
client.java:18111: <identifier> expected
public boolean pickUpItem(int item, int amount) {
^
client.java:18111: not a statement
public boolean pickUpItem(int item, int amount) {
^
client.java:18111: ';' expected
public boolean pickUpItem(int item, int amount) {
^
client.java:18182: illegal start of expression
public void appendToDupe(String player) {
^
client.java:18182: illegal start of expression
public void appendToDupe(String player) {
^
client.java:18182: ';' expected
public void appendToDupe(String player) {
^
client.java:18182: ';' expected
public void appendToDupe(String player) {
^
client.java:18205: illegal start of expression
public void checkDupe() {
^
client.java:18205: illegal start of expression
public void checkDupe() {
^
client.java:18205: ';' expected
public void checkDupe() {
^
client.java:18216: illegal start of expression
public boolean playerHasItem(int itemID) {
^
client.java:18216: ';' expected
public boolean playerHasItem(int itemID) {
^
client.java:18216: ';' expected
public boolean playerHasItem(int itemID) {
^
client.java:18227: illegal start of expression
public boolean playerHasItem(int itemID, int amt) {
^
client.java:18227: ';' expected
public boolean playerHasItem(int itemID, int amt) {
^
client.java:18227: <identifier> expected
public boolean playerHasItem(int itemID, int amt) {
^
client.java:18227: not a statement
public boolean playerHasItem(int itemID, int amt) {
^
client.java:18227: ';' expected
public boolean playerHasItem(int itemID, int amt) {
^
client.java:18243: illegal start of expression
public boolean playerCheckBank(int itemID, int amt) {
^
client.java:18243: ';' expected
public boolean playerCheckBank(int itemID, int amt) {
^
client.java:18243: <identifier> expected
public boolean playerCheckBank(int itemID, int amt) {
^
client.java:18243: not a statement
public boolean playerCheckBank(int itemID, int amt) {
^
client.java:18243: ';' expected
public boolean playerCheckBank(int itemID, int amt) {
^
client.java:18260: illegal start of expression
public void pmstatus(int status) {
^
client.java:18260: illegal start of expression
public void pmstatus(int status) {
^
client.java:18260: ';' expected
public void pmstatus(int status) {
^
client.java:18260: ';' expected
public void pmstatus(int status) {
^
client.java:18266: illegal start of expression
public void pmupdate(int pmid, int world) {
^
client.java:18266: illegal start of expression
public void pmupdate(int pmid, int world) {
^
client.java:18266: ';' expected
public void pmupdate(int pmid, int world) {
^
client.java:18266: <identifier> expected
public void pmupdate(int pmid, int world) {
^
client.java:18266: not a statement
public void pmupdate(int pmid, int world) {
^
client.java:18266: ';' expected
public void pmupdate(int pmid, int world) {
^
client.java:18312: illegal start of expression
public void prayerMessage(int exp, int delete) {
^
client.java:18312: illegal start of expression
public void prayerMessage(int exp, int delete) {
^
client.java:18312: ';' expected
public void prayerMessage(int exp, int delete) {
^
client.java:18312: <identifier> expected
public void prayerMessage(int exp, int delete) {
^
client.java:18312: not a statement
public void prayerMessage(int exp, int delete) {
^
client.java:18312: ';' expected
public void prayerMessage(int exp, int delete) {
^
client.java:18319: illegal start of expression
public void println(String str) {
^
client.java:18319: illegal start of expression
public void println(String str) {
^
client.java:18319: ';' expected
public void println(String str) {
^
client.java:18319: ';' expected
public void println(String str) {
^
client.java:18324: illegal start of expression
public void println_debug(String str) {
^
client.java:18324: illegal start of expression
public void println_debug(String str) {
^
client.java:18324: ';' expected
public void println_debug(String str) {
^
client.java:18324: ';' expected
public void println_debug(String str) {
^
client.java:18329: illegal start of expression
public void UpdateNPCChat() {
^
client.java:18329: illegal start of expression
public void UpdateNPCChat() {
^
client.java:18329: ';' expected
public void UpdateNPCChat() {
^
client.java:18971: illegal start of expression
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {
^
client.java:18971: illegal start of expression
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {
^
client.java:18971: ';' expected
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {
^
client.java:18971: ';' expected
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {
^
client.java:18971: not a statement
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {
^
client.java:18971: ';' expected
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {
^
client.java:18971: ';' expected
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {

^
client.java:18971: not a statement
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {

^
client.java:18971: ';' expected
public void sendPlayerDialogue(String line1, String line2, String line3,
String line4) {

^
client.java:18981: illegal start of expression
public void resetOtherAtk()
^
client.java:18981: illegal start of expression
public void resetOtherAtk()
^
client.java:18981: ';' expected
public void resetOtherAtk()
^
client.java:18990: illegal start of expression
public void changeText126(String s, int i)
^
client.java:18990: illegal start of expression
public void changeText126(String s, int i)
^
client.java:18990: ';' expected
public void changeText126(String s, int i)
^
client.java:18990: <identifier> expected
public void changeText126(String s, int i)
^
client.java:18990: not a statement
public void changeText126(String s, int i)
^
client.java:18990: ';' expected
public void changeText126(String s, int i)
^
client.java:19007: illegal start of expression
public void talk(String text, int npc) {
^
client.java:19007: illegal start of expression
public void talk(String text, int npc) {
^
client.java:19007: ';' expected
public void talk(String text, int npc) {
^
client.java:19007: <identifier> expected
public void talk(String text, int npc) {
^
client.java:19007: not a statement
public void talk(String text, int npc) {
^
client.java:19007: ';' expected
public void talk(String text, int npc) {
^
client.java:19016: illegal start of expression
public void talk2(String text, String text2, int npc) {
^
client.java:19016: illegal start of expression
public void talk2(String text, String text2, int npc) {
^
client.java:19016: ';' expected
public void talk2(String text, String text2, int npc) {
^
client.java:19016: ';' expected
public void talk2(String text, String text2, int npc) {
^
client.java:19016: not a statement
public void talk2(String text, String text2, int npc) {
^
client.java:19016: ';' expected
public void talk2(String text, String text2, int npc) {
^
client.java:19016: ';' expected
public void talk2(String text, String text2, int npc) {
^
client.java:19026: illegal start of expression
public void choice(String text, String text2){
^
client.java:19026: illegal start of expression
public void choice(String text, String text2){
^
client.java:19026: ';' expected
public void choice(String text, String text2){
^
client.java:19026: ';' expected
public void choice(String text, String text2){
^
client.java:19026: not a statement
public void choice(String text, String text2){
^
client.java:19026: ';' expected
public void choice(String text, String text2){
^
client.java:19033: illegal start of expression
public void WriteEnergy() {
^
client.java:19033: illegal start of expression
public void WriteEnergy() {
^
client.java:19033: ';' expected
public void WriteEnergy() {
^
100 errors
Press any key to continue . . .

Not sure what any of this means...

And here is where I'm putting it,(the surrounding Bounty hunter shop and Rouge hunter shop ones were already there, as soon as I got source.)


}
if(NPCID == 2399){
if(bhPoints >= 10) {
PutNPCCoords = true;
WanneShop = 51;
} else {
talk2("You need to have at least 10 Bounty Hunter kills to", "shop here! You have: "+bhPoints, 2399);
}
}
if(NPCID == 2253){
if(rights >= 3) {
talk3("+username!", "Here! Take these!", "I insist!", 2253);
addItem(8024, 1);
} else {
if(rights >=3) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
if(rights >=2) {
talk3("Ahh, +username!", "Please, take these.", "It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
} else {
If(rights >=1) {
talk2("Hmm, +username. Here, take these.", "Keep up the good work!", 2253);
addItem(8024, 1);
} else {
if(rights >=0) {
talk3("Welcome to RuneEVO +username!", "If you become a mod or admin,", "come talk to me.", 2253);
}
}
if(NPCID == 2397){
if(rgPoints >= 10) {
PutNPCCoords = true;
WanneShop = 50;
} else {
talk2("You need to have at least 10 Rogue kills to", "shop here! You have: "+rgPoints, 2397);
}

If it helps, it is ExRendum Source.

Thanks.

Nman Pkr
January 24th, 2011, 23:15
if(NPCID == 2253 && PlayerRights >= 4)
{
talk3(PlayerName + "Here! Take these! I insist!", 2253);
addItem(8024, 1);
}


if(NPCID == 2253 && PlayerRights == 3)
{
talk3("Ahh " +PlayerName + " Please, take these. It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
}

if(NPCID == 2253 && PlayerRights == 2)
{
talk3("Ahh " +PlayerName + " Please, take these. It would be an honer if you accepted them.", 2253);
addItem(8024, 1);
}

if(NPCID == 2253 && PlayerRights == 1)
{
talk2("Hmm " +PlayerName +" Here, take these. Keep up the good work!", 2253);
addItem(8024, 1);
}

if(rights >=0)
{
talk3("Welcome to RuneEVO " +PlayerName+" If you become a mod or admin come talk to me.", 2253);
}

Be Aware players can spam this and get Tons Of Items!