Official ScriptUO EasyUO Scripts > Scripting Chat

Trying my best

<< < (2/2)

M4yH3m:

--- Quote from: Gaderian on April 27, 2020, 04:30:27 PM ---So you are setting a for loop variable "%ambitious" and then doing a scanjournal on %MOB.

I suspect you intended to do the scanjournal on %ambitious?

I can't say I understand using the journal messaging in this way.

I would think you would walk to rail and issue a finditem, then go through the list of returned items to search for identifying your NPC of choice.

Once found, approach the NPC to be within the range where it will interact with you for the quest (often 8 to 12 tile distance depending on OSI or freeshard.

So in simple logic / pseudo code:

move to next rail position
check for NPC to give quest
refine the NPC based on Name, ID, or description
if the distance to the NPC is more than the proximity required to interact with the NPC
   move close enough to the NPC
get the quest

Does that seem correct?

This would be structured to repeat the loop and advance the rail point.

Gaderian

--- End quote ---

Yes sir, I think I get it. Yes, I am trying to do the solen quests for BOS. I will try to make this work, and get back to you with what I can do.

Navigation

[0] Message Index

[*] Previous page

Go to full version