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

    The Unknown | Mapping Thread

    Some of the recent works [297] [298] [299] [300] [301]
  5. 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...
  6. 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...
  7. 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...
  8. Unknown Soldier

    TFS 1.4.2 onMoveItem does not react?

    And how your method onMoveItem in player.lua looks like? Can you paste it?
  9. 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" />...
  10. Unknown Soldier

    TFS 1.X+ cant shoot with SD to invisible monsters

    Dude, just use the script I have provided, I am 100% sure you didnt try it, and used only the other one. Ehh...
  11. 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...
  12. 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!
  13. 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...
  14. Unknown Soldier

    TFS 1.X+ cant shoot with SD to invisible monsters

    The solution to this problem is to both change the onCastSpell function as above and also changing needtarget to "0". Then, after combining those two steps this error disappears, and you can shoot runes at invisible monsters, and not "anywhere" like gfb, unless you are using some old or shitty...
  15. Unknown Soldier

    TFS 1.X+ cant shoot with SD to invisible monsters

    Have you even tried?
  16. Unknown Soldier

    TFS 1.X+ cant shoot with SD to invisible monsters

    change needtarget="1" to needtarget="0" in spells.xml
  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