• 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!

Recent content by Dawg

  1. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    I see, thank you. I also see that getEmptySlots has a recursive feature if you use if backpack:getEmptySlots(true) > 0 then --has room end ~~~EDIT~~~~~~ Here is my current code: local added = false local useBackpack = itemtype and itemtype:getTransformEquipId() > 0 if useBackpack then...
  2. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    Wow nice that recursive flag is certainly helpful, ive been struggling to do the same thing with lua. Again, making progress. With this code you shared, it successfully opens backpacks within backpacks and adds the item (yay!). However, if the player didn't have a backpack (added = false) it...
  3. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    A couple of things i discovered: 1) nil actually does not work here, you have to use 0. I tested with prints when getting a quest chest for a non-expirable, and it actually prints 0, not nil. 2) This doesn't take into account searching recursively for empty backpacks. For example: if I have a...
  4. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    Also covers soft boots, etc. For fail handling, something like this? Just send a warning message or should i be doing something else? Thanks so much for the help. if itemtype and itemtype:getTransformEquipId() ~= nil then print("its a decayable") if...
  5. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    Printing that code yields: userdata: 0x41362f08 Also, I finally got the desired behavior with this: if itemtype and itemtype:getTransformEquipId() ~= nil then print("its a decayable") player:addItemEx(reward:clone(), true, CONST_SLOT_BACKPACK) print("its adding the item...
  6. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    Well I'm not sure what the issue is but the conditional if itemtype and itemtype:getSlotPosition() == SLOTP_RING then must not work with my distro or im doing something wrong. I added a print immediately after if itemtype and itemtype:getSlotPosition() == SLOTP_RING then print("its a...
  7. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    Is there a cleaner way to do that without having to manually create a table with all ring item IDs? When I try to print the value for ItemType:getSlotPosition(life_ring_ID) for example, I get a print of 560. I understand that this is from the SLOTP_HEAD, SLOTP_RING, etc. bit enums, but I get the...
  8. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    I had actually already tried forcing it into the backpack slot by messing with the chests.lua script, checking to see if the item was ring and then forcing it into backpack like @Evil Puncker said, but I got this error whenever I tried to do that: Lua Script Error: [Action Interface]...
  9. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    Yes, I was surprised that this problem exists when TFS has existed for so many years, hopefully someone with more knowledge will point us in the right direction. I know there are more people than just us who would like to see this problem fixed.
  10. Dawg

    TFS 1.X+ Add rings from quest rewards to bag instead of ring slot

    I'm trying to figure out how to make it so that when a player receives a ring from a reward chest, the ring goes straight to the backpack even if the player's ring slot is open. With TFS 1.2, if the player has no ring on, and then they open a quest chest that gives a ring, the ring goes straight...
  11. Dawg

    Solved [sabrehaven/nostalrius] Chat Channels Crashing Client

    Fixed the issue, it was my fault after all. Not sure what exactly was wrong but once I confirmed that I could login on OTClient, I made a new custom CipSoft client (hex edited for IP address) and channels now work. I must have made a hex editor mistake the first time.
  12. Dawg

    Solved [sabrehaven/nostalrius] Chat Channels Crashing Client

    Using Sabrehaven master branch, clean download and compile. Using regular CipSoft client. Any player talking in any channel other than default or direct message (help, trade, world, private chat channel) instantly crashes the client. Here is the debug: I have searched here, searched the...
  13. Dawg

    OTClientv8 Update Error

    Hey all, I'm trying to push changes to my .dat and .spr. I did this about 6 months ago and everything worked fine. Went to do it again just now and I must be doing something stupid because this shouldn't be that hard. I'm following the instruction as outlined here (Updated, encryption and...
  14. Dawg

    [7.7] RealOTS 7.7 Cipsoft files (virgin)

    Haha well yes of course, I mean to the outfit of a creature or item.
  15. Dawg

    [7.7] RealOTS 7.7 Cipsoft files (virgin)

    Does this mean you can use an item and/or move event to change a player's outift? I.e. put on a ring and it changes your outfit?
Back
Top