public class SimpleMagic extends ClientAccessor<ClientContext>
Modifier and Type | Class and Description |
---|---|
static interface |
SimpleMagic.MagicSpell |
static class |
SimpleMagic.SpellBook |
ctx
Constructor and Description |
---|
SimpleMagic(ClientContext ctx)
Creates a new instance with the specified context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
castHomeTeleport()
Will cast the home teleport spell on any spell book
|
boolean |
castSpellOnItem(int spellId,
SimpleItem item)
will cast {spellname} on specified item={item}, in your inventory, returns {true} if cast was successful, {false} otherwise
|
boolean |
castSpellOnNPC(int spellId,
SimpleNpc npc)
will cast {spellId} on specified {npc}, returns {true} if cast was successful, {false} otherwise
|
boolean |
castSpellOnPlayer(int spellId,
SimplePlayer player)
will cast {spellId} on specified {player}, returns {true} if cast was successful, {false} otherwise
|
int |
getSpellId() |
boolean |
isSpellSelected() |
boolean |
isSpellSelected(int spellId) |
boolean |
selectSpell(int spellId) |
boolean |
unSelectSpell() |
public SimpleMagic(ClientContext ctx)
ctx
- the contextpublic boolean castHomeTeleport()
public boolean castSpellOnPlayer(int spellId, SimplePlayer player)
spellId
- player
- public boolean castSpellOnNPC(int spellId, SimpleNpc npc)
spellId
- npc
- public boolean castSpellOnItem(int spellId, SimpleItem item)
spellId
- item
- public boolean selectSpell(int spellId)
public boolean unSelectSpell()
public int getSpellId()
public boolean isSpellSelected()
public boolean isSpellSelected(int spellId)