What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Scripting help

Lingerie

New Member
Joined
May 9, 2016
Messages
26
Reaction score
0
Hello!
Tell me pls how i can make long delay or pause script? WaitTimer use only ms. I need stop my script for ~3 hours if my condition true. I try to use <sleep hours="3"/>, but DB don`t want load profile.

I`m sorry for my bad English :(
 
Last edited:
I'm far away from prog, but add multiple WaitTimer ? like wait 30min, and set 6 times the line?
 
servers will kick you off long before timer runs out as anti idle kicks in but...
use quest tools while loop to setup an inf loop with a wait in it ie :-
<While Condition="True" >
<!-- whatever -->
</While>

on return hit stop
 
servers will kick you off long before timer runs out as anti idle kicks in but...
use quest tools while loop to setup an inf loop with a wait in it ie :-
<While Condition="True" >
<!-- whatever -->
</While>

on return hit stop
What is the condition if i had killed boss? For example:
PHP:
<If condition="ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
			<LogMessage message="====== Boss has been killed, Leaving game ======" />
			<WaitTimer questId="1" waitTime="2000" />
</If>

I mean: "ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)"=boss was killed? (373833 - Horsey; if i change id that will be true for any boss?)
 
Hello!
Tell me pls how i can make long delay or pause script? WaitTimer use only ms. I need stop my script for ~3 hours if my condition true. I try to use <sleep hours="3"/>, but DB don`t want load profile.

I`m sorry for my bad English :(
Everything you can do is:
[HIDE]
PHP:
<While condition="True">
	<MoveTo questId="312429" stepId="2" x="" y="" z="" /> 	<!-- Put the coords between the "" at x="" y="" z="" -->
	<WaitTimer questId="1" waitTime="10000"/>				<!-- Waiting at least 10 secs is sufficient, you can put higher if want -->
	<MoveTo questId="312429" stepId="2" x="" y="" z="" /> 	<!-- Put the coords between the "" at x="" y="" z="" -->
	<WaitTimer questId="1" waitTime="10000"/>				<!-- Waiting at least 10 secs is sufficient, you can put higher if want -->
</While>
[/HIDE]

What is the condition if i had killed boss? For example:
[HIDE]
PHP:
<If condition="ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
			<LogMessage message="====== Boss has been killed, Leaving game ======" />
			<WaitTimer questId="1" waitTime="2000" />
</If>
[/HIDE]

I mean: "ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)"=boss was killed? (373833 - Horsey; if i change id that will be true for any boss?)
No, that code means the boss is near you, there isn't any code to ensure that, just a while loop to ensure its not there.

[HIDE]
PHP:
<While condition="ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== Boss still alive, we are killing him ======" />
	<WaitTimer questId="1" waitTime="1000" />
</While>
<If condition="not ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== when while condition expires, means the boss have died, we're just ensuring that's true ======" />
</If>
[/HIDE]
But, if you need to wait for him:
[HIDE]
PHP:
<While condition="not ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== waiting for boss ======" />
	<WaitTimer questId="1" waitTime="1000" />
</While>
<While condition="ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== Boss have spawn/still alive, we are killing him ======" />
	<WaitTimer questId="1" waitTime="1000" />
</While>
<If condition="not ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== when while condition expires, means the boss have died, we're just ensuring that's true ======" />
</If>
[/HIDE]
 
Last edited:
No, that code means the boss is near you, there isn't any code to ensure that, just a while loop to ensure its not there.

[HIDE]
Code:
<While condition="ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== Boss still alive, we are killing him ======" />
	<WaitTimer questId="1" waitTime="1000" />
</While>
<If condition="not ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== when while condition expires, means the boss have died, we're just ensuring that's true ======" />
</If>
[/HIDE]
But, if you need to wait for him:
[HIDE]
Code:
<While condition="not ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== waiting for boss ======" />
	<WaitTimer questId="1" waitTime="1000" />
</While>
<While condition="ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== Boss have spawn/still alive, we are killing him ======" />
	<WaitTimer questId="1" waitTime="1000" />
</While>
<If condition="not ActorExistsAt(373833, Me.Position.X, Me.Position.Y, Me.Position.Z, 300)">
	<LogMessage message="====== when while condition expires, means the boss have died, we're just ensuring that's true ======" />
</If>
[/HIDE]
If I get you right, boss will be killed anyway with your code? And we stay at the murder scene?
How can i save boss life and wait close only?
 
If I get you right, boss will be killed anyway with your code? And we stay at the murder scene?
How can i save boss life and wait close only?
thats what
PHP:
<WaitTimer questId="1" waitTime="1000" />
does.
if want to ensure you will be near use
PHP:
<MoveToActor questId="312429" stepId="2" actorId="373833" />
 
Back
Top