mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Added akharanu: arthritis edition
This commit is contained in:
parent
90cd8538e9
commit
ced633603d
3 changed files with 126 additions and 0 deletions
72
Server/src/plugin/npc/other/akharanu.java
Normal file
72
Server/src/plugin/npc/other/akharanu.java
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
package plugin.npc.other;
|
||||
|
||||
import org.crandor.cache.def.impl.NPCDefinition;
|
||||
import org.crandor.game.content.dialogue.DialoguePlugin;
|
||||
import org.crandor.game.content.dialogue.FacialExpression;
|
||||
import org.crandor.game.node.entity.npc.NPC;
|
||||
import org.crandor.game.node.entity.player.Player;
|
||||
import org.crandor.game.world.update.flag.context.Animation;
|
||||
import org.crandor.plugin.InitializablePlugin;
|
||||
|
||||
@InitializablePlugin
|
||||
public class akharanu extends DialoguePlugin {
|
||||
public akharanu() {};
|
||||
public akharanu(Player player){super(player);}
|
||||
@Override
|
||||
public DialoguePlugin newInstance(Player player){return new akharanu(player);}
|
||||
public boolean open(Object... args){
|
||||
npc("Hello, there, friend!");
|
||||
stage = 0;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean handle(int componentId, int buttonId){
|
||||
switch(stage){
|
||||
case 0:
|
||||
player.getDialogueInterpreter().sendOptions("Select one","Why are you, errr, so stiff?","Do you sell anything?");
|
||||
stage++;
|
||||
break;
|
||||
case 1:
|
||||
switch(buttonId){
|
||||
case 1:
|
||||
player("Why are you, errr, so stiff?");
|
||||
stage++;
|
||||
break;
|
||||
case 2:
|
||||
player("Do you sell anything?");
|
||||
stage = 8;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
npc(FacialExpression.HALF_GUILTY,"I have extremely severe arthritis. It really sucks.");
|
||||
stage++;
|
||||
break;
|
||||
case 3:
|
||||
player("Oh. Well I'm sorry to hear that.");
|
||||
stage++;
|
||||
break;
|
||||
case 4:
|
||||
npc("Yes, thank you for your concern.");
|
||||
stage++;
|
||||
break;
|
||||
case 5:
|
||||
end();
|
||||
break;
|
||||
case 8:
|
||||
player("Do you sell anything?");
|
||||
stage++;
|
||||
break;
|
||||
case 9:
|
||||
npc("Why, yes I do!");
|
||||
stage++;
|
||||
break;
|
||||
case 10:
|
||||
end();
|
||||
new NPC(1688).openShop(player);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public int[] getIds() {return new int[] {1688};}
|
||||
}
|
||||
27
Tools/Arios Editor/Arios Editor.iml
Normal file
27
Tools/Arios Editor/Arios Editor.iml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="EclipseModuleManager">
|
||||
<libelement value="jar://$MODULE_DIR$/data/libs/mysql-connector-java-5.1.30-bin.jar!/" />
|
||||
<src_description expected_position="0">
|
||||
<src_folder value="file://$MODULE_DIR$/src" expected_position="0" />
|
||||
</src_description>
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<output url="file://$MODULE_DIR$/bin" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
|
||||
<orderEntry type="module-library">
|
||||
<library name="mysql-connector-java-5.1.30-bin.jar">
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/data/libs/mysql-connector-java-5.1.30-bin.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
</module>
|
||||
27
Tools/Cache Editor/DragonkkCacheReader.iml
Normal file
27
Tools/Cache Editor/DragonkkCacheReader.iml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="EclipseModuleManager">
|
||||
<libelement value="jar://$MODULE_DIR$/substance-5.3.jar!/" />
|
||||
<src_description expected_position="0">
|
||||
<src_folder value="file://$MODULE_DIR$/src" expected_position="0" />
|
||||
</src_description>
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<output url="file://$MODULE_DIR$/bin" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="module-library">
|
||||
<library name="substance-5.3.jar">
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/substance-5.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
</module>
|
||||
Loading…
Add table
Add a link
Reference in a new issue