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

  1. T

    Lua addEvent + creture:say problem

    This solution works, but i would like to understand why it fixes the whole thing.The missing part of the script was in the first post and it looks like this: function onStepIn(creature, item, position, fromPosition) local pos1 = { x = position.x + 3, y = position.y, z = position.z} local...
  2. T

    Lua addEvent + creture:say problem

    https://github.com/otland/forgottenserver/issues/235 https://github.com/otland/forgottenserver/issues/1157 Okay so all i did is changed my function to use cid and create a variable creature with that cid. Apparently you can't pass userdata in this secnario. Edit 1: After adding 3 actions with...
  3. T

    Lua addEvent + creture:say problem

    Hi there. I want to make my function run in addEvent but i get problems. I have added a global function in global.lua that i want to use for other things function monsterSayPos(creature,text,position) creature:say(text,TALKTYPE_ORANGE_1,false,nil,position) end and when people enter a certain SQM...
  4. T

    Lua TFS 1.2 Container:getItem(index) help.

    Ok i was really stupid yesterday. item:getItem(0) wasn't a string in any form for me to print :D . But i don't understand the part player:addItem(reward:getId(),1) . That means a player will be rewarded with an item which id is the same as id of the container right? What i thought would happen...
  5. T

    Lua Unmoveable object with action ID.

    @MatheusMkalo Oh my god there was this many functions in events.xml and player.lua . Thanks i didn't know about it. Just started adventure with ot servers. It for sure requries a lot of knowledge about everyt function and it's limits. Everything works fine so thank you very much. @Xikini...
  6. T

    Lua TFS 1.2 Container:getItem(index) help.

    Hi there i' ve got a container with 1 item in it. Is this function supposed to give my character this item? Or just send item's values so i can do something like: function onUse(player, item, fromPosition, target, toPosition, isHotkey) local reward = item:getItem(0) player:addItem(reward,1)...
  7. T

    script book whit text inside

    Can't find lua method to add text to a certain readable item in TFS 1.2. Maybe i could add text attribute in c++ and then use item:addAttribute, but i think that is too much necessary work. Or can i just use container content as a reward, and i can change text of container content in RME. But...
  8. T

    Lua Unmoveable object with action ID.

    Hey i wan't to make a lot of items unmoveable in certain areas, but i want them moveable otherwise. So i don't want to use Unique ID but a single action ID that makes item unmoveable and send player message you cannot move that. Just like if i was moving a wall. I know i can use onRemove, but...
Back
Top