Page 1 of 1

WARDEN_SUMMON_NATURE_CRYSTAL Tigger on profile/waypoint

Posted: Mon Oct 21, 2013 4:41 am
by spyfromsiochain
Hello, I have the following problem when using bot in elven island

Waypoint part from: Hgrow.xml

player = CPlayer.new();
settings.load();
settings.loadProfile("tokens"); -- profile name to load
yrest (1000)
loadPaths("Hgrow"); -- script name to load

When it switches characters it doesn't trigger the summoning of the pet

Profile part from: tokens.xml
<skills_warden>
<skill name="WARDEN_SUMMON_NATURE_CRYSTAL" hotkey="MACRO" priority="100" autouse="true" /> </skills_warden>

The first character in that account works well, it summons the pet on the 4th waypoint, around 20 sec after starting the bot, but when it swichs to the other characters, none of them triggers the skill to summon the pet.

Can u help?

Tyvm

Re: WARDEN_SUMMON_NATURE_CRYSTAL Tigger on profile/waypoint

Posted: Mon Oct 21, 2013 5:44 am
by rock5
I think it just needs a player:update after it loads the profile. But I would just use loadProfile instead.

Code: Select all

loadProfile("tokens"); -- profile name to load
yrest (1000)
loadPaths("Hgrow"); -- script name to load
The benefits include:
  • - It's a lot simpler
    - Does the player:update() for you
    - Runs the profile 'onload'.
    - If no profile is specified then it will default to loading the characters profile or 'userdefault' profile, just like when starting the bot.

Re: WARDEN_SUMMON_NATURE_CRYSTAL Tigger on profile/waypoint

Posted: Mon Oct 21, 2013 6:48 am
by spyfromsiochain
Working perfectly

TYVM

YRTM (you are the man)