SRL Archive - OSR Help

Object Mis-clicking Problem


jSherz

2012-01-31 05:20:21

Hi,

I am having problems with the script I am trying to fix clicking on the Nomad at Soul Wars when it is supposed to be clicking on the Soul Wars chest. How can I avoid this?

The line that finds the SW Chest object:

FindObjCustom(x, y, ['Bank', 'nk ch', 'k che', 'est'], [2963780, 10790316, 10000542, 5921374], 3)

Also, if it does click the Nomad, how can I detect that it is talking? And how would I go about clicking through the conversation? Would the AreTalking method work to detect if the character is in an NPC conversation?

Er1k

2012-01-31 07:11:34

On the reverse, can you try detecting whether you're in the bank screen and retry if bankscreen is not found after you clicked?

jSherz

2012-01-31 08:11:34

From: nosaj.421
On the reverse, can you try detecting whether you're in the bank screen and retry if bankscreen is not found after you clicked?


Sounds like a good idea. I've changed the colours and it seems to work better now. Thanks for the advice - I'll add this!

Mat

2012-01-31 08:33:32

Easier uses

OpenBankChest(SRL_Bank_SW);
If BankScreen then
that works much better its a pre made function

Er1k

2012-01-31 09:31:45

From: Mat
Easier uses

OpenBankChest(SRL_Bank_SW);
If BankScreen then
that works much better its a pre made function


To be even safer, you can even WaitFunc the bankscreen.


OpenBankChest(SRL_Bank_SW);
If WaitFunc(@BankScreen, 100, 2000) then

weequ

2012-01-31 10:03:38

In my script I just rotate the compass south before I open sw bank.

fre

2012-01-31 10:51:02

I don't know if this is happend to anyone else,
but the function

Bankscreen
is totally inaccurate for me.
Instead I use

ExistsBankTab(1);

jakeyboy29

2012-01-31 11:31:13

From: weequ
In my script I just rotate the compass south before I open sw bank.


I 'think' that Srl's SW bank chest procedure already has that built in!