SRL Archive - OSR Help

Use Simba with a browser game


tm2k

2013-05-27 04:08:07

Hi guys,

well I am quite new to Simba but I can see a lot of potential using it to make my life easier :-)

I am trying to learn a few basics by using Simba with my favourite borwser game which is a very old text based game. So quite boring :-) But well I like it…

The challenge I am facing right now: The interface is frame based. One frame contains the navigation and the other one contains npc's which occur randomly. Because the description of the npc's are very different the URL to interact with them is most of the times on a different x,y coordinate. Is there any function I can use to tell Simba to recognise which NPC spawned? Once I know which NPC I have to fight I know the x,y coordinate to click. It s an URL with a random ID. MAybe there is also a way to grab the URL to farm these monsters without clicking on it by myself.

Help is highly appreciated!!! Thank you guys!

Sjoe

2013-05-27 04:22:43

Well u know simba is a color bot, so if the npc has unique colors then it's easy to spot them.

tm2k

2013-05-27 04:41:41

Thanks for your quick reply. Unfortunately the npc doesn't have any unique colors.

If I move to the next field in-game, there is a new NPC created randomly. In game it will look like this, two examples:

Alien (NPC) Your Options:Attack, Run Away
Alien-Queen (NPC) Your Options:Attack, Run Away

The problem: Depending on what NPC is spawning, the URL with my "Attack" Option is on a different position every time. Due to many many NPC's I can't click all positions :-) Any ideas how to make something work in this case?

Chris

2013-05-27 05:28:49

What game is this?
I'd recommend using Appa, it has functions like
  appa_GetForms(out Result: TAppaFormArray); // and
appa_SubmitForm(const Index: Integer);
Which you can probably use to get the ID.

tm2k

2013-05-27 05:41:27

This game is called w w w . f r e e w a r . d e

Well thanks for your suggestion but grabbing the ID will not help cuz the NPC ID is created randomly as well. So Alien (NPC) will spawn now with ID 3 and 10 seconds later it will spawn with ID 13. The same ID is never used twice.

Only the description and the URL for attacking (except the unique ID) is the same - it's always Alien (NPC).

I think it might be quite hard to check if there is a description of the NPC somewhere - maybe it's an possibility to look for the URL….

If there is no way to identify the exact NPC it would already help to know if there is a NPC at all.