Jump to content

Recommended Posts

Posted

Ok. I playing witht IG Walker and i want to creat Collect Spores quest.

 

But I don't now how stop the bot then it collect 10 spores. There is my scripts. Please help me and edit the script for playing.

 

 

 

Label(Begin)

 

{

 

NPCSEL(Herbiel)

 

DELAY(1000)

 

NPCDLG(Herbiel)

 

DELAY (1000)

 

DLGSEL(Quest)

 

DELAY(1000)

 

DLGSEL(Ask about the studies)

 

DELAY(1000)

 

DLGSEL(Say you will take the job)

 

}

 

MOVETO(43164,49957,-2976)

 

MOVETO(43402,50958,-2992)

 

MOVETO(40273,52953,-3288)

 

MOVETO(39625,58853,-3632)

 

MOVETO(35130,68749,-3616)

 

 

 

SET(FIGHTSTART)

 

 

 

 

 

SET(FIGHTSTART)

 

LABEL(Fungus Sac)

 

{

 

ITEMCOUNT(Fungus Sac[iD=1118],<,10)

 

CALL(Fungus Sac)

 

}

 

 

 

SET(FIGHTSTOP)

 

 

 

MOVETO(35130,68749,-3616)

 

MOVETO(39625,58853,-3632)

 

MOVETO(40273,52953,-3288)

 

MOVETO(43402,50958,-2992)

 

MOVETO(43164,49957,-2976)

 

MOVETO(42767,50173,-2976)

 

Label(Begin)

 

{

 

NPCSEL(Herbiel)

 

DELAY(1000)

 

NPCDLG(Herbiel)

 

DELAY (1000)

 

DLGSEL(Quest)

 

}

 

Posted

WEll i dont know quite where to start here for you but....

 

 

 

It helps to understand that the format for Itemcount() is like this:

 

 

 

ITEMCOUNT(Fungus Sac[iD=1118],<,10)

 

{

 

CALL(Fungus Sac)

 

}

 

 

 

Which means it is a conditional statement, and will run everything inside of it meets the condition....

 

 

 

SO, what i would do is tell it to continue fighting (a loop that keeps call it's self) untill there is 10. So you need a conditional statement that looks for there to be more than 9 that then forwards it to your label that is set up to do set(fightstop) and go back to town/talk to npc, get stuff, and then restart the whole process over again.

  • 1 year 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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..