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

    Lua Buy more than 100 items from an NPC

    Aaahh ok. I did notice one was AddItemEx and one was AddItem, did not know what the difference was. Is it better to try and re-work this player:addItemEx to include or loop or should I just change the npc.lua function to player:addItem instead? When I say better I mean which one is "best...
  2. X

    Lua Buy more than 100 items from an NPC

    Thanks for the reply @Xikini. Using a loop does make sense, I hadn't thought of that. I actually tried looking at the script behind the GM command for creating item (/i) and it didn't use any loops at all so I guess I had tunnel vision: if count ~= nil then if itemType:isStackable()...
  3. X

    Lua Buy more than 100 items from an NPC

    Some more info, maybe this can help provide additional context: I realized that the function for giving the player the item had math.min at (100, armount) which means that even if I try and buy more than 100, math.min will return 100 since it is lower. So, I changed the math.min function here...
  4. X

    Lua Buy more than 100 items from an NPC

    Been a little while, bumping. Still have not managed to make any progress on this myself, nor have I found the answer here on the forums.
  5. X

    Lua Buy more than 100 items from an NPC

    Using TFS 1.2 Cannot figure out how to make it so an NPC can sell more than 100 of an item. Here is the "doNpcSellItem" function from my npc.lua: function doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack) local amount = amount or 1 local subType = subType or...
  6. X

    [7.7] RealOTS 7.7 Cipsoft files (virgin)

    Just gave it read, I get it, thank you!
  7. X

    [7.7] RealOTS 7.7 Cipsoft files (virgin)

    I see, thank you. How would you restrict something to say, sorcerers AND druids? professions=8,16?
  8. X

    [7.7] RealOTS 7.7 Cipsoft files (virgin)

    Does anyone know how vocations are represented numerically inside of objects.srv? Back in 7.7 the only vocation-restricted items were wands/rods, but I don't understand what the numbers mean: TypeID = 3070 Name = "a moonlight rod" Description = "Shimmering rays of moonlight radiate...
  9. X

    C++ Monsters killed by other monsters don't drop loot

    It's literally in my very first post on the thread...
  10. X

    Windows New Sprites in the RealOTS Map Editor

    As the title suggests, I'm trying to add custom sprites to the RealOTS Map Editor (the one Yamaken posted here: [7.7] RealOTS 7.7 Cipsoft files (virgin) (https://otland.net/threads/7-7-realots-7-7-cipsoft-files-virgin.244562/page-8)). I've added custom items many many times to other versions of...
  11. X

    C++ Monsters killed by other monsters don't drop loot

    This code has been running for almost a year now, lots of fire elementals and slimes have been killed and no crash lol
  12. X

    C++ Convert RSA System from old to new

    Thanks for answering Iryont! Ok that's good to hear because that's what I understood from reading about RSA. Any ideas what I'm doing wrong then? Here are my steps exactly: 1. I generate a new p and q and add it to otserv.cpp 2. I recompile the source code. 3. I add the new n to the OTClient...
  13. X

    C++ Convert RSA System from old to new

    I will test with the standard OTLand RSA and see if that works. For sure, I would generate my keys locally for release. Grabbed them from the generator for making testing easier. I have a question; some super old versions of TFS had an option in otserv.cpp to manually set p, q and d. Later...
  14. X

    C++ Convert RSA System from old to new

    Hello, I have tried to convert the RSA system on my server (TFS 1.2) from the "old" style of having the prime1 and prime2 hard-coded in the sources to the "new" style, with a key.pem file, but I can't get it to work. Here is what I have done so far: I replaced these lines in my otserv.cpp...
  15. X

    Lua House info, data to string [TFS1.2]

    omg that worked!! thank you!!
  16. X

    Lua House info, data to string [TFS1.2]

    Thanks for the reply, unfortunately whether or not there is a variable doesn't change the fact that it only returns userdata.
  17. X

    Lua House info, data to string [TFS1.2]

    Hello, Trying to create (what I thought) was a simple talkaction script that players could use to get info about their houses. Here is what I have: function onSay(player, words, param) if player:getHouse() == nil then player:sendCancelMessage("You do not currently own a house.")...
  18. X

    [MyAAC][Plugin] List Of Items

    I dropped 'list_of_items' from the SQL database, installed the latest plugin, added the lines to index.php and created the new file /system/verified.php for the new array. I know the array is working because if I click on any items sub page it displays the headers for the table, but no data...
  19. X

    TFS 1.X+ Last Man Standing Event

    Thank you that worked! Yes, I will clean up the other stuff that is not needed now that I have the core function done!!
  20. X

    TFS 1.X+ Last Man Standing Event

    Hello, Having trouble with an event I'm trying to create. I've modified the script here (GlobalEvent - [TFS 1.2] Zombie Arena (https://otland.net/threads/tfs-1-2-zombie-arena.258250/)) to be a "Last Man Standing" style event. All of the beginning stuff works; I can start the event with the...
Back
Top