• 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!

Search results

  1. Helliot1

    Lua How to select a Widget?

    Bump
  2. Helliot1

    Lua How to select a Widget?

    When you click on a spell, need that fill a variable "x" with their values, because I'll load it on my hotkeys window... Example, I click on the second spell "Light" then need fill my variables "varNome , varCasting , varMana , varMagic" with their values that are "Light, Instant, 20, "1"
  3. Helliot1

    Lua How to select a Widget?

    Hi guys, I have a doubt with "g_ui.createWidget".. I create a widget to show some spells (name, mana, magic level)... But when I select a spell, I want that fill a variable with their values (name, mana, magic level).. How I can do it? LUA warrior = { None = { nome = "None"...
  4. Helliot1

    Lua How shorten this Lua?

    It's a string, not a Widget Why it's not a string?
  5. Helliot1

    Lua How shorten this Lua?

    Sorry :( onHotkeyClicada is the last hotkey clicked, like spellsF1 or until spellsF12
  6. Helliot1

    Lua How shorten this Lua?

    Thank you guys!!! Helped me a lot. But loadstring didnt work. EDIT: I tried it on another function, but why spellsValue didn't work? local keys = {F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12} for i = 1, #keys do local spellsValue = "spells" .. keys[i] if onHotkeyClicada ==...
  7. Helliot1

    Lua How shorten this Lua?

    Hello!! How I can shorten this lua function? function resetHotkeys() spellsF1:setImageSource() spellsF1:setText('F1') spellsF2:setImageSource() spellsF2:setText('F2') spellsF3:setImageSource() spellsF3:setText('F3') spellsF4:setImageSource() spellsF4:setText('F4')...
  8. Helliot1

    Bow Attack

    I made a mistake. There was no need to change anything in the sources. My arrow on items.xml was wrong.
  9. Helliot1

    Bow Attack

    Yea, but first I need change this formula. I tried to change "WEAPON_AMMO" for "WEAPON_DISTANCE" or exclude this line "int32_t attackValue = item->getAttack();" but it didn't works
  10. Helliot1

    Bow Attack

    In Tibia the bow is calculated by the arrow attack. But I wanted the bow to be calculated by the bow attack, not the arrow. Found this on weapons.cpp (otxserver3 8.60), I think I have to change something here in this formula. But I'm still trying to read what it is. int32_t...
  11. Helliot1

    Bow Attack

    Hello, I wonder how I can put attack on a bow, like sword/axes/clubs... I tried this, but don't works... <item id="1541" article="a" name="bow"> <attribute key="attack" value="120" /> <attribute key="defense" value="0" /> <attribute key="weaponType" value="distance" />...
  12. Helliot1

    addAnimatedText Formula Error

    Thanks oen432, it works now!! :)
  13. Helliot1

    addAnimatedText Formula Error

    I forgot to say, I'm using 8.6 client
  14. Helliot1

    addAnimatedText Formula Error

    Hello, Trying to add an animated text when I use some potion, but it don't work. I'm using OTX3 8.6, and found this function on this website: otxserver-luascript if potion.mana then manaToAdd = math.random(potion.mana[1], potion.mana[2]) doPlayerAddMana(player, manaToAdd)...
  15. Helliot1

    Lua Paid Service

    Can someone who is experienced in Lua help me? I need help with a simple script in OTClient. And I will pay for it. Leave your Discord here, or send me a DM.
  16. Helliot1

    OTClient Mouse Right Button

    Hello guys, I'm trying to create a function to set a text when I press right mouse in a button but I don't have any successful, somebody can help me? I don't get any errors, and my function doesn't work This is my function: spellsF1 = nil spellsF1 = gameRootPanel:getChildById('spellsF1')...
  17. Helliot1

    attempt to index local 'item' (a nil value)

    I need change this function, right? function getItemPrice(item, single) local amount = 1 local single = single or false if not single then amount = quantityScroll:getValue() end if getCurrentTradeType() == BUY then if item.ptr:isStackable() then return item.price*amount...
  18. Helliot1

    attempt to index local 'item' (a nil value)

    This is just the original archive.. How I said I am editing my NPC module, removing some functions and adding others. And when I sell an item, I get this error. ERROR: protected lua call failed: LUA ERROR: /game_npctrade/npctrade.lua:219: attempt to index local 'item' (a nil value) stack...
  19. Helliot1

    attempt to index local 'item' (a nil value)

    Can someone explain to me what's going on and how can i fix it? I am editing my NPC module, removing some functions and adding others. And when I sell an item, I get this error. ERROR: protected lua call failed: LUA ERROR: /game_npctrade/npctrade.lua:219: attempt to index local 'item' (a nil...
  20. Helliot1

    Npc Lua Error

    Bump
Back
Top