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

Search results

  1. D

    [SOLVED] Compare files

    Hello all, I want to open a LUA script with LUA (so obvious), then encrypt it with my own hash and compare it with a file. It's something similar to a security system.. Thanks
  2. D

    Solved Problem with string/table...

    Well, I'm getting a value from XML: "{1, 2, 3, 4, 5}" I want to have it as a table like this: {1, 2, 3, 4, 5} How can I do that? How can I delete those symbols? (" ") Im getting it with a string:match... Thank you... Sorry for bad english...
  3. D

    Solved [LUA] How to get all items with id on inventory

    I know that if you use this: getPlayerItemById(cid, deepSearch, itemId[, subType]) You get the first item on inventory with a certain id... I want to get ALL the items on inventory with a certain id... How I do that? Please help!
  4. D

    Solved Cancel onAdvance Message

    Well, normally, when you advance level, skill or mag level, there appear a message that says: You have advanced from 25 to 26 shielding. Or something like that depending on skill.... However, I want to know if it's possible to cancel (or replace) it when player has 'x' storage...
  5. D

    [Sources] Function onGainExperience

    If someone could help me with this function, I will be very greatful.... I think the function's parameters should be cid & amount.... Thanks in advance, Dantarrix ------------------------------------------------ Sorry, find the solution: http://otland.net/f35/creatureevent-ongainexp-123221/
  6. D

    Lua [Spells] How to add to them Absorb Percents

    Hi OTLanders! I'm here to ask you: How I can make spells that if someone attacks me, for example, with fire, the spell will absorb a percent of this damage? Like the attribute on items.xml absorbpercent.... Thank you very much... P.D.: If it needs some C+ edit, can someone please...
  7. D

    [LUA] My scripts isnt working :S

    Well, I made this script a few days ago: local monsters = { ["demon"] = {item = 2160, cant = 2, chance = 70}, ["rat"] = {item = 2160, cant = 2, chance = 10}, ["cyclops"] = {item = 2160, cant = 2, chance = 30}, ["dragon"] = {item = 2160, cant = 2, chance = 55}, ["rabbit"] = {item = 2160, cant =...
  8. D

    [ModernAAC] How to add Spoiler on my web page?

    Well, I want to add some spoilers in one page of my OT's web page, but I don't know how... If someone could help me please, I will be very grateful, thanks...
  9. D

    How to make Pop Up with images...

    I want to do this: So a Pop Up may show images of Tibia.pic This is one of tibia.pic's images: Hope you can help me... ^^
  10. D

    How to make a player to walk to "x" position?

    Well, I want to make a player to walk automatically to a certain position... I think I need to use doMoveCreature... But I dont really know how to use it, I only have a vague idea... So, if someone can teach me... I will be very grateful... Thanks
  11. D

    [DataBase] How to make a column depending on another 2...

    Well, now I want to know how to make a "c" table depending on "a" and "b" table... So "a" + "b" = "c" Or "a" - "b" = "c" Or ("a" + "b")/2 = "c" Or something like that... Thank you...
  12. D

    [Modern AAC] How to add a new option on Highscores...

    Well, i want to add a new options on this, i added a table on my database called football (i have a football level on my server), so i wanted to addn option on "highscores" so let players now who has the best football level.... Here is the highscores.php edited by me, someone can say me what is...
  13. D

    Solved Missing Sample on Modern Account

    Hi OTLanders, Now I need an SQL query to add my missing sample: Rook Sample I need it urgent! Thank you very much ^^
  14. D

    [LUA and DB] Table with decrease value

    Hello OTLanders.... I'm here to ask you a short questions that i think i will have a correct answer until tomorrow... 1. How to add a value to a db table by a script? db.executeQuery("UPDATE ~ ??? 2. How to make that value to decrease while time is passing, only when server is...
  15. D

    Please someone fix and shorten this script

    function onSay(cid, words, param, channel) local param = string.explode(param, ",") local params = { ["temple"] = {x=159, y=387, z=6}, ["depot"] = {x=, y=, z=} } if (param[1] == nil) then doPlayerSendCancel(cid, "You need to specificate a place or coordinates.") return true...
  16. D

    Player Flags

    Is there any way to add or remove flags or custom flags to player by lua scripts? Like I want the player when reach level 500 to have flag to push all creatures, i can add it with a script onAdvance... xD
  17. D

    [LUA Function] Raise Loot

    If someone could help me with an idea... I want to make a function to change the rate of the loot that players get, only a function like setPlayerRateLoot(cid, amount)..... I've tried editing Cykotitan's Loot Ring mod, but I couldn't make it.... Here it is if you want to see: ?xml...
  18. D

    [FIXED] New if sentence in Spell Books...

    How to add in spellbooks.lua, the requirement if isVip(cid) to show some spells....?: Spellbook.lua: function onUse(cid, item, fromPosition, itemEx, toPosition) local t = {} for i = 1, getPlayerInstantSpellCount(cid) do local spell = getPlayerInstantSpellInfo(cid, i) if(spell.level...
  19. D

    Some things that i want to know about LUA...

    1. What does this line means?: setConditionParam(condition, CONDITION_PARAM_SUBID, 99) 2. What is the difference between for i = 1, 3 do doPlayerAddItem(cid, 2160, i) end and for i = 1, 3 do doPlayerAddItem(cid, 2160) end * Will add more later...
  20. D

    Check what type of floor it is...

    I want to know how, by scripts, i can check if a floor is a no-pvp zone or pvp zone or other.... Thank you in advance...
Back
Top