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

  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)...
Back
Top