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

    C++ monster:setPet(true)

    I just need two functions: setPet(true) -- pet is just a flag that I use internally to monsters walk on pz zones, be teleported to the master when it is away, or down stair etc setConvinceable(true) @sirakx sorry but I couldn't understand you, my spanish is bad, but the general I understood, but...
  2. silveralol

    C++ monster:setPet(true)

    can explain why not? @Static_
  3. silveralol

    C++ monster:setPet(true)

    hello folks, I'm wondering if is possible set monster flags to monsters with lua exemple: local monster = Game.createMonster('rat', Position(x, y, z), true, true) if monster then monster:setAttackable(true) -- that line means <flag attackable="1"/> end so if is possible, how I should do it?
  4. silveralol

    Lua onMoveItem - players can hold only ONE item

    edit, i'm compiling it ... @River KA it work, thank you very much <3 also thanks for the another guys that help with something
  5. silveralol

    Lua onMoveItem - players can hold only ONE item

    got an error data/events/scripts/player.lua:Player@onMoveItem data/events/scripts/player.lua:39: attempt to compare nil with number stack traceback: [C]: in function '__le' data/events/scripts/player.lua:39: in function 'isContainerOwner'...
  6. silveralol

    Lua onMoveItem - players can hold only ONE item

    it return an error... data/events/scripts/player.lua:Player@onMoveItem data/events/scripts/player.lua:37: bad argument #2 to 'band' (number expected, got nil) stack traceback: [C]: at 0x7ff7136d1390 [C]: in function 'band' data/events/scripts/player.lua:37: in function...
  7. silveralol

    Lua onMoveItem - players can hold only ONE item

    TFS 1.2/3 @whitevo bro, test like that: player have a ball in the inventory try move to inside of the depot another ball see the results... try move balls from different map positions to the backpack of the player that already is carrying one ball, here it is weird, if you want I can make a...
  8. silveralol

    Lua onMoveItem - players can hold only ONE item

    the player can't move to the CONTAINER_POSITION same if it is the depot :/ I need that the players just cannot carry more than one, but be able to move it to the depot or house, seems that I need a source edit also this code seems bugged somewhere, sometimes I can took more than two balls, and...
  9. silveralol

    Lua onMoveItem - players can hold only ONE item

    function removeItem doens't have player as paramter, so how I can get the player ? Lua Script Error: [MoveEvents Interface] data/movements/scripts/others/balls.lua:onRemoveItem data/movements/scripts/others/balls.lua:2: attempt to index local 'player' (a nil value) stack traceback: [C]...
  10. silveralol

    Lua onMoveItem - players can hold only ONE item

    it doens't work @Itutorial, I don't get the point to use player position :eek:
  11. silveralol

    Lua doubt about reward for killing monters not npc

    you can test it: local monsters = { ['Rat'] = {reward = itemid, reward2 = itemid, amountToKill = 100, storage = storageValue, storage = 123}, ['Demon'] = {reward = itemid, reward2 = itemid, amountToKill = 100, storage = 1234}, ['Dragon'] = {reward = itemid, reward2 = itemid...
  12. silveralol

    Lua doubt about reward for killing monters not npc

    yeah, you're correct, just a mess with ">" cuz I took this script somewhere, sry boss but, then... function onKill(creature, target) local targetMonster = target:getMonster() if not targetMonster then return true end if targetMonster:getName():lower() ~= 'your...
  13. silveralol

    Lua doubt about reward for killing monters not npc

    ofc is possible function onKill(creature, target) local targetMonster = target:getMonster() if not targetMonster then return true end if targetMonster:getName():lower() ~= 'your monster(s)' then return true end local player = creature:getPlayer()...
  14. silveralol

    Lua doubt about reward for killing monters not npc

    I guess that he wants creaturescript with onAdvance(to give reward at lvl 100) and onKill (to give reward when the player kill 100 monsters) is just a storage counter how much monsters the player had killed, if the number is >= 100 then give reward to player
  15. silveralol

    Lua onMoveItem - players can hold only ONE item

    @Xikini fromPosition.x is = CONTAINER_POSITION or Tile... fromPosition.y is = CONST_ANYSLOT... did not tested it yet, could give some exemple
  16. silveralol

    [USA] TALEON 11.00 (ANTI-BOT) - OPEN REG

    it seems like somebody has a little envy of the success of this otserver :rolleyes:
  17. silveralol

    Lua onMoveItem - players can hold only ONE item

    hello folks, I'm trying make players can carry just ONE item... so I try it: if item:getTopParent() ~= self and item:getId() == ITEM_ID then if player:getItemCount(ITEM_ID) >= 1 then self:sendCancelMessage('You cannot hold more balls.') end end but using it I...
  18. silveralol

    Psychonaut's Free Scripting Service [TFS 1.x]

    @psychonaut about the "Sokoban Game", how we can do it in different levels, without set the positions, instead of using positions declared in variables we could use ids of the "correct spots", we just need set the pos of the crates, so, can help me with that?
  19. silveralol

    Lua how use string to get different informations

    I made a video to show how this shit works fine, ofc that had to do alot of stuff to make it more "complete" and is still missing something as when you logout need to save the summon health, but atm, I forget to do in the video but when you call back the pet it save its "health now"
  20. silveralol

    Lua how use string to get different informations

    holy shit, it works, thank you very much :3
Back
Top