Jump to content

[Lua] Клещи кузнеца под каждый слот


Lua
 Share

Recommended Posts

  • Editor

Всем привет, хочу поделиться с вами реализацией клещей кузнеца под каждый слот.

image.png

 

Первое, что нам понадобиться это добавить проверку на ID клещей, находим функцию can_getstone_item_main( Table ),

она находиться в файле forge.lua, нам необходимо добавить диапазон используемых клещей:

Hidden Content

    To view, authorization is required.

Затем заменим функцию getstone_item ( Table )  на:

Hidden Content

    To view, authorization is required.

Вот и все, теперь клещи с ID 1020, 1021, 1022 - работают по слотам.

  • Like 1
Link to comment
Share on other sites

😅 i will write this in english so some people can use it 
first in such a code you will face 2 problems in general 
as it above server will take your cash and do not extract anything if one of slots had empy socket so to solve such a problem you should do like this 
 

Hidden Content

    To view, authorization is required.


*second issue you may face if you want to make normal blacksmith to extract all slots not only slot one 

*Third issue you will have small dupe if you have stack gems slots same as co files etc 

how ever this small fix for these issues >find in attachment 

 

Hidden Content

    To view, authorization is required.

Edited by mkhzaleh
  • Like 2
Link to comment
Share on other sites

I don't know why using this doesn't work, I still get a level 1 gem.

Hidden Content

    To view, authorization is required.

so I replaced it with this, and it worked.

Hidden Content

    To view, authorization is required.

 

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
 Share

Board Life Status


Board startup date: May 27, 2020 20:35:04
×
×
  • Create New...