tele when your char gets hit...

Forum closed. Read only permissions.

Moderator: Moderators

Locked
Message
Author
SAOfan
Noob
Noob
Posts: 7
Joined: 21 Jun 2015, 18:55
Noob?: Yes

tele when your char gets hit...

#1 Post 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...

holo01
Noob
Noob
Posts: 9
Joined: 28 Jun 2015, 22:32
Noob?: No

Re: tele when your char gets hit...

#2 Post by holo01 »

try to set this, when it get hit more than 10 damage it will fly

teleportAuto_maxDmg 10

SAOfan
Noob
Noob
Posts: 7
Joined: 21 Jun 2015, 18:55
Noob?: Yes

Re: tele when your char gets hit...

#3 Post 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...

SkylorD
Moderators
Moderators
Posts: 1163
Joined: 16 Dec 2011, 02:53
Noob?: Yes
Location: Brazil

Re: tele when your char gets hit...

#4 Post 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
Learn rules

Locked