• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Help me with one script!

breispodeu

Mapper/Scripter/C++ Programmer
Joined
Jul 25, 2009
Messages
80
Reaction score
5
GitHub
lucasoares
Hello guys..

Have three items(A, B and C), and I need to do the following:

Someone use one item(A) (top item in one ground position) in some item(B) on his backpack.
The item(B) is taken from he and appears on the ground(where the item(A) is), with all its attributes (I will change the name, attack, etc of item and want to keep these attributes).
The third item (C) appears above the item (B).
When other player or himself uses the item (C), the item (B) appears in their backpack with all attributes. The item (C) is replaced by the item (A).
This will be a "loop", if some1 wants to do the same thing, will be possible.

I don't know how to use thing's function, how to add item.Ex in ground with all attributes and how to give to some player again..

Please help me, you don't need to make the script and post here(if u want, you're welcome kkk), just explain me how to work with necessary functions

Thanks
 
Last edited:
Hello, you use that bot?
I recognize most part of bbot then ... with bbot to give the function to return items to players, or esoclher the bag for the item to go, is the part of lotting. reminding software 100% AFK is illegal.

Keep in mind that the use of third-party software to control at least one character while you are connected to other characters will always mean that you are idle for at least one of them as you can not actively play on multiple characters at the same time. In such situations, all the characters that you are connected is violating the rules.
 
so the player got 3 items a , b , c
all in his backpack , right?
he need to drop (a) item on tile with action id xxx
when he used item (a) it's disappeared and item (b) removed from his backpack and dropped in the same tile with the same Action id xxx

but I miss this part about attribute
u mean like item (a) is a sword (attack&defense : 7)
item (b) is a club (attack&defense :7)
u mean with attribute the new item (c) is an axe (attack&defense : 14 or 7) ?
 
Can you give item examples instead of A, B and C? Should this be for more items or only those 3?
And which attributes are you talking about?
 
Attributes: Name of item, attack, defense, description, armor, etc.. In my server, you can change this attributes with some in-game features. Ex. of what I want:

Will have one ground with one aid. When one player use the ground, the item A appears above the ground.
The item A will be any usable item, for use then in player equipments (like a rope, or shovel, or one weapon)
The item B is any other item. For this example I will my own Demon Sword (atk: 90 def: 40). This sword, for example, has the same itemid of one magic sword but with diferents attributes (Name, attack and defense in this case).
When I use the item A in the Demon Sword, the sword will appear in ground, the item A will be deleted and another item C will appear above.
Item C will be the item with id "8047". When you look this item, is the same to be looking for the first item below in the floor.
When some player use the item C, the Demon Sword will appear in his backpack, with all changed attributes. (is one magic sword, for example, but with other name etc etc)
After this, the item C will be deleted and the ground will receive the first aid again.

Could understand?
 
Back
Top