Jump to content

Simelting and Blacksmith


sakado

Recommended Posts

I need a chained profile that will automatically gather ores and, after reaching a certain quantity, process them at a smelting location and create items at a Blacksmith. At the very least, if this is not possible, having a processing module when reaching the smelting and Blacksmith locations would suffice. How can I accomplish this?

Link to comment
Share on other sites

4 minutes ago, Nax said:

Evet, biraz lua / C# ile oldukça basit. Bir şans vermeli ve bir hata bulursanız yardım istemelisiniz.

I haven't started right now, I want some help if I can start smelting, the rest seems easy, only this code is needed.

Link to comment
Share on other sites

26 minutes ago, Nax said:

Evet, biraz lua / C# ile oldukça basit. Bir şans vermeli ve bir hata bulursanız yardım istemelisiniz.

do you think this could be it?

""""

function Smelt() local smeltingItemID = ?????? local smeltingSpellID = ?????

if IsSpellKnown(smeltingSpellID) then

if HasItem(smeltingItemID) then

if IsInZone("SmeltingZone") then UseItem(smeltingItemID) CastSpellByID(smeltingSpellID)

end

end

end

end

function OnTick(event, ticks)

if event == "??????" then

smelt()

end

end

RegisterEvent("OnTick", OnTick)

"""""

I'm a bit of a beginner, I don't know how to integrate

Link to comment
Share on other sites

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