• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run
Milk and Cookie Dispenser

Milk and Cookie Dispenser 1.0

Updated: 2-23-2018

got back to this changed a few things, now it runs better and it should work properly

Rich (BB code):
#turbo

Sub Main
    /declare WelcomeStr string \ay Food.mac - \ag Dispensing :
    /declare EndStr string \ay Food.mac - \ag We have enough
    /declare i int local
    /declare ii int local

|---Edit these to fit your dispensing needs---------------

    /declare Food[2] string outer NULL
    /varset Food[1] Warm Milk Dispenser|Warm Milk|10
    /varset Food[2] Fresh Cookie dispenser|Fresh Cookie|10

|---Syntax : ItemToClick|WhatIsDispensed|AmountYouWant---

    /for i 1 to ${Food.Size}
        /varset WelcomeStr ${WelcomeStr}\a-w ${Food[${i}].Arg[2,|]}
        /if (${i} != ${Food.Size}) /varset WelcomeStr ${WelcomeStr}\ag,
    /next i
    /varset WelcomeStr ${WelcomeStr}\ag Please Hold
    /echo ${WelcomeStr}

:Loop
    /for i 1 to ${Food.Size}
    /if (${FindItem[${Food[${i}].Arg[2,|]}].Stack} <${Food[${i}].Arg[3,|]}) {
        /if (${Me.ItemReady[${Food[${i}].Arg[1,|]}]}) /casting "${Food[${i}].Arg[1,|]}|item"
        /delay 5s !${Me.Casting.ID}
        /delay 2
        /autoinventory
    }
    /next i
    /for ii 1 to ${Food.Size}   
        /if (${FindItem[${Food[${ii}].Arg[2,|]}].Stack} <${Food[${ii}].Arg[3,|]}) {
        /goto :Loop
        }
    /next ii
   
    /goto :Exit

:Exit
    /for i 1 to ${Food.Size}
        /varset EndStr ${EndStr}\a-w ${Food[${i}].Arg[2,|]}
        /if (${i} != ${Food.Size}) /varset EndStr ${EndStr}\ag,
    /next i
    /varset EndStr ${EndStr}\ag For now.
    /echo ${EndStr}

/return
Author
kaen01
Watchers
23
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from kaen01

Share this resource

Back
Top
Cart