• 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

    addEvent not functioning

    Here is my script, everything works fine except for the addEvents local pos = {x=419, y=1325, z=8} function onUse(cid, item, frompos, itemEx, topos) if getPlayerItemCount(cid, 2087) >= 1 and item.itemid == 7106 then doRemoveItem(getTileItemById(pos,7106).uid,1) addEvent(one()...
  2. ziggy46802

    Solved a doRemoveItem problem

    Ok I changed in actions xml the itemid to the id of the key and here is the code local pos = {x=419, y=1325, z=8} function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 1033) == 2 and item.itemid == 2087 then doRemoveItem(getTileItemById(pos,7106).uid,1) return...
  3. ziggy46802

    Solved a doRemoveItem problem

    Ok it's still not working, this is what I have in actions.xml <action itemid="7106" event="script" value="quests/monkeydoor.lua"/> so it works on the actual item (which is an inactive geyser lol) and here is the code again local pos = {x=419, y=1325, z=8} function onUse(cid, item, frompos...
  4. ziggy46802

    Solved a doRemoveItem problem

    This code local pos = {x=419, y=1325, z=8} function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 1033) == 2 and item.itemid == 2087 then doRemoveItem(getTileThingByPos(pos).uid) end end does not work How do I do the doRemoveItem on an actual object?
  5. ziggy46802

    Lua Easy Talkaction Fix

    Finally, this code function onSay(cid, words, param, channel) if getPlayerStorageValue(cid, 25001) ~= 1 then doPlayerPopupFYI(cid, "You are not a dwarf!") end if getPlayerLevel(cid) >= 5 and getPlayerLevel(cid) < 10 then if getPlayerStorageValue(cid, 25001) == 1 and getPlayerStorageValue(cid...
  6. ziggy46802

    Lua Easy Talkaction Fix

    with this code if getPlayerLevel(cid) >= 5 and getPlayerLevel(cid) < 10 then if getPlayerStorageValue(cid, 25001) == 1 and getPlayerStorageValue(cid, 26001) < 5 then doPlayerPopupFYI(cid, "You prayed to the dwarven God and received a bonus to your max health and a bonus to your shielding...
  7. ziggy46802

    Lua Easy Talkaction Fix

    No error in the startup logs this is what they say [11:9:34.092] > Loading actions... done. [11:9:34.274] > Loading talkactions... [Error - LuaInterface::loadFile] data/talkactions/scripts/foodcheck.lua:4: ')' expected near 'full' heres the whole code function onSay(cid, words, param...
  8. ziggy46802

    Lua Easy Talkaction Fix

    Here is the core of the talkaction that is not working properly if getPlayerStorageValue(cid, 25001) == 1 and getPlayerStorageValue(cid, 26001) < 5 and getPlayerLevel(cid) >= 5 and getPlayerLevel(cid) < 10 then doPlayerPopupFYI(cid, "You prayed to the dwarven God and received a bonus to...
  9. ziggy46802

    Lua Talkaction gone wrong

    oh wow how did I not see that, what a stupid little mistake :(
  10. ziggy46802

    Lua Talkaction gone wrong

    Heres the talkaction function onSay(cid, words, param, channel) if getPlayerStorageValue(cid, 25001) == 1 and getPlayerLevel(cid) => 5 and getPlayerStorageValue(cid, 26001) <= 6 then doPlayerPopupFYI(cid, "You prayed to the dwarven God and received a bonus to your max health and a bonus...
  11. ziggy46802

    Lua how to add to creatures max health?

    I tried setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid) + 15) but that did not work also tried local bonus = (getCreatureMaxHealth(cid), + 15) setCreatureMaxHealth(cid, bonus) but that did not work so how do I do it???
  12. ziggy46802

    Lua Key to Mwall wont work, simple

    with this in actions <action itemid="2087" event="script" value="quests/key3001.lua"/> <!-- wooden key --> and this code local pos = {x=419, y=1325, z=8} local mwall = 1497 local key = 2087 function onUse(cid, item, frompos, item2, topos) if getPlayerItemCount(cid, key) >= 1 and...
  13. ziggy46802

    Lua Key to Mwall wont work, simple

    Here is my code local pos = {x=419, y=1325, z=8} local mwall = 1497 local key = 2087 function onUse(cid, item, frompos, item2, topos) if getPlayerItemCount(cid, key) >= 1 and (item.itemid == key) and (itemEx.itemid == mwall) then doRemoveItem(pos, mwall)...
  14. ziggy46802

    Spell Explanation of Spell Formula Values

    Yeah I probably messed up somewhere I typed that really fast. Lagmacun, I actually like the style you put up better too since it is a) easier to understand b) in effect the same thing c) does not add stupid "low mins, mid mins, and high mins" into it But I put that up due to well, I forgot his...
  15. ziggy46802

    Lua No doors are locked

    I put a door with AID 3001, and a door with AID 3001 & UID 3001, and my normal character can open both and shut both without a key Here is my doors.lua local function checkStackpos(item, position) position.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local thing =...
  16. ziggy46802

    Webdesign Unzialish Template - For Modern AAC / Finished 100%

    Awesome template, love the news at the top and the buttons and the dark colors!
  17. ziggy46802

    Spell Mana Rune, Intense Mana Rune, and Ultimate Mana Rune

    If you want it so only sorc's and druids can use it, just raise the maglv="10" to like maglv="20" so pallies would have to be REALLY high level to get to magic level 20 to use it, but that would be easy to get by level 27 for a sorc or druid I don't know why all vocations can use the rune, it...
  18. ziggy46802

    Spell Explanation of Spell Formula Values

    Well I know that low min a works as the lowest possible hit you can have, which is added to the other two/one factors (depending on the formula), so if lowmina is set to 1 and the other level and magic level is set to 1 with a lvl 100/mL 100, he would hit a 201 at minimum (as my testing shows on...
  19. ziggy46802

    Spell Explanation of Spell Formula Values

    Many people are confused by the values that are set by setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC) and setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -1, -1, -1, 2, 1.4, 1.7, 1.9) So I would like to try and explain them, to my fullest testing and knowledge that I...
  20. ziggy46802

    set storagevalue upon rune use

    So, how do you put it in a spell script. My LMM looks like this local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT...
Back
Top