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

    Lua Extra Loot script not dropping second item.

    Hey folks, So my extra loot script won't drop the second item in the table. Here is my code: local extra_loot = { {hasName = "odibrand", items = { {id = 26448, count = 10, chance = 100000, storage = 1, aid = 1}, -- 100% chance }}, {items = { {id =...
  2. N

    Lua Adding values to loot drops

    Hey folks, Im trying to add additional values to select items via a global looting system. Having an issue trying to get it to work properly though. Here is what I have: function Container:addExtraLoot(c, t) if t.hasName then local cn = c:getName():lower() local cm =...
  3. N

    Lua Global Loot tfs 1.3

    Hey folks, I'm trying to build a script that will set a global loot function to all creatures in the game. I am also trying to set a custom loot setting for boss monsters. As for the global loot this is what I have. Registered in creaturescripts function onKill(cid, target, lastHit) local...
  4. N

    Lua Item returning unexpected value

    Hey folks, I'm trying to get my recipe system working in crafting, but for some reason, some recipes are coming up as "You have already learned this". Although it does not appear in my Crafting MW. TFS 1.3 Here is what I have: function Player.isProfession(self, storage) if...
  5. N

    OTClient Custom Skills display nothing.

    So i'm trying to get my custom skills to display levels and percentages in the OTC, but all I am getting is this: I've tried searching through the forums for a solution but I can't seem to find on. Any thoughts?
  6. N

    Lua Custom Skill Leveling

    Hey folks, I'm having an issue with custom skills. So when the player, uses the item for the skill it should level the players skill. But it doesn't seem to be working that way at all. Here is what I have so far. TFS 1.3 function Player.isGatheringJob(self, storage) if...
  7. N

    Lua Delete item after a certain time

    So hey guys, back again. I would like to have my script start counting down when you use the item, then after 5 min, remove the item. I thought I had the syntax correct, but I can't seem to get it. It either deletes it right away or deletes it on the second click. Here is what I have so far...
  8. N

    Lua Remove corpse after using

    Hey folks, im trying to set it so that, when you use the corpse (2992 - dead rabbit) it removes the corpse for the game. I think i have the syntax wrong. I've tried, item:removeItem(2992, 1) as well as doRemoveItem(2992, 1) but have no success on either front. Here is what i have so far...
  9. N

    Lua Cannot use this item, but still runs code?

    Hey folks, I'm having a slight issue with my coding. I go to use the item in question, and the script runs no problem, but for some reason the cancel message "You cannot use this item" appears on the screen as I click the item to use. Any thoughts?
  10. N

    Lua Check to see if a player has said item in inventory

    Hey folks, I'm trying to get my scrip to check if the player has a certain item before doing an action, but it doesn't seem to want to work. I'm using TFS 1.3. Here is what I have so far. if player:getItemById(2553) then -- check for pick mathCheck = math.floor(math.random() * 100)...
  11. N

    C++ Adding text to buyable books.

    Hey folks, I'm having a small issue with having a shop add text to a scroll or book that is preset. I've tried adding a text parameter to the shop module but it doesn't seem to be working. Using TFS 1.3 Any thoughts or help would be awesome!
  12. N

    Remeres Custom Items

    So i've imported my .dat and .spr into the preferences for remeres, but it does not show the custom items I have created. Any thoughts?
  13. N

    Lua Add action id to Item in shop.

    Hey folks, I'm trying to make an npc that will sell an item with a specific aid. Is there a way to add this to the .lua file? I am currently using TFS 1.3 Thanks in advance for any help!
  14. N

    TFS 1.X+ Custom Items

    hey folks, I've run into a slight problem while creating custom items. I've followed the format of creating the item in the Object Builder, adding it to item editor and then saving the OTB file. Ive added the item to the xml file as well. When I try to call the item (/i xxxx) the item does...
  15. N

    Lua Boss lever travel

    Hey folks, I'm trying to get this script to work properly, but everytime i try to use it, i get the following error. Lua Script Error: [Action Interface] data/actions/scripts/quests/floorboss1.lua:onUse data/actions/scripts/quests/floorboss1.lua:68: attempt to call method 'getThing' (a nil...
  16. N

    Vocation Chest

    Hey folks, I've scoured through the forums to find a script that will allow me to have a player interact with it and get specific items based on their vocation. So far, all the scripts I've tried have failed miserably. Wondering if anyone has a script for TFS 1.2 that will work for this...
  17. N

    Teleporting Book

    Hey folks, I'm trying to make an item that on use will allow a player to teleport to a set location. I'm having a issue with the scripting though. I think i got the scripting done correctly, but when I go to use it, it says I cannot use the item. Also, I can't seem to figure out how to add a...
  18. N

    Issue getting server online.

    Hey folks! Not quite sure if this is correct topic to be posting under, so I apologize in advance if I'm in the wrong spot. So I set up a TFS 1.2 10.98 server, and I cant seem to connect to it globally, nor can others. I have the ip set to my whatsmyip and all ports are open and listening (80...
Back
Top