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

    TalkAction Changename in-game

    Try this: local config = { text = "Your name has been changed succesfully.", continue = true, -- Do not change this item = { Id = 1111, count = 1 }, maxTextLenght = 15, blacklistParam = {"god", "cm", "gm", "tutor", "tester"}, newMethod = false, delay = 2 } function onSay(cid...
  2. Ratser

    TalkAction Changename in-game

    local config = { text = "Your name has been changed succesfully.", continue = true, -- Do not change this item = { Id = 1111, count = 1 }, maxTextLenght = 15, blacklistParam = {"god", "cm", "gm", "tutor", "tester"}, newMethod = false, delay = 2 } function onSay(cid...
  3. Ratser

    TalkAction Changename in-game

    Try this: local config = { text = "Your name has been changed succesfully.", continue = true, -- Do not change this item = { Id = 1111, count = 1 }, maxTextLenght = 15, blacklistParam = {"god", "cm", "gm", "tutor", "tester"}, newMethod = false, delay = 2 } function...
  4. Ratser

    TalkAction Changename in-game

    Before or after the name? There's nothing to do about the second error, unless you want me to put a mininum letter check for each word.
  5. Ratser

    TalkAction Changename in-game

    What error? local config = { text = "Your name has been changed succesfully.", continue = true, -- Do not change this item = { Id = 1111, count = 1 }, maxTextLenght = 15, blacklistParam = {"god", "cm", "gm", "tutor", "tester"}, newMethod = false, delay = 2 } function onSay(cid...
  6. Ratser

    TalkAction Changename in-game

    local config = { text = "You will be kicked in 2 seconds.", continue = true, -- Do not change this item = { Id = 1111, count = 1 }, maxTextLenght = 15, blacklistParam = {"god", "cm", "gm", "tutor", "tester"}, newMethod = false, delay = 2 * 1000 } function onSay(cid...
  7. Ratser

    TalkAction Changename in-game

    This: local itemId, count, maxTextLenght, delay, newMethod = 1111, 1, 15, 2 * 1000, false local blacklistParam = {"god", "cm", "gm", "tutor", "tester"} function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param...
  8. Ratser

    TalkAction Changename in-game

    What's the error? Try: local itemId, count, maxTextLenght, delay, newMethod = 1111, 1, 15, 2 * 1000, false local blacklistParam = {"god", "cm", "gm", "tutor", "tester"} function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE...
  9. Ratser

    TalkAction Changename in-game

    Nooo lol Don't tell me that tiny space in between "/changename" and "the name" is considered. Anyways, I'll come up with a solution tomorrow. I'm tired now. BTW, what if you put /changename"name" without spaces? (If it doesn't works it's because I'm not thinking now lol) Woke up suddenly and...
  10. Ratser

    [9.60/9.61] The Forgotten Server v0.2.14 (Mystic Spirit)

    string.boolean = function (input) local tmp = type(input) if(tmp == 'boolean') then return input end if(tmp == 'number') then return input > 0 end local str = string.lower(tostring(input)) return (str == "yes" or str == "true" or (tonumber(str) ~= nil and tonumber(str) >...
  11. Ratser

    If player dead teleport him to temple

    doCreatureAddHealth(uid, health[, hitEffect[, hitColor[, force]]]) According to the sources, force is used to add HP even if the creature has 0HP (or less)
  12. Ratser

    TalkAction Changename in-game

    If you say so :p But still your script needs to check if the param contains spaces and the beginning or at the end of it. EDIT: Small fix for the position of the last functions. local itemId, count, maxTextLenght, delay, newMethod = 1111, 1, 15, 2 * 1000, false local blacklistParam =...
  13. Ratser

    TalkAction Changename in-game

    If it's on false it's compatible for 0.4 and less If it's on true then it's only for 0.3.7 and higher EDIT: Can someone check if it's necessary to kick the player when using doPlayerChangeName (set newMethod to true)?.
  14. Ratser

    TalkAction Changename in-game

    It should be. This one too (Added config value "newMethod". If it's true then it'll use the new 0.3.7+ function doPlayerChangeName else it'll just use the common db update.): local itemId, count, maxTextLenght, delay, newMethod = 1111, 1, 15, 2 * 1000, true local blacklistParam = {"god", "cm"...
  15. Ratser

    TalkAction Changename in-game

    Does getPlayerGUIDByName checks players who are offline? EDIT: Oh wow I just checked the sources and it does. Thanks.
  16. Ratser

    TalkAction Changename in-game

    This should do it: local itemId, count, maxTextLenght, delay = 1111, 1, 15, 2 * 1000 local blacklistParam = {"god", "cm", "gm", "tutor", "tester"} function onSay(cid, words, param, channel) local text, continue = "You will be kicked in 2 seconds.", true local spaceStart, spaceEnd =...
  17. Ratser

    TalkAction Changename in-game

    Nice but, try this with that script: "/changename [space]blabla"; "/changename blabla[space]" or "/changename [space]" :p EDIT: Wait...that string.gsub(word, " ", " ") is searching for every space on the param...so if you do "/changename About Twenty Percent Cooler" it'll return 3 and so it...
  18. Ratser

    TalkAction Changename in-game

    Remove this part: or (string.find(param, "%s", string.len(tostring(param)) ~= nil)) and try again, I wanna check something.
  19. Ratser

    TalkAction Changename in-game

    Try this: local itemId, count, maxTextLenght, delay = 1111, 1, 15, 2 * 1000 local blacklistParam = {"god", "cm", "gm", "tutor", "tester"} function onSay(cid, words, param, channel) local text, continue = "You will be kicked in 2 seconds.", true if(db.getResult("SELECT `name` FROM `players`...
  20. Ratser

    TalkAction Changename in-game

    Try this. This shouldn't allow more than 1 space. And the "a b c d e f" thing you said is fine. Although you could block 1-worded names but still the Account Manager or AAC allows it...so it would be for nothing. local itemId, count, maxTextLenght, delay = 1111, 1, 15, 2 * 1000 local...
Back
Top