Re: [Release] Super Info NPC
Re: [Release] Super Info NPC
It's just an npc that tells stuff about your server :/
Re: [Release] Super Info NPC
Posted a screenshot so you can understand what it is. And can't you analyze a script?
Re: [Release] Super Info NPC
LOL, what a noob script...
Here, I'll fix it up for ya
Code:
var status = -1;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
if (status == 0) {
cm.sendSimple("#bWelcome to BeamMS V.62, I am the personal helper NPC. What do you need? \b\r\n#L0#What are the server rates?\n\#l\b\r\n#L1#Who are the Gms of this server?\n\#l\b\r\n#L2#What are some of the new updates?\n\#l\b\r\n#L3#Where are all the NPCS in the Fm at?\n\#l\b\r\n#L4#What are some of the features to the server?\n\#l")
} else if (status == 1) {
if (selection == 0) {
cm.sendOk("#b Server Rates\r\n\#i1302034 \r\n\ Exp - " + cm.getPlayer().getClient().getChannelServer().getExpRate() + " \r\n\#i1302034 \r\n\ Meso - " + cm.getPlayer().getClient().getChannelServer().getMesoRate() + "\r\n\#i1302034 \r\n\ Drop -" + cm.getPlayer().getClient().getChannelServer().getDropRate());
} else if (selection == 1) {
cm.sendOk("#r Official Gm List\r\n\#i1000009 \r\n\ Retard - Owner \r\n\#i1000009 \r\n\ James - Co Owner \r\n\#i1000009 \r\n\ Aaron - Gm \r\n\#i1000009 \r\n\ Ruski - Gm");
} else if (selection == 2) {
cm.sendOk("#d Updates December 31st\r\n\#i2000005 \r\n\ Pet Shop Added \r\n\#i2000005 \r\n\ Player Hangouts Fixed \r\n\#i2000005 \r\n\ Bug Report System Added to Website \r\n\#i2000005 \r\n\ Non-Hamachi Coming out soon \r\n\#i2000005 \r\n\ Updating to 24/7 Server");
} else if (selection == 3) {
cm.sendOk("#k Where to find all the NPCS\r\n\#i1092001 \r\n\ Talk to Shanks in the free market for the all in one Npc selection menu");
} else if (selection == 4) {
cm.sendOk("#r Features List\r\n\#i5021005 \r\n\ PvP Working \r\n\#i5021005 \r\n\ Proper Autobans \r\n\#i5021005 \r\n\ Tons of npcs and shops \r\n\#i5021005 \r\n\ Player Hangouts \r\n\#i5021005 \r\n\ Most Pqs Working");
}
cm.dispose();
}
}
Re: [Release] Super Info NPC
Good Idea!
Seems really use full for the noob players that can come to our servers (;
Re: [Release] Super Info NPC
Quote:
Originally Posted by
Jvlaple
LOL, what a noob script...
Here, I'll fix it up for ya
Code:
var status = -1;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
if (status == 0) {
cm.sendSimple("#bWelcome to BeamMS V.62, I am the personal helper NPC. What do you need? \b\r\n#L0#What are the server rates?\n\#l\b\r\n#L1#Who are the Gms of this server?\n\#l\b\r\n#L2#What are some of the new updates?\n\#l\b\r\n#L3#Where are all the NPCS in the Fm at?\n\#l\b\r\n#L4#What are some of the features to the server?\n\#l")
} else if (status == 1) {
if (selection == 0) {
cm.sendOk("#b Server Rates\r\n\#i1302034 \r\n\ Exp - " + cm.getPlayer().getClient().getChannelServer().getExpRate() + " \r\n\#i1302034 \r\n\ Meso - " + cm.getPlayer().getClient().getChannelServer().getMesoRate() + "\r\n\#i1302034 \r\n\ Drop -" + cm.getPlayer().getClient().getChannelServer().getDropRate());
} else if (selection == 1) {
cm.sendOk("#r Official Gm List\r\n\#i1000009 \r\n\ Retard - Owner \r\n\#i1000009 \r\n\ James - Co Owner \r\n\#i1000009 \r\n\ Aaron - Gm \r\n\#i1000009 \r\n\ Ruski - Gm");
} else if (selection == 2) {
cm.sendOk("#d Updates December 31st\r\n\#i2000005 \r\n\ Pet Shop Added \r\n\#i2000005 \r\n\ Player Hangouts Fixed \r\n\#i2000005 \r\n\ Bug Report System Added to Website \r\n\#i2000005 \r\n\ Non-Hamachi Coming out soon \r\n\#i2000005 \r\n\ Updating to 24/7 Server");
} else if (selection == 3) {
cm.sendOk("#k Where to find all the NPCS\r\n\#i1092001 \r\n\ Talk to Shanks in the free market for the all in one Npc selection menu");
} else if (selection == 4) {
cm.sendOk("#r Features List\r\n\#i5021005 \r\n\ PvP Working \r\n\#i5021005 \r\n\ Proper Autobans \r\n\#i5021005 \r\n\ Tons of npcs and shops \r\n\#i5021005 \r\n\ Player Hangouts \r\n\#i5021005 \r\n\ Most Pqs Working");
}
cm.dispose();
}
}
Are you retarted? You didn't even help with anything. And it works fine, not every script is broken.
Re: [Release] Super Info NPC
LOL I made it so it displays the CURRENT server rate, learn to READ >.>
Also, you cannot spell 'retarted' LOL its 'retarded'
Re: [Release] Super Info NPC
IMO, I think this isn't useful much.
Re: [Release] Super Info NPC
Code:
public List<String> getAllGMs() {
Connection con = DatabaseConnection.getConnection();
try {
List<String> ret = new LinkedList<String>();
PreparedStatement ps = con.prepareStatement("SELECT name FROM characters WHERE gm > 0");
ResultSet rs = ps.executeQuery();
while (rs.next) {
ret.add(rs.getString("name"));
}
return ret;
} catch (SQLException ex) {
Logger.getLogger(getClass().getSimpleName()).log(Level.SEVERE, null, ex);
return null;
}
}
This could be a better solution for getting GM names, retard
Re: [Release] Super Info NPC
Nice release but I like computer npc more ;D
Re: [Release] Super Info NPC
Nice Release :D
special for new server :thumbup:
Re: [Release] Super Info NPC
Re: [Release] Super Info NPC
There was another NPC like this before that was released too ;)
Nice work anyways.
Re: [Release] Super Info NPC
Quote:
Originally Posted by
Jvlaple
LOL, what a noob script...
Here, I'll fix it up for ya
Code:
var status = -1;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
if (status == 0) {
cm.sendSimple("#bWelcome to BeamMS V.62, I am the personal helper NPC. What do you need? \b\r\n#L0#What are the server rates?\n\#l\b\r\n#L1#Who are the Gms of this server?\n\#l\b\r\n#L2#What are some of the new updates?\n\#l\b\r\n#L3#Where are all the NPCS in the Fm at?\n\#l\b\r\n#L4#What are some of the features to the server?\n\#l")
} else if (status == 1) {
if (selection == 0) {
cm.sendOk("#b Server Rates\r\n\#i1302034 \r\n\ Exp - " + cm.getPlayer().getClient().getChannelServer().getExpRate() + " \r\n\#i1302034 \r\n\ Meso - " + cm.getPlayer().getClient().getChannelServer().getMesoRate() + "\r\n\#i1302034 \r\n\ Drop -" + cm.getPlayer().getClient().getChannelServer().getDropRate());
} else if (selection == 1) {
cm.sendOk("#r Official Gm List\r\n\#i1000009 \r\n\ Retard - Owner \r\n\#i1000009 \r\n\ James - Co Owner \r\n\#i1000009 \r\n\ Aaron - Gm \r\n\#i1000009 \r\n\ Ruski - Gm");
} else if (selection == 2) {
cm.sendOk("#d Updates December 31st\r\n\#i2000005 \r\n\ Pet Shop Added \r\n\#i2000005 \r\n\ Player Hangouts Fixed \r\n\#i2000005 \r\n\ Bug Report System Added to Website \r\n\#i2000005 \r\n\ Non-Hamachi Coming out soon \r\n\#i2000005 \r\n\ Updating to 24/7 Server");
} else if (selection == 3) {
cm.sendOk("#k Where to find all the NPCS\r\n\#i1092001 \r\n\ Talk to Shanks in the free market for the all in one Npc selection menu");
} else if (selection == 4) {
cm.sendOk("#r Features List\r\n\#i5021005 \r\n\ PvP Working \r\n\#i5021005 \r\n\ Proper Autobans \r\n\#i5021005 \r\n\ Tons of npcs and shops \r\n\#i5021005 \r\n\ Player Hangouts \r\n\#i5021005 \r\n\ Most Pqs Working");
}
cm.dispose();
}
}
Stop acting like your a smart ass. There are ALOT of people better than you. His script was working fine. Tell me, what did you fix?
@ontopic Nice release. Good for new players =)