Jump to content

New "Script" node in quester profiles


camelot10

Recommended Posts

1. how i can put filename instead of code?

2. its possible to put multiple .cs in that node? to attach multiple .cs

3. path relative to "Quester" folder or script ?

Link to comment
Share on other sites

ok. here some discovered information

  • you can attach only one external .cs file (see below)
  • path relative to WRobot\Profiles\Quester\
  • you cannot use code/classes/methods from Script in profile Steps (see test.xml). Only in Quests Editor: inside pulse, or full C# or conditions
  • static constructor started before product start, this mean you can adjust currentSettings to avoid some strange behaviours. example: http://wrobot.eu/bugtracker/no-gather-skill-or-skinning-in-mass-battle-areas-r634/

WRONG

camelot10\Libs\Tester.cs
camelot10\Libs\Camper.cs

WRONG

camelot10\Libs\Tester.cs, camelot10\Libs\Camper.cs

CORRECT

camelot10\Libs\Tester.cs

 

Constructor starts before product

17:18:22 - [TESTER] contstructor
17:18:23 - [Quester] Started

 

Link to comment
Share on other sites

Hello,

Path is relative to "\WRobot\Profiles\Quester\"

If you want to use external file(s) (because you can put c# code directly in the profile), you can load multiple c# files (since today update), put one file by line.

I have added this feature for mainly for two reason:

1: You can use classes, methods, variables of your codes in the "quests order" (steps), and in your quests (also from your quests settings like "Is Complete Condition").

2: You can run code before than WRobot start (before default WRobot states like Farming, IsAttacked, Looting, Resurrect,...) (useful to change wrobot settings).

 

Sample of use: test.zip

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...