• 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. 2Rec

    Remove Item in use problem

    Remove local item.
  2. 2Rec

    Remove Item in use problem

    Nope. The exact one i posted. function onUse(cid, item, fromPosition, itemEx, toPosition) local kame = {lookType = 360} doPlayerSetVocation(cid,286) doCreatureChangeOutfit(cid, kame) doRemoveItem(item.uid, 1) doRemoveCreature(cid) return true end
  3. 2Rec

    Remove Item in use problem

    doRemoveItem(item.uid, 1)
  4. 2Rec

    Lua need a little help with create random items in random positions

    Lost 4 box could land in protection zone or house, but script broadcasts fixed value on the start wich is itemsrand, but should broadcast created items at the end instead. Guess "posy" is your "pos" table. And what do you store in there are all positions of a map? If its some unique item you...
  5. 2Rec

    TFS 1.X+ Few questions - housing

    Post solutions for the first 2.
  6. 2Rec

    item casting spells

    'Here' means where? Post your code.
  7. 2Rec

    Lua NPC Won't Respond (TibianTime Nil)

    Like i said, go to the server data you copied files from and search the folder for missing function. You can copy them to global.lua. If there are whole lib files you can copy them all somewhere to lib folder and then you edit data/lib/lib.lua and add new 'dofile()' lines with directories.
  8. 2Rec

    item casting spells

    One way is to script it as action, another is to make something like player:castSpell() function, but this one requires source edits. Anyway, weapons are usually 'Use with...' items, so i guess you'll have to use them on something first to make it work.
  9. 2Rec

    Lua NPC Won't Respond (TibianTime Nil)

    That's why you should state what server version are you using and what you did before it broke in your very first post. You've probably copied a part of a data from one distro to another, because you are missing functions. Swap your npcsystem for the one that is originally on TFS you are using...
  10. 2Rec

    2rec//Mapping thread

    Cavern --- ---
  11. 2Rec

    Trying to make a spider

    That's a one clickbait title...
  12. 2Rec

    Ochmar, 0 - 365

    Your best sprite so far imo.
  13. 2Rec

    TFS 1.X+ broadcast talkaction possible to tutor without changing flags

    Because <= is 'lower or equal', so if player has group id 2 then it wont work. (because it equals 2)
  14. 2Rec

    TFS 1.X+ broadcast talkaction possible to tutor without changing flags

    if player:getGroup():getId() < 2 then return true end (assuming tutor is group 2) instead of if not player:hasFlag(PlayerFlag_CanBroadcast) then return true end //btw. this one's basic. you could learn to do something like this at least.
  15. 2Rec

    TFS 1.X+ cloud of thought / dialogue NPC

    Yeah, i know. Guess the dev took a bad shortcut.
  16. 2Rec

    TFS 1.X+ cloud of thought / dialogue NPC

    Delete this part, up to the next 'end'. malucooo/otxserver-new
  17. 2Rec

    Solved "He is a Tutor" onLook tfs 1.2-1.3

    Oh, i see. Then we should also check if group doesnt have access then. Should do the trick i guess.
  18. 2Rec

    Solved "He is a Tutor" onLook tfs 1.2-1.3

    Since most people have more groups and not every character is a male: if thing:getGroup():getId() > 1 and not thing:getGroup():getAccess() then if thing:getSex() == 0 then description = string.format("%s\nShe is a %s.", description, thing:getGroup():getName()) else description =...
  19. 2Rec

    Lua Displaying amount that potions gives

    Give a best answer to @Acubens. He did the same thing at a very beginning, you just wasnt paying attention.
  20. 2Rec

    Lua Displaying amount that potions gives

    Change to target. Is it one message that says both mana and 'Aaah'?
Back
Top