• 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 Far Carder

  1. F

    coresUsed Question

    Pretty sure that means it assigns the cores automatically?
  2. F

    Party Heal

    The error MSG is pretty clear. It is missing a close bracket for the doCreatureAddHealth() function. Really easy to do when you use math.random() inside of it so just put a ) at the end of that line
  3. F

    Lua Problem with a function.

    Pretty sure it stopped working in one of the later client versions so either use doCreatureSay() and play around with the different MSG types to you find one you like or use a server for an earlier client.
  4. F

    Lua An easy question / message

    only if you use if msgContains(msg, "HI") then ... but he wants to use it to make the msg is exactly the same so just if msg == "hi" then ... so that only hi works and not hi there NPC which would work in the first one
  5. F

    Lua An easy question / message

    Oh ok so I missunderstood what you said and it doesnt automatically make msg lowercase but Lua is definatly case sensetive and if you use if msg:lower() == 'xXx' then It will never work since the captial X is different to the lowercase x
  6. F

    Lua An easy question / message

    It definatly is case sensitive. I am 100% on that. What I'm not 100% sure on is if jiddos system automatically makes the message parameter lower case or not.
  7. F

    Lua An easy question / message

    Bogart you miss understood what I ment I am saying that that already happens so the MSG is already converted to lowercase so whatever is put in xxx needs to be in lower case aswell
  8. F

    Lua An easy question / message

    No. What the player says is usually always converted to lower case. You can try it and see but I am 90% sure it does. So if a player says "Hi, my name is Far Carder" it is converted to "hi, my name is far carder". So if you do this: if "Hi, my name is Far Carder" == "hi, my name is far...
  9. F

    Lua An easy question / message

    just use if msg == "xxx" then Just remember that msg is usually converted into all lower case so it will never contain capital letters. So make sure xxx never has capital letters or else they will never be equal.
  10. F

    Zzaion Gate

    Only had a quick look at it but you seem to have getCreatureName(target) but target​ is never defined?
  11. F

    NPC not working

    What kind of NPC is this? It doesnt look like jiddo's system or the old way? First of all you need to tab your script so you can see where your end's are missing and what is going on. Here I have done that for you and you can see almost all of the "if"s are missing an end. Also then should be on...
  12. F

    Lua Problem Adding creaturescript to server

    <event type="death" name="EVENT_NAME" event="script" value="SCRIPT_NAME.lua"/> You change EVENT_NAME to whatever you want to call in but you have to use this name to register the event before it starts to work, depending on how you want the event to work. For example you may want to make it...
  13. F

    Windows Runes Error

    What do you mean not done yet?
  14. F

    Lua Challenge on certain monsters?

    dudeim's script might work if you change all the thing's to thing.uid like this: local challengeMonsters = { "Demon", "Rat", "Bear" } function onUse(cid, item, frompos, item2, topos) local cpos = getCreaturePosition(cid) local pos = { [1] = {x=cpos.x-1, y=cpos.y, z=cpos.z...
  15. F

    Item count for stack on the ground?

    local pos = {x = x, y = y, z = z, stackpos = 255} -- stackpos = 255- top thing (movable item or creature), stackpos = 254- magic field stackpos = 253- top creature local thing = getThingFromPos(pos) local count if thing > 0 then ---make sure it found something count = thing.type end
Back
Top