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

    Solved TFS 0.2.14 doTransformItem bug

    Sorry, it took 3 posts. function onUse(cid, item, fromPosition, itemEx, toPosition) ---Setup cross function variables lcid = cid litem = item lfromPosition = fromPosition litemEx = itemEx litemExID = itemEx.itemid litemExUID = itemEx.uid ltoPosition =...
  2. Drakkhan

    Solved TFS 0.2.14 doTransformItem bug

    function doWoodcutting() local rand = math.random(100) local woodcuttingSkillTries = math.max(getPlayerStorageValue(lcid, SKILL_WOODCUTTING), 0) local woodcuttingSkillTriesStart = woodcuttingSkillTries local woodcuttingSkill = getCustomSkill(SKILL_WOODCUTTING...
  3. Drakkhan

    Solved TFS 0.2.14 doTransformItem bug

    I'm not trying to insult your intelligence, I just don't think you want to parse through hundreds of lines of code to get at my problem, but here's my "woodcutting.lua" (in two posts because it's big and messy atm): --"local, cross-function variables" local treeType1Ids = {2767, 2785, 2786...
  4. Drakkhan

    [9.80-9.86] The Forgotten Server v0.2.15 (Mystic Spirit)

    It worked perfectly for me this morning.
  5. Drakkhan

    [9.80-9.86] The Forgotten Server v0.2.15 (Mystic Spirit)

    @Rafael Prado @lord321 Did you try this: http://otland.net/threads/compiling-tfs-simple-tutorial-for-beginners.197474/
  6. Drakkhan

    Solved TFS 0.2.14 doTransformItem bug

    function onUse(cid, item, fromPosition, itemEx, toPosition) --code that doesn't pertain to my problem, here. if(itemEx.itemid == 2702) then doTransformItem(itemEx.uid, 18574) doDecayItem(itemEx.uid) end end The above code works. It...
  7. Drakkhan

    Solved TFS 0.2.14 doTransformItem bug

    I feel like the problem is that the script that adds an event continues on without the event and then ends while DoTransformItem() is expecting the original function to be waiting around for it.. I'm not sure though..
  8. Drakkhan

    Solved TFS 0.2.14 doTransformItem bug

    What version do you use? Does this work for you? When I run the code you gave me I get: LuaScriptInterface::luaDoTransformItem(). Item not found ... That looks like a source code bug, huh? :/
  9. Drakkhan

    Compiling TFS simple tutorial for beginners

    @UpInSmoke Wow bro.. this is an awesome tutorial. Someone sticky this!!
  10. Drakkhan

    Solved TFS 0.2.14 doTransformItem bug

    It appears that this function: doTransformItem(uid, toitemid, <optional> count/subtype) cannot be called in a function called using "addEvent(...)" or in a global function. If I use the "doTransformItem(...)" inside a global function or a function called using "addEvent(...)" I get an error...
  11. Drakkhan

    TUTORIAL FOR ALL SALAR HATERS :)

    @Drutex You sir, are a genius.
  12. Drakkhan

    Lua Script that has effect while player isn't moving.

    Just to cap this thread off, here's my solution to this: function whatever(cid) local playerPos = getCreaturePosition(cid) local playerDir = getPlayerLookDir(cid) --STORAGE_GEN is 99990010, a storage index number for this scripts generation of storage values. ----the next...
  13. Drakkhan

    Lua Script that has effect while player isn't moving.

    How do you exit this loop?
  14. Drakkhan

    Lua Script that finds the surrounding items.

    Found the answer to my question. Note that I'm using TFS 0.2.14 (Mystic Spirit) On my server, available lua functions can be found in "server/doc/LUA_FUNCTIONS". So, you can get information on the ground tile at a location with: getThingfromPos(pos) Which returns a table of data on the ground...
  15. Drakkhan

    Lua Script that finds the surrounding items.

    I'm looking for a script that gets the SIDs, names and location of the 8 items immediately adjacent to the player when the script is called. These 8 items (using pseudo-"spell area" notation): { {1, 2, 3}, {4, P, 5}, {6, 7, 8} } Where P is the player. Regards, Drakkhan
  16. Drakkhan

    Lua Script that has effect while player isn't moving.

    I'm wondering if there is a way to loop a script so that it repeats every 1 second unless the player moves or changes the direction they're facing. Any ideas how this could be done? Regards, Drakkhan
  17. Drakkhan

    Item Editing Tutorial

    Thanks. I often edit items.. I guess I just wanted to start a thread so I could use other peoples questions to improve my methods and help other people, gathering these simple steps was like a week of searching and trial and error.. so I thought I'd make it quicker for others. :D
  18. Drakkhan

    TheImaginedServer & TheImaginedClient (custom TFS and Client) - Updated 1/16/2015

    @Himii um... not your english.. your signature.. it's... like a black hole for your mind.
  19. Drakkhan

    [Spell Help] How do instants decide direction?

    It's a boolean tag. 1 is direction player is facing, 0 is always in the direction indicated by the area. I tested it and 2, 3, 4, etc. fix the area. Important note. The standard area format in spells is flipped vertically from how it will show if you don't have directional on. This: { {0, 1...
  20. Drakkhan

    TheImaginedServer & TheImaginedClient (custom TFS and Client) - Updated 1/16/2015

    @Himii dude I can't even read your post or the ones above or below yours... haha.
Back
Top