Home Download Forum My Account Store NPC/Item Drop Database

Anyone working on Scripts? Need Advise

READ FIRST: L2Divine Forum Rules

Anyone working on Scripts? Need Advise

Post by hits79 on Wed Nov 07, 2018 06:50 PM

So, I am trying to make a script where if my toon dies, the script starts or stays on until the toon dies.

How would I keep the script running this way?

when the toon dies, he ports back to village by the bot. But I want him to run back to the hunting area as well. Which I got that part, but once he get's there the script stops. I want it to keep looping.
Avatar
Registered User
 
Posts: 22
Joined: Wed Oct 03, 2007 04:26 PM

RE: Anyone working on Scripts? Need Advise

Post by hits79 on Wed Nov 07, 2018 07:34 PM

nevermind, I was able to figure it out
Avatar
Registered User
 
Posts: 22
Joined: Wed Oct 03, 2007 04:26 PM

RE: Anyone working on Scripts? Need Advise

Post by maple on Fri Nov 16, 2018 05:07 PM

Code: Select all

BattleStop()
Start:
If(Char.HP==0)
{
ReturnToVillage()
Delay(500)
Jump("Start")
}
If(!LocInRange(x,y,z,100))
{
UseItem(736)
Delay(20000)
Jump("Start")
}

MoveTo(x,y,z)
MoveTo(x,y,z)
MoveTo(x,y,z)
MoveTo(x,y,z)
BattleStart()

The End:
If(Char.HP==0)
{
BattleStop()
Jump("Start")
}
Jump("The End")
Avatar
Registered User
 
Posts: 52
Joined: Tue Nov 17, 2015 11:32 PM


Who is online

In total there is 10 user online
Registered users: Luck222, twsoso48, hits79, bayes, skyblue520, sammylovesu, xxsanxx, hongxin, sw0825, bay118
Legend: , , , Registered User

2006-2018 ☻ L2DIVINE.COM