Re: Rock5's craftItem function
Posted: Fri Sep 09, 2011 9:19 am
Hm.. It's possible the version I updated was not the same as the original 1.21. Could someone who still has version 1.21 post it please.
Code: Select all
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
**************************************************************]Crafting -196502
Redwood Timber
[b]Failed to craft. Make sure you are near the correct crafting tools.[/b]
Moving to waypoint #31, (-371, -6444)
Use MACRO: DRUID_CONCENTRATION_=> <UNKNOWN> (1000/1000)
Clearing target.
Moving to waypoint #32, (-352, -6386)
Moving to waypoint #33, (-349, -6338)
Moving to waypoint #34, (-361, -6290)
Id 1041733529 not found
Id 1041854735 not found
Id 1023945526 not found
Id 1041709479 not found
Id 1053108388 not found
Id 1041896550 not found
Id 1051350324 not found
Id 1041810131 not found
Id 1041866712 not found
Id 1041733529 not found
Id 1041854735 not found
Id 1023945526 not found
Id 1041709479 not found
Id 1053108388 not found
Id 1041896550 not found
Id 1051350324 not found
Id 1041810131 not found
Id 1041866712 not found
Id 1041733529 not found
Id 1041854735 not found
Id 1023945526 not found
Id 1041709479 not found
Id 1053108388 not found
Id 1041896550 not found
Id 1051350324 not found
Id 1041810131 not found
Id 1041866712 not found
Moving to waypoint #35, (-426, -6170)
Moving to waypoint #36, (-532, -6052)
Moving to waypoint #37, (-593, -6010)
Moving to waypoint #38, (-697, -5971)
Moving to waypoint #39, (-878, -5919)
Go to sleep at 09/12/11 00:21:48. Press Delete to wake up.
Awake from sleep after pressing Delete at 09/12/11 00:21:55.
Moving to waypoint #1, (-910, -5904)
Moving to waypoint #2, (-1015, -5970)
Moving to waypoint #3, (-1073, -5987)
Moving to waypoint #4, (-1157, -6002)
Moving to waypoint #5, (-1256, -6020)
Moving to waypoint #6, (-1310, -6047)
Moving to waypoint #7, (-1335, -6078)
Moving to waypoint #8, (-1377, -6157)
Crafting 852 Dusk Orchid Bundle
23076% [************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
**************************************************]Crafting -195758 Dusk Orchid
Bundle
Failed to craft. Make sure you are near the correct crafting tools.
Moving to waypoint #9, (-1345, -6102)
Use MACRO: DRUID_SAVAGE_BLESSIN=> <UNKNOWN> (1000/1000)
Use MACRO: DRUID_CONCENTRATION_=> Reincarnated (1312/1312)
Use MACRO: WARDEN_BRIAR_SHIELD => Reincarnated (1312/1312)
Clearing target.
Moving to waypoint #10, (-1302, -6045)
Moving to waypoint #11, (-1255, -6026)
Moving to waypoint #12, (-1191, -6014)
Moving to waypoint #13, (-1116, -6014)
Moving to waypoint #14, (-1002, -6025)
Moving to waypoint #15, (-936, -6054)
Moving to waypoint #16, (-847, -6106)
Moving to waypoint #17, (-767, -6142)
Moving to waypoint #18, (-724, -6149)
Moving to waypoint #19, (-656, -6143)
Moving to waypoint #20, (-641, -6147)
Moving to waypoint #21, (-623, -6198)
Moving to waypoint #22, (-596, -6240)
Crafting 458 Dark Crystal Sand
42927% [************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
******]
Code: Select all
craftItem("ndel", "all"); -- Kraeuter bis gruen
craftItem("sand", "all"); -- Sand bis gruen
Code: Select all
craftItem(201727, "all"); -- Dunkelkristall-Klumpen
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
-- Piieeep! ----
function beepwhispers()
repeat
local time, moreToCome, name, msg = EventMonitorCheck("Whispers", "4,1")
if time ~= nil then
printf("\a\a\a");
end
until moreToCome ~= true
end
EventMonitorStart("Whispers", "CHAT_MSG_WHISPER");
registerTimer("beepwhispers", secondsToTimer(5), beepwhispers)
-- end of beepwhispers ---
</onLoad>
<!-- # 1 wir kommen herein -->
<waypoint x="22" z="11" y="0">
</waypoint>
<!-- # 2 wir stehen am Alchemietool wir machen alles auf Bündel, Wir machen die Säfte die wir wollen--><waypoint x="-20" z="52" y="0">
craftItem("ndel", "all"); -- Kraeuter bis gruen
craftItem(201806, "all"); -- Frevler-Hand-Saft
craftItem(550115, "all"); -- Dmmerorchideen-Saft
</waypoint>
<!-- # 3 wir stehen am Holztool-->
<waypoint x="-42" z="28" y="0">
</waypoint>
<!-- # 4 wir stehen am Amboss -->
<waypoint x="47" z="23" y="0">
craftItem("sand", "all"); -- Sand bis gruen
craftItem(201727, "all"); -- Dunkelkristall-Klumpen
</waypoint>
<!-- # 5 wir stehen doof in der ecke 1000 = 1 sekunde ergo 60000 für ne minute -->
<waypoint x="53" z="66" y="0">
yrest(300000);
yrest(300000);
yrest(30000);
</waypoint>
</waypoints>
Code: Select all
craftItem(550015, "all"); -- Dunkelkristall-Klumpen
•_itemNameOrGUID - The name of the item, or part of it, you want to craft. Or the GUID of the item. The GUID is the id of the recipe.
Code: Select all
Command> craftItem("aft","all")
Crafting 12 Bergteufelgras-Saft
onLoad error: ...rom/userfunctions/loadsvn/userfunction_craftitem.lua:63: attemp
t to compare number with nil
Command>
Just create a list of items you want to create and then crate them one at a time. The tools you need to do this are already provided.Schwertseele wrote:That's a great idea! Is there a way that there is a "list" of items? So you can create several stuff one after one? Useful for leveling crafting skills. =)
Btw, your scripts and userfunctions ROCK!