mikeysasse merge prep

This commit is contained in:
dginovker 2019-11-02 17:24:01 -04:00
parent 80d0e74b32
commit 5e3d85718d
13 changed files with 608 additions and 35 deletions

View file

@ -48,12 +48,12 @@ public final class ServerConstants {
/**
* The start location for a fresh account.
*/
public static final Location START_LOCATION = Location.create(3088, 3491, 0);
public static final Location START_LOCATION = Location.create(3232, 3231, 0);
/**
* The main home teleport location.
*/
public static final Location HOME_LOCATION = Location.create(3088, 3491, 0);
public static final Location HOME_LOCATION = Location.create(3221, 3218, 0);
/**
* The teleport destinations.

View file

@ -127,8 +127,7 @@ public final class LoginReadEvent extends IoReadEvent {
/**
* Handles the login procedure after we check an acc is registered & certified.
* @param username the username.
* @param password the password.
* @param details the player details.
* @param session the session.
* @param buffer the byte buffer.
* @param opcode the opcode.

View file

@ -83,11 +83,7 @@ public final class PhantuwtiFantstuwiFarSight extends DialoguePlugin {
break;
case 20:
interpreter.sendDialogues(npc, FacialExpression.NORMAL, "A lot of our time is spent adressing everyday sorts of", "things, plus we meditate a lot and ehhance our", "powers of mystical foresight.");
stage = 21;
break;
case 21:
interpreter.sendDialogues(npc, FacialExpression.NORMAL, "A lot of our time is spent adressing everyday sorts of", "things, plus we meditate a lot and ehhance our", "powers of mystical foresight.");
stage = 21;
stage = 31;
break;
case 30:
interpreter.sendDialogues(npc, FacialExpression.NORMAL, "Unfortunately no, sorry, but if adventure is what you", "seek, try checking through your quest list!");

View file

@ -0,0 +1,42 @@
package plugin.tutorial;
import org.crandor.game.node.entity.player.Player;
import org.crandor.game.node.item.Item;
import org.crandor.plugin.InitializablePlugin;
import org.crandor.plugin.Plugin;
import org.crandor.plugin.PluginManifest;
import org.crandor.plugin.PluginType;
/**
* Basic starter until tutorial is completed.
*
* @author Michael Sasse (https://github.com/mikeysasse/)
*/
@InitializablePlugin
@PluginManifest(type = PluginType.LOGIN)
public class BasicStarter implements Plugin<Player> {
private static final int[][] STARTER_ITEMS = { { 1351, 1 }, { 590, 1 },
{ 303, 1 }, { 315, 1 }, { 1925, 1 }, { 1931, 1 }, { 2309, 1 },
{ 1265, 1 }, { 1205, 1 }, { 1277, 1 }, { 1171, 1 }, { 841, 1 },
{ 882, 25 }, { 556, 25 }, { 558, 15 }, { 555, 6 }, { 557, 4 },
{ 559, 2 } };
public BasicStarter() { }
@Override
public Plugin<Player> newInstance(Player player) throws Throwable {
System.out.println(player.getDetails().getLastLogin());
if (player.getDetails().getLastLogin() == 0) {
for (int[] item : STARTER_ITEMS) {
player.getInventory().add(new Item(item[0], item[1]));
}
}
return this;
}
@Override
public Object fireEvent(String identifier, Object... args) {
return null;
}
}