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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...