• 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. Unknown Soldier

    [TFS 1.4.2] Boss Reward Bag - onDeath (with DamageMap)

    Change whole code from line: if player:addItemEx(bag) ~= RETURNVALUE_NOERROR then till the end of the script, or just paste whole script: local creatureName = "orshabaal" local timeCounterStorage = 66666 local delayTimer = 30 --in seconds local bagId = 1993 local mailboxPos = Position(1993...
  2. Unknown Soldier

    [TFS 1.4.2] Boss Reward Bag - onDeath (with DamageMap)

    Well, okay, then maybe local depot = player:getDepotChest(depot id) depot:addItemEx(bag) Cannot test it now though, seems too simple
  3. Unknown Soldier

    [TFS 1.4.2] Boss Reward Bag - onDeath (with DamageMap)

    Try changing: doSetItemText(label.uid, player:getName()) To doSetItemText(label.uid, player:getName() .. "\n" .. player:getTown()) Or doSetItemText(label.uid, player:getName() .. "\nThais") And no, I won't do version without a parcel as it cannot be done in lua in TFS 1.4.2, as far as I know.
  4. Unknown Soldier

    [TFS 1.4.2] Boss Reward Bag - onDeath (with DamageMap)

    Strange... Well, try placing the parcel directly into the players' inbox, like @Fjorda said, or just make sure, that the mailboxPos has the exact coordinates of mailbox on the map (Item id 2593 for example). For me, adding the bag directly info the mailbox didn't work, and I wish it would...
  5. Unknown Soldier

    [TFS 1.4.2] Boss Reward Bag - onDeath (with DamageMap)

    Hello everyone, I want to share a script that gives reward bag to all the players participating in fight against boss. The reward will be sent automatically as soon as boss dies, to players' inventory, or when no cap or space, will be sent to players' mailbox. It features: any player who has...
  6. Unknown Soldier

    TFS 1.X+ Training weapons used directly from players store inbox

    Thanks to you I was able to improve the script and basically solve ths issue that I had starting this thread :) local skills = { --shields [41860] = {id=SKILL_SHIELD,voc=4}, -- KNIGHT [41861] = {id=SKILL_SHIELD,voc=4}, -- KNIGHT [41862] = {id=SKILL_SHIELD,voc=4}, -- KNIGHT...
  7. Unknown Soldier

    TFS 1.X+ Training weapons used directly from players store inbox

    You rebuilded it completely, respect. Using from store inbox is working, but in my case the training now looks like this: Kinda funny ^^ It is rather a walkaround than a solution, you might try something like this to remove the wepons from store inbox: use with -> dustbin if...
  8. Unknown Soldier

    The Unknown | Mapping Thread

    Some of the recent works [297] [298] [299] [300] [301]
  9. Unknown Soldier

    TFS 1.X+ Training weapons used directly from players store inbox

    Hello, After few failed trials, I give up. I would want to change the exercise training script so that it would allow players to use the weapons BOTH from their store inbox right away, without a need of moving them into inventory first, and preserve the ability to use them from the backpack in...
  10. Unknown Soldier

    TFS 1.4.2 onMoveItem does not react?

    Haha, what the heck? 😅 Now, just pasting your script - it doesn't work for me, unless I remove -11 from brackets, then I cannot move the item on the ground, but I CAN take it into inventory (bag/backpack). Today I spent like 2 hours to find a way to prevent items from being taken into...
  11. Unknown Soldier

    TFS 1.4.2 onMoveItem does not react?

    One more thing you can try to do is writing the same or similar code in player.lua directly. function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) if item:getActionId() == 6000 then return RETURNVALUE_NOTPOSSIBLE end...
  12. Unknown Soldier

    TFS 1.4.2 onMoveItem does not react?

    And how your method onMoveItem in player.lua looks like? Can you paste it?
  13. Unknown Soldier

    TFS 1.4.2 onMoveItem does not react?

    Nope, i didnt change sources, only the script. Well, check if the item has the action id from array and it should work. No idea why it doesnt, it looks pretty straightforward 🤷‍♂️ Edit @Mateus Robeerto go to events.xml and set it to "1" <event class="Player" method="onMoveItem" enabled="1" />...
  14. Unknown Soldier

    TFS 1.4.2 onMoveItem does not react?

    Try this: local ids = {9999, 6000} local ec = EventCallback ec.onMoveItem = function(self, item, count, fromPosition, toPosition, fromCylinder, toCylinder) if table.contains(ids, item:getActionId()) and toPosition.x ~= CONTAINER_POSITION then...
  15. Unknown Soldier

    TFS 1.X+ Kill task error in function onKill

    Alright, seems to be working nicely, the problem must have been with my NPC file where I changed some stuff since posting this thread, because it is working nicely now :) Thanks for you time!
  16. Unknown Soldier

    TFS 1.X+ Kill task error in function onKill

    It certainly looks much more professional, but somehow it refuses to count the kills, but I'll take a look at this later, as I don't have that much time and I rather think slowly while scripting :rolleyes: Besides, I have added 2 checks in order to prevent party abusing (both working fine), if...
  17. Unknown Soldier

    C++ Knights Taking too Much Damage

    You adjust the formulas in vocations.xml, no need for source changes. <formula meleeDamage="0.9" distDamage="0.9" defense="0.8" armor="0.8" />
  18. Unknown Soldier

    TFS 1.X+ Kill task error in function onKill

    Thank you both, you are both right :) Absolutely right, I moved it to the top as you did, thank you for the suggestion. At this point I just watned it to work, but now I can focus on improving it further. The server is in development, so this script can be changed basically with no limits.
  19. Unknown Soldier

    TFS 1.X+ Kill task error in function onKill

    Hello, I am out if ideas so decided to ask. TFS 1.4.2 While doing a task, ocasionally console error shows up Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/killtasks.lua:onKill data/creaturescripts/scripts/killtasks.lua:24: attempt to index local 'monster' (a nil...
  20. Unknown Soldier

    TFS 0.X [HELP PLEASE] Monster does not turn into a dead body crashes the server and gives ocnsole errors

    My guess would be a brain damage. Read what people write, process that and apply if you want the result and comunicate, write words ffs... or at least paste errors...
Back
Top