Openkore.com

OpenKore Forums
It is currently 23 Jun 2018, 23:22

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: tele when your char gets hit...
PostPosted: 28 Jun 2015, 22:28 
Offline
Noob
Noob

Joined: 21 Jun 2015, 18:55
Posts: 7
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...


Top
 Profile  
 
 Post subject: Re: tele when your char gets hit...
PostPosted: 28 Jun 2015, 23:27 
Offline
Noob
Noob

Joined: 28 Jun 2015, 22:32
Posts: 9
try to set this, when it get hit more than 10 damage it will fly

teleportAuto_maxDmg 10


Top
 Profile  
 
 Post subject: Re: tele when your char gets hit...
PostPosted: 28 Jun 2015, 23:48 
Offline
Noob
Noob

Joined: 21 Jun 2015, 18:55
Posts: 7
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...


Top
 Profile  
 
 Post subject: Re: tele when your char gets hit...
PostPosted: 17 Aug 2015, 12:32 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1169
Location: Brazil
Inappropriated condition :

Quote:
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

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

Click here and travel to a new world -> Newbies
Read before asking something.
How to connect to private servers


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group