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

    Problem with cast system

    Could you print your luascript.cpp and luascript.h, seems like the problem lies there. Ignazio
  2. I

    Some Array/Table Help

    I don't understand what you aim to do. Could you post your script so far or give us a more detailed description of your idea? Ignazio
  3. I

    Problem with cast system

    It seems your function does not exist. Did you implement the function yourself, or get a pre-compiled server? Ignazio
  4. I

    Solved +Hp/Mana?

    <attribute key="maxmana" value="2000"/> I guess this would work for mana. Ignazio
  5. I

    Solved +Hp/Mana?

    I got the question right, but I didn't know there was support for it in the items.xml, which it apparently ... ... was Ignazio
  6. I

    Solved +Hp/Mana?

    You can achieve this through multiple methods, I'm almost certain there is no available support for such feature. However, in movements, you can create scripts executed when a player equips or deequips items (onEquip, onDeEquip) where you can assign a status condition (ATTRIBUTES) which in it's...
  7. I

    Solved Addon script not working tfs 0.3.6

    I'm glad, as I mentioned earlier, the actions are loaded in a fashion that errors are not visible on the bottom console window, merely somewhere in the middle. Reloading actions when the server is online will show you more specific errors on the chosen reload type, might have been why. Ignazio
  8. I

    Solved Addon script not working tfs 0.3.6

    The script might send out errors, but only when it's loaded, which is in the start of the server. Try to reload actions (/reload actions) and see if you get any syntax errors. It might be "math.random(67)", I'm not entirely sure, but it should need two parameters. Ignazio
  9. I

    Solved Addon script not working tfs 0.3.6

    What item are you using? Try to login on a Gamemaster and view that item to see it's unique id, it should be between 12001 and 12020. Ignazio
  10. I

    Lua GuildMaster for TFS 0.3.6

    I don't have it all in my head, but when you pop variables in the source (get them from lua), then you need to identify the type to begin with, popString, popNumber, popBool. I also recall that you read the last variable to the first, for instance: I want to use my function with three variables...
  11. I

    Lua GuildMaster for TFS 0.3.6

    It's pretty easy to conjure up some simple functions in the source that is usable through LUA, rethinking it, I realized you might need one for creating guilds and one for creating ranks. The functions I posted was an extract from the source. This function; static int32_t...
  12. I

    tfs 0.3.6

    There should be a file in the data/XML folder called stages.xml I believe, try to edit that one. Where is your exp_stages.lua located? Ignazio
  13. I

    Doubt Phpmyadmin Command

    It's hard to convert to a simple SQL query since the lastlogout row is stored as microtime. You could try this either through PHP as a cronjob launched according to a given time period, through the source or simply through LUA. What you need to do is to loop all the players, extract their...
  14. I

    tfs 0.3.6

    You can get the shielding skill in the onGetFormulaValues function, whilist retrieving the defense of a shield for instance for power, example; function onGetFormulaValues(cid, level, skill, attack, factor) local item = {} item[1] = getPlayerSlotItem(cid, 5) item[2] =...
  15. I

    Help With House price

    You need to get the mathematic formula outside of the string quotes. However I'm concerned the amount of gold is surpassing the integer maximum for that value, if it's a client restriction or server sided I leave unsaid. This may however work if you redo the system to only require nuggets it...
  16. I

    Help With House price

    Yes precisely, 1 = 1 nugget
  17. I

    Help With House price

    Oh sorry, it's in the configmanager.cpp
  18. I

    Help With House price

    Oh, I seem to have misinterpret your intentions. So you simply want to reduce the amount of zero's in the configuration file? Try this; Find m_confNumber[HOUSE_PRICE] = getGlobalNumber("housePriceEachSquare", 1000); Replace with m_confNumber[HOUSE_PRICE] =...
  19. I

    Help With House price

    I found they use an item attribute called "worth" as money algorithm. I suggest trying to add this worth attribute in the items.xml for nugget. <item id="2160" article="a" name="crystal coin" plural="crystal coins"> <attribute key="weight" value="10" /> <attribute...
  20. I

    Help With House price

    I usually try to go to the source of the problem, in this case; where do I find the housePriceEachSquare variable in the source, and find my way through there. Why don't you tell me what TFS version you are using, and I'll see if I can help you out. Ignazio
Back
Top