Page 1 of 1

tele when your char gets hit...

Posted: 28 Jun 2015, 22:28
by SAOfan
so ive been researching on how to make a command activate when the char gets hit once i am trying to use this code:

doCommand c @jump {
hp - 1%
sp
homunculus_hp
homunculus_sp
homunculus_dead
onAction
whenStatusActive
whenStatusInactive
whenFollowing
spirit
amuletType
aggressives
monsters
notMonsters
monstersCount
stopWhenHit 0
inLockOnly 0
notWhileSitting 0
notInTown 0
timeout
disabled 0
inInventory
inCart
inMap ordeal_1-2
manualAI 0
}

so here is where my problem comes in... there is no way to set an "on hit" condition here... anyone who can point me in the right direction with this would be immensely helpful...

Re: tele when your char gets hit...

Posted: 28 Jun 2015, 23:27
by holo01
try to set this, when it get hit more than 10 damage it will fly

teleportAuto_maxDmg 10

Re: tele when your char gets hit...

Posted: 28 Jun 2015, 23:48
by SAOfan
holo01 wrote:try to set this, when it get hit more than 10 damage it will fly

teleportAuto_maxDmg 10
i think it will only work when you have flywing or teleportlvl1 im trying to use @jump command since its a private server... figured it will make it more natural on scripts if i use it instead of flywing/tele but im gonna try thanks...

Re: tele when your char gets hit...

Posted: 17 Aug 2015, 12:32
by SkylorD
Inappropriated condition :
hp - 1%
syntax :

hp (conditions) (value)

Read the macro plugin.
You can do something like :

http://www.openkore.com/index.php/Telep ... xDmgInLock

set this for 1. Then when some monster hits you with 1 dmg, you'll tele. :O