What's new
Resource icon

mmSkriptAddon 0.92a

### Update 22.9.2017 V0.92a added skripttargetcondition condition. See conditions for details.

Code:
skskill:
  TargetConditions:
  - skripttargetcondition{c=weather;args=clear}
  Coolddown: 1
  Skills:
  - message{msg="Nice weather today! Isnt it, <target.name>?"}
Update 21.6.2017 v0.86a
added event-location and event-entity to death event
  • Like
Reactions: ThyraRoleplay
Now support Bukkit 1.8 - 1.12
Added new class skilltargeter
Added new expression mythicmobs targeter %string%
Added new expression targetentities of %entity% for targeter %skilltargeter%
Added new expression targetlocations of %entity% for targeter %skilltargeter%


mythicmobs targeter %string%
- %string% is any valid mythicmmobs targeter
- set {_targeter} to mythicmobs targeter "@PIR{r=30}"
- will set the targeter to pir with radius 30

targetentities of %entity% for targeter %skilltargeter%
- set {_targeter} to mythicmobs targeter "@PIR{r=30}"
- set {_targets::*} to targetentities of event-entity for targeter {_targeter}
- first set the {_targeter} to @pir{r=30} and then filter all players for entity event-entitiy with targeter {_targeter}

targetlocations of %entity% for targeter %skilltargeter%
- set {_targeter} to mythicmobs targeter "@Ring{radius=10;points=5}"
- set {locations::*} to targetlocations of event-entity for targeter {_targeter}
- first set the {_targeter} to @Ring{radius=10;points=5} and then create a ring of locations for entity event-entitiy with targeter {_targeter}

The MythicMobs targeters can be used on any entity / player. It dont need to be a MythicMob.

Code:
on right click on entity:
      set {_targeter} to mythicmobs targeter "@Ring{radius=10;points=5}"
      if "%{_targeter}%" is "EntitySelector":
          set {_targets::*} to targetentities of event-entity for targeter {_targeter}
          broadcast "%{_targets::*}%"
      else if "%{_targeter}%" is "LocationSelector":
          set {_targets::*} to targetlocations of event-entity for targeter {_targeter}
          broadcast "%{_targets::*}%"
Changed meet condition default to true (Because of alot of suggestions from the skunity forum i changed the default meet condition to true.)

Added skriptspawncondition for MythicMobs RandomSpawners to work with MythicMobs SnapShot 2105 or greater.

new MythicMobs Condition:

- skriptspawncondition{c=skriptcondition;args=arguments}
- Meanwhile RandomSpawnerConditions only work with Location. So you always have to check with condition-location

#### Example:

```

MythicMobs part:

RandomMonkey:
Mobname: Monkey1
Worlds: world
Chance: 1
Priority: 1
Action: replace
Conditions:
- skriptspawncondition{c=region;args=test}
Skript part:

on mythicmobs skriptconditionevent:
if condition-location is set:
if "%condition-name%" is "region":
set condition meet to false
set {_mobtypes::*} to condition-args split at ","
set {_regionname} to {_mobtypes::1}
delete {_mobtypes::1}
# make a list of all arguments
set {_region::*} to regions at condition-location
loop {_region::*}:
if "%loop-value%" contains {_regionname}:
set condition meet to true
stop
```
** Update 26.3.2017 v0.82a

Conditions:

// activemob %activemob% has immunitytable
// Test if activemob has immunitytable enabled

Effects:

// set damage of activemob %activemob% to %number%
// change the attackdamage

// set knockbackresist of activemob %activemob% to %number%
// Change Knockback resist

// set armor of activemob %activemob% to %number%
// Change armor stats (only >1.9)

// set attackspeed of activemob %activemob% to %number%
// Change attackspeed (only >1.9)

// set followrange of activemob %activemob% to %number%
// Change follow range

// set speed of activemob %activemob% to %number%
// Change movement speed

// trigger %string% for activemob %activemob%
// trigger %string% for activemob %activemob% with triggerentity %entity%
// Trigger activemob for trigger defined in %string%
// Valid triggers are: DEFAULT, ATTACK, BOW_HIT, BLOCK, COMBAT, CROUCH, UNCROUCH, DAMAGED, DROPCOMBAT, DEATH, ENTERCOMBAT, EXPLODE, INTERACT, KILL, KILLPLAYER, PLAYERDEATH, SHOOT, SIGNAL, SPAWN, SPLASH_POTION, SWING, TARGETCHANGE, TELEPORT, TIMER, USE, READY

Code:
skript part:

on damage of entity:
    victim instanceof activemob
    event-entity is arrow
    set {_am} to activemob of victim
    trigger "bow_hit" for activemob {_am} with triggerentity attacker
   
Mob.yml:

Monkey:
  Type: zombie
  Display: "MythicMobs Monkey"
  Health: 40
  Armor: 10
  Skills:
  - message{msg="Ouch! Stop shooting arrows at me!"} @trigger ~onBowHit 1
** Update 0.81a 10.3.2017
Advanced ActiveMobs ThreatTable support

// get threattable of activemob %activemob%
// returns a list with all entities of the activemobs threattable

// get threatvalue of %entity% from activemob %activemob%
// returns the value as number of threat from entity out of activemobs threattable NOTE: entity have to be a threat of activemob


// inc threat of %entity% by %number% from activemob %activemob%
// dec threat of %entity by %number% from activemob %activemob%

// Increases (inc) or decreases (dec) the threat by amount of the entity from activemobs threattable

// remove threat of %entity% from activemob %activemob%
// Remove the entity from activemobs threattable

// clear threattable of activemob %activemob%
// This clear the complete threattable of the activemob
Top