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

    TFS 1.X+ Problem buying and selling NPCs

    My NPC has the following luascript: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
  2. Dries390

    [8.60] Latest forgottenserver 1.3/1.4. Clean downport.

    Yeah, itactually ran perfectly; was able to make a functioning +fishing hat. Guess the server didn't feel so well when I crammed in all my older, custom scripts so I'll re-compile and add them slowly, testing as I go along.
  3. Dries390

    [8.60] Latest forgottenserver 1.3/1.4. Clean downport.

    Actually worked perfectly until it started crashing on loading the map, probably imported too many scripts too fast. I'll fiddle with it but it looks promising, thanks again!
  4. Dries390

    [8.60] Latest forgottenserver 1.3/1.4. Clean downport.

    That ... actually worked. I added in your code and it compiled with no errors, so this seems to work for 8.60. I'll report back if I find any bugs. Just to clarify, items have to be loaded through movements.xml before you can start fiddeling with their abilities, right?
  5. Dries390

    [8.60] Latest forgottenserver 1.3/1.4. Clean downport.

    Figured that out the hard way, can I just recompile without those changes?
  6. Dries390

    [8.60] Latest forgottenserver 1.3/1.4. Clean downport.

    Surprised the man himself would answer, looks promising. I'll fiddle around with it see if I can get it to work. Thanks!
  7. Dries390

    [8.60] Latest forgottenserver 1.3/1.4. Clean downport.

    The compiling was a-ok, so there's no problem there. I'm just trying to add Stigma's code to the downgraded TFS 1.3 C++ but there's a problem matching it up due to removal of SKILL_SPECIAL.
  8. Dries390

    [8.60] Latest forgottenserver 1.3/1.4. Clean downport.

    I was able to compile it with no errors, thanks for that! I'm also trying to merge Stigma's work: Lua Function - [TFS 1.3] Item abilities via Lua (https://otland.net/threads/tfs-1-3-item-abilities-via-lua.260156/) in to this code. SPECIAL_SKILL seems to have been removed in item.cpp compared...
  9. Dries390

    TFS 0.X Raids misfiring

    For those interested in the resolution, I have come up with an , at least approximate, answer. By switching over to a global events approach, and making a mistake I realized what the problem was. The mistake I made was (in global events) to use the same name for the function but not declaring it...
  10. Dries390

    TFS 0.X Raids misfiring

    I have done some more extensive testing in the meantime and apparantly the bug cannot be located in my script itself. Using a larger amount of rudimentary scripts it would seem that for a given amount of raids involving scripts only the last one will ever be activated. As an example consider...
  11. Dries390

    fix a onKill function for Lucky coin system please..

    If it's anything like older distributions it seems a registration in login.lua (creaturescripts/scripts/login.lua) might be missing. You should probably add registerCreatureEvent(cid, "Luckypoints") to the file. Edit: fixed name.
  12. Dries390

    TFS 0.X Raids misfiring

    Hello again everyone, I wrote a script recently which uses the raids system (TFS 0.3.6 (8.60) V8.2) to spawn loot-filled chests in an area. Using the "raids timer" an event is initiated which spawns a chest in one of some pre-determined spaces if none has been spawned yet and skips spawning one...
  13. Dries390

    For-loop index jump

    Thank you for all the replies, I implemented Evilhero's method and it works now. In the end it seemed interesting that iterating over spells for i=1,15 gave the correct table while the function had those weird little jumps. @Erexo: Originally the script had a local variable 'check' which was...
  14. Dries390

    For-loop index jump

    Thank you for taking a look at this. It seems however that, even using pairs, the error stays the same. I have no explanation for why a simple loop over the table works but returns a wrong array in the function.
  15. Dries390

    For-loop index jump

    Hello everyone, I've been trying to implement a spell-salesman for knights and have run into an odd bug. The code works correctly for spells up until i=3, then skips to i=5 when asked for the "charge" spell. Does anybody know why this is? I'm using TFS 0.3.6 because I'm not really interested in...
Back
Top