mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-07 00:38:21 +00:00
[FEATURE] Emotes
This commit is contained in:
@@ -0,0 +1,50 @@
|
|||||||
|
package org.rev317.min.api.methods.utils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author EmmaStone
|
||||||
|
*/
|
||||||
|
public enum Emote {
|
||||||
|
YES(168),
|
||||||
|
NO(169),
|
||||||
|
BOW(164),
|
||||||
|
ANGRY(165),
|
||||||
|
THINK(162),
|
||||||
|
WAVE(163),
|
||||||
|
SHRUG(13370),
|
||||||
|
CHEER(171),
|
||||||
|
BECKON(167),
|
||||||
|
LAUGH(170),
|
||||||
|
JUMP_FOR_JOY(13366),
|
||||||
|
YAWN(13368),
|
||||||
|
DANCE(166),
|
||||||
|
JIG(13363),
|
||||||
|
SPIN(13364),
|
||||||
|
HEADBANG(13365),
|
||||||
|
CRY(161),
|
||||||
|
BLOW_KISS(11100),
|
||||||
|
PANIC(13362),
|
||||||
|
RASPBERRY(13367),
|
||||||
|
CLAP(172),
|
||||||
|
SALUTE(13369),
|
||||||
|
GOBLIN_BOW(13383),
|
||||||
|
GOBLIN_SALUTE(13384),
|
||||||
|
GLASS_BOX(667),
|
||||||
|
CLIMB_ROPE(6503),
|
||||||
|
LEAN_ON_AIR(6506),
|
||||||
|
GLASS_WALL(666),
|
||||||
|
ZOMBIE_WALK(18464),
|
||||||
|
ZOMBIE_DANCE(18465),
|
||||||
|
SCARED(15166),
|
||||||
|
RABBIT_HOP(18686),
|
||||||
|
SKILLCAPE_EMOTE(154);
|
||||||
|
|
||||||
|
private int action3;
|
||||||
|
|
||||||
|
Emote(int action3) {
|
||||||
|
this.action3 = action3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAction3() {
|
||||||
|
return action3;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,15 +1,18 @@
|
|||||||
package org.rev317.min.api.wrappers;
|
package org.rev317.min.api.wrappers;
|
||||||
|
|
||||||
import org.parabot.core.reflect.RefClass;
|
import org.parabot.core.reflect.RefClass;
|
||||||
|
import org.parabot.environment.api.utils.Time;
|
||||||
|
import org.parabot.environment.scripts.framework.SleepCondition;
|
||||||
import org.rev317.min.Loader;
|
import org.rev317.min.Loader;
|
||||||
import org.rev317.min.api.interfaces.Locatable;
|
import org.rev317.min.api.interfaces.Locatable;
|
||||||
import org.rev317.min.api.methods.Calculations;
|
import org.rev317.min.api.methods.Calculations;
|
||||||
import org.rev317.min.api.methods.Game;
|
import org.rev317.min.api.methods.Game;
|
||||||
import org.rev317.min.api.methods.Menu;
|
import org.rev317.min.api.methods.Menu;
|
||||||
import org.rev317.min.api.methods.Players;
|
import org.rev317.min.api.methods.Players;
|
||||||
|
import org.rev317.min.api.methods.utils.Emote;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Everel
|
* @author Everel, EmmaStone
|
||||||
*/
|
*/
|
||||||
public class Character implements Locatable {
|
public class Character implements Locatable {
|
||||||
|
|
||||||
@@ -147,6 +150,21 @@ public class Character implements Locatable {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performs an emote
|
||||||
|
*
|
||||||
|
* @param emote
|
||||||
|
*/
|
||||||
|
public void performEmote(Emote emote) {
|
||||||
|
Menu.clickButton(emote.getAction3());
|
||||||
|
Time.sleep(new SleepCondition() {
|
||||||
|
@Override
|
||||||
|
public boolean isValid() {
|
||||||
|
return Players.getMyPlayer().getAnimation() != -1;
|
||||||
|
}
|
||||||
|
}, 1500);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the accessor class
|
* Gets the accessor class
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user