Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request] Overview of Methods, Functions and conditions
06-15-2014, 07:00 AM
Post: #1
[Request] Overview of Methods, Functions and conditions
Hello Guys,

Yesterday I tried to build my own profile, which should be the fastest experience gaining profile ever. Therefore I want to complete the Quest:
"A royal audience, Act 2" in 3 smiple steps:

  1. Speak to Tyrael about Leah's status
  2. Locate Asheara at Caldeum's gates and enter the palace
  3. Survive the ambush and escape with Leah into the sewers


You can complete this quest rather quickly and receive the experience reward and repeat.

I was looking at some xml-profiles and tried to build my own script, but it does not work. For expample:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<Profile>
    <Name>Act 2: A royal audience</Name>
    <KillMonsters>True</KillMonsters>
    <PickupLoot>True</PickupLoot>
    <GameParams quest="57331" step="-1" act="A2" resumeFromSave="False" isPrivate="True" numGames="-1" changeQuest="true" />
<Order>
    <!-- Step 1: talk to Tyrael and go to portal -->
    <While condition="ZetaDia.CurrentWorldId == 161472">
        <MoveTo x="294,5629" y="256,0345" z="0,1"/>
        <TalkTo actorId="6353"/>
        <MoveTo x="297,0146" y="256,0522" z="0,1"/>
        <UseObject isPortal="true"/>
    </While>
    
    <!-- Step 2: talk to Ashara -->
    <While questId="57331" stepId="1">
        <MoveTo x="3469,88" y="1711,736" z="250,7494"/>
        
    </While>
</Order>
</Profile>

The code above starts the correct Quest, talks to Tyrael and goes into the portal to enter the area where Ashara is located. But after I used the portal, the character is not moving. I tried a lot of things, but it is not moving. Sometimes it uses the portal again and goes back to Tyraels Area (the city)

In order to build a fail-save script, I need to know which functions I can use. Like a try-catch block or do something while/if something else is true or given. I know that your engine supports those things, but I don't have any overview of those functions and conditions.

Could anyone help me with this ? I really want to build this Act 2 script (and after I succeeded, maybe others too)

Cheers
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[Request] Overview of Methods, Functions and conditions - remove_before_flight - 06-15-2014 07:00 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)