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

    TFS 1.X+ Message: Out of range value for column

    Error message which you are getting indicates that query tries to update manaspent but given value is either too big or too small. According to MySQL docs valid value for unsigned int type is between 0 and 4294967295, so you are trying to pass value which is outside of valid range. Right now it...
  2. Yalasari

    OTClient Unable to create item with invalid id

    Yes i did, post marked as best answer led me to cause of problems: Client ID in .otb and Client ID in .dat was different, therefore client was confused and unable to create item
  3. Yalasari

    Fatal error on register (MYACC)

    These warnings appear because you are probably using the newest version of PHP which deprecated (they still work although they recommend to not use them) some functions and modified behavior of others. Unless you are experienced enough to fix it by yourself I don't recommend doing this because...
  4. Yalasari

    Fatal error on register (MYACC)

    Click "Change" button and then you should be able to find A_I or AUTO_INCREMEMT checkbox
  5. Yalasari

    Fatal error on register (MYACC)

    Is your "id" field marked as PRIMARY_KEY and does it have AUTO_INCREMENT enabled? If not, change it and then try to register again.
  6. Yalasari

    Tibia Single Player Experiment?

    When I was younger, I built a sort of "RPG" map in SimOne's map editor (I found it when my brother downloaded it so I had no idea how OTS were working) with few locations, even written some quests on paper (At the time also I didn't know "how to code" so my ideas were dumb and mostly impossible...
  7. Yalasari

    TFS 1.X+ lua item in chest do unique id

    try changing local item_handler = Player(cid):AddItem(config.item, config.count) to local item_handler = Player(cid):addItem(config.item, config.count) (replace capital 'A' in AddItem to lower case 'a')
  8. Yalasari

    TFS 1.X+ lua item in chest do unique id

    What exactly is or isn't happening? We need more info to help you (console logs, detailed description of problem)
  9. Yalasari

    TFS 1.X+ lua item in chest do unique id

    Not sure what do you want to know but: AddItem() returns "handler" for item (1 cc), in this case item which were given to player. Then you can use functions on this item (in this case setAttribute used to set actionid to 50501)
  10. Yalasari

    TFS 1.X+ lua item in chest do unique id

    I assume that u want to add actionid "50501" to your item so you have to replace this: doPlayerAddItem(cid, config.item, config.count) with this: local item_handler = Player(cid):AddItem(config.item, config.count) item_handler:setAttribute(ITEM_ATTRIBUTE_ACTIONID, 50501) in your script item...
  11. Yalasari

    Hunter npc (find person)

    try changing line 24 from if target then to if target and target:getAccountType() == ACCOUNT_TYPE_NORMAL then
  12. Yalasari

    add cooldowns on custom potions. TFS 1.2 (10.98)

    Yeah, that's basically how my script does it, And you are right, all os.date() have to be replaced with os.time() (except this one which format timestamp to mins and sec) My fault, code should how look like this: local cooldown_storage = <your value here> local combat = Combat()...
  13. Yalasari

    Hunter npc (find person)

    This should work just fine, all you need to do is adjust cost and bind this script to xml npc file local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid)...
  14. Yalasari

    add cooldowns on custom potions. TFS 1.2 (10.98)

    Try this local cooldown_storage = <your value here> local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) combat:setCondition(condition) local condition = Condition(CONDITION_REGENERATION)...
  15. Yalasari

    TFS 1.X+ tfs 1.3 creature:setDirection(direction)

    You can take the target and player position and do following calculations: target position x - player position x if result is larger than 0: player is on left side of target (change direction to EAST) if result is smaller than 0: player is on right side of target (change direction to WEST)...
  16. Yalasari

    Request : potion that adds magic / skill lvl, only useable 5 x !

    First of all you have to save this script inside your data/actions/scripts/others folder, then inside your actions.xml located in data/actions register this script by adding <action itemid="your potion id" script="others/scriptname.lua"/> For each potion you want. Then inside your script file...
  17. Yalasari

    Request : potion that adds magic / skill lvl, only useable 5 x !

    It can be adapted but i suggest you to try out script which i posted earlier first because it is specifically written for your needs.
  18. Yalasari

    Dbugg error Query: Update 'players' ... ... .... "Out of range value for column 'experience' at row 1

    When you are inside folder with tfs: screen ./tfs When you are not inside folder, first argument is path to tfs. Use screen -r PID to load screen, and screen -ls to view list of PIDs
  19. Yalasari

    Sample vocations

    Inside Your config.php file search for 'highscores_ids_hidden' => array(0) Fill this array with ids of sample characters, if you have something inside this array, just add the ids to existing ones.
Back
Top