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

    Solved onKill function making creature freeze

    in login.lua I have this registerCreatureEvent(cid, "Bestiary") in creaturescripts.xml I have this <event type="kill" name="Bestiary" event="script" value="bestiary.lua"/> and bestiary.lua looks like this function onKill(cid, target, lastHit) if getCreatureName(target) == "Chicken" and...
  2. ziggy46802

    Solved the onKill function?

    Yes, that is exactly what I was looking for, just a way to see what creature was killed.
  3. ziggy46802

    Solved the onKill function?

    Would it be possible to make a sort of "bestiary" with the onKill function? And how would you set it so it is set as "onKill Minotaur" and "onKill Minotaur Mage" and such? I just need help knowing the syntax of how the function knows which monster you killed.
  4. ziggy46802

    Solved quest npc wont "finish" quest

    Here is the script local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} -- OTServ event handling functions start function onCreatureAppear(cid)...
  5. ziggy46802

    Lua how do I make wand use a script?

    Thank you for all your help, I will add you on skype and send you an email.
  6. ziggy46802

    Lua how do I make wand use a script?

    okay, did that, still not working, does he need to be a sorcerer as well?
  7. ziggy46802

    Lua how do I make wand use a script?

    Well I am using an "owner" with only lvl 23, if that would make it not work.
  8. ziggy46802

    Lua how do I make wand use a script?

    that is in the weapons file, i overwrote it over the everblazing wand.
  9. ziggy46802

    Lua how do I make wand use a script?

    the script is in data/weapons/scripts, but the wand does not work
  10. ziggy46802

    Lua how do I make wand use a script?

    Is this right? <wand id="18409" level="100" mana="20" min="1" max="100" type="death" event="script" value="snakebite.lua"> <!-- Sprite Wand --> <vocation id="1"/> </wand> With the script being local combat = createCombatObject() setCombatParam(combat...
  11. ziggy46802

    Lua quest chest not working

    Well, using anvils (since they aren't containers that open) I got it to work by making it only add the item. I'm now slowly adding each part to see what the problem is since the other 2 aren't working with all the lines of code uncommented in them. - - - Updated - - - this line...
  12. ziggy46802

    Lua quest chest not working

    I'm getting not prints at all well I dont have access to the console so I dont know actually
  13. ziggy46802

    Lua quest chest not working

    <action uniqueid="1013" event="script" value="quests/brightsword.lua"/> <action uniqueid="1014" event="script" value="quests/beastslayeraxe.lua"/> <action uniqueid="1015" event="script" value="quests/diamondsceptre.lua"/> And I have other scripts that work in the quests folder so thats...
  14. ziggy46802

    Lua quest chest not working

    It opens like a normal chest, but as a GM it says it has a unique ID
  15. ziggy46802

    Lua quest chest not working

    Sorry but it still does not work, and I am unable to post any errors it is showing.
  16. ziggy46802

    Lua quest chest not working

    local pos = {x=615, y=1241, z=7} local legs = {x=563, y=1213, z=6} function onUse(cid, item, frompos, item2, topos) doSendMagicEffect(pos, 10) doPlayerAddItem(cid, 2407, 1) --backpack of holding doPlayerSetStorageValue(cid, 1020, 2) doPlayerAddExp(cid, 30000)...
  17. ziggy46802

    Lua Simple Spell, create and convince creature

    Summ, your script works! Thank you very much and the only reason I didn't rep you was because I couldn't
  18. ziggy46802

    Lua Simple Spell, create and convince creature

    it does not work, and I'm not the hoster so I can't see the errors coming up I'll talk to him later and figure out what the errors are though.
  19. ziggy46802

    Lua Simple Spell, create and convince creature

    Here is my simple spell that simply does nothing function onCastSpell(cid, var) doSummonCreature("Rat", cid) doConvinceCreature(cid, "Rat") end Is there a part that must be in it or something because it's not doing anything (and yes I did set it in spells.xml correctly)...
  20. ziggy46802

    Lua Simple Mission NPC not working

    Heres the npc local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid)...
Back
Top