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

    OTC treeview or similar

    Hello, Im developing a module to the OTC, and i need a treeView component. Something like: OTC have a component like this? I tryed puting a TextList inside another, but don't worked. for k, v in pairs(groups) do --Get groups local tmpGroup = g_ui.createWidget('GroupListWidget', groupsList)...
  2. Z

    TFS 1.X+ Stop summon to follow master

    Hi, I added this commit the part that is related to creature:moveTo function. Im using this function to players move their summons. But the summon can't go to location because the natural behaviour of summon is stay close to master, i think i need to edit my onThink in monster.cpp, but don't...
  3. Z

    C++ Remove summon from experience map

    Hi, I need to change summon from experience map to master, then the master will receive the experience that summon would recive. I already blocked summon to recive experience, but if summon and player damage the creature, when the experience map is constructed, the experience wouldn't all to...
  4. Z

    C++ Creature CastSpell() right way

    Hello, I have this function to do Creatures cast spells, but isn't working in right way, if a monster(summon) cast a spell, the spell is damaging the player(master), if hit another player, the master don't get Skull, the master and the player that recive damage don't get Pz Locked. After search...
  5. Z

    TFS 1.X+ Copy Table in right way

    Hello, I realized that if i copy table1, to another table2 field, make changes in table2, table1 will be changed too. I had same problem using C# sometime ago. I want to know WHY its happen and if have some way to avoid that(im using a function to copy that is avoiding it, just wanting to know...
  6. Z

    C++ Creature:CastSpell check if need target

    Hello, Im using this function to do a Creature cast a spell, but if the spell have needtarget="1"(Energy Strike, Fire Strike, Brutal Strike) in spells.xml and the creature don't have target, the code still cast the spell and return true, and i need it don't cast the spell and return false. I...
  7. Z

    TFS 1.X+ Handler Pet Cooldown

    Hello, Im developing a pet system, and the pets will have skills. I was thinking of how to do the cooldown of skills. When the pet is summoned and cast a spell, will start the countdown to be possible cast again, but in meanwhile if i unsummon the pet, the countdown need to be freezed, and only...
  8. Z

    C++ Send Lua Table Type in Opcode

    Hello, Im using opcode to pass info from server to client, but i need to pass a table. I tryed transform the table in string(opcode only accept strings) and transform back to table in client side, but don't worked. I need change opcode to send table type variable too, i think with table i can...
  9. Z

    C++ Monster Nickname

    Hello, Im needing a function to change the monster name when summoned, i found this: SetCreatureName, but it need some changes, which i don't know how to do, then i asking for help. In the post, in comments some people said that have a bug, when we change the monster name with players in area...
  10. Z

    TFS 1.X+ Question about Storing Info

    Hello, I'm developing a pet system, and don't sure how to store player pet info, i think using Storing Info to store a table with all pet info and request the data in onLogin and store in a global table like: PETS = {[playerGuid] = StoringInfoRequestedData} function Player:requestPetInfo()...
  11. Z

    OTClient Yes/No Dialog Window

    Hello, I need a yes / no dialog window for OTC. I do not know if there is already a model ready, searched a lot and found nothing related. I know the logic behind this code, I believe it works like TFS Events (onMoveItem, onLook, onTurn) which will expect a return true to actually do the action...
  12. Z

    Show real speed in Otclient

    Hello, I want to show real player speed in Otclient. It show the speed value / 2. I looked at my game_skills scripts and in OTC sources and don't found the line where the value is divided by 2, i need help. Stigma said on another thread and i tested and is right, i want to change this. Thanks.
  13. Z

    Calling lua function in C++

    Hello, I'm working on a mount system, and I need to access the information that is in Mounts.xml several times. Instead of accessing the XML file, I made a global table in LUA and load all the information from the XML file there through a function when the server opens(onStartup). I need when I...
  14. Z

    Aprendendo C++

    Boa tarde pessoal! A um tempinho comecei a aprender sobre C++, estou sempre precisando e não sei nada da linguagem. Estou usando o site LearnC++, infelizmente o mesmo está totalmente em inglês. Não que seja um grande problema, mas seria ótimo algum conteúdo em PT-BR. Alguém teria algum site...
  15. Z

    C++ Mounts add variables

    Hello, Im working on a advanced mount system, and need to add some new properties to mounts. My knowledge in C++ is almost none. I know what i can do(logic), but don't know how to do. I was looking some files(mounts.cpp, mounts.h, player.cpp, game.cpp) and following the mounts data logic trying...
  16. Z

    C++ onAddItem Event Function

    Hello, I want a event function: onAddItem() that will be called when functions: Container:addItem() Container:addItemEx() Player:addItem() Player:addItemEx() I have some ideas how to do, but all forms involve C++, that i don't know. What i realy need is: When i add a item to player or...
  17. Z

    Cylinder explanation

    Hello, Someone could explain me about: TFS 1.2 events/scripts/player.lua: function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) fromCylinder and toCylinder. What does it mean, how does it work, what uses? Im trying to do a system, to block player to Drop...
  18. Z

    Sql or Lua usage

    Hello, I'm developing a system of daily tasks, which will reset whenever the server starts. In my onStartup I have the following code: local resultId = db.storeQuery("SELECT * FROM `player_storage` WHERE `key` = "..DAILY_TRASH_STATUS.." AND `value` = 2") --Get all rows with Status = 2...
  19. Z

    C++ Parse Storage to Quest.xml

    Hello, I need to display storage values in the Quests and Missions descriptions in Quest.xml. After searching on, I found some posts on the subject, I found a specific code that would serve my purpose, but I do not understand C ++, if I use the code would have any problem? I'm using the latest...
  20. Z

    Math.Random high chance to low numbers

    Hi folks, i'm needing help with a function. I need a function that receive 2 integers numbers and return a random number between them with bigger chance to get small numbers instead big numbers. Could work with percents interval? I've found on internet some ideas, like random weighted numbers...
Back
Top