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

    Summon system

    Bump. Can someone just tell me (I know noob question) how to add script event to monster?
  2. Syryniss

    Boolean value

    local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 123) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 5) function onGetFormulaValues(cid, level, skill, attack, factor) local min =...
  3. Syryniss

    Knight Spells Formula

    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) function getSpellDamage(cid, skill, att, attackStrength) local min = -(10 + (attackStrength*1.1)) local max = -(20 +...
  4. Syryniss

    Party protection and shared exp.

    data -> creaturescripts -> creaturescripts.xml , add this before "</creaturescripts>" <event type="combat" name="PartyDamage" event="script" value="partydamage.lua"/> data -> creaturescripts -> scripts -> create a new file partydamage.lua and paste this inside : function onCombat(cid, target)...
  5. Syryniss

    Summon system

    Thanks for reply. Could you give me an example of any of this methods? I have only few summons, so both ways are good for me.
  6. Syryniss

    Party protection and shared exp.

    Sure. function onCombat(cid, target) if isPlayer(target) then local a, b = getPlayerParty(cid), getPlayerParty(target) if a and b and a == b then return false end end return true end Credits to Cykotitan.
  7. Syryniss

    Summon system

    bump, still looking for part 1.
  8. Syryniss

    Party protection and shared exp.

    I got party protection, now I only need to somehow increase experience gained by shared exp.
  9. Syryniss

    Party protection and shared exp.

    Hi. I'm looking for script, that will disable pvp when someone is in party with another player. So, if he cast a spell and party member will be in area, he won't recive any damage, but any onther player will, like normal. And the second thing is shared experience, I want each party member to...
  10. Syryniss

    Summon system

    bump
  11. Syryniss

    Summon system

    Thanks for reply. I made script summons.lua, added line in creaturescripts.xml and registred it in login.lua. Summons deals no damage to me, which is good, but if they fire area spell, im still reciving yellow skull which is annoying. And the 1. part isn't working at all, I can still kill my...
  12. Syryniss

    Summon system

    Update Solved 3. by myself, but I really need help with rest.
  13. Syryniss

    Summon system

    Hi. I got three questions/requests about summon system. 1. I want to master could not kill his summons - he shouldn't be able to deal damage to them. 2. I want to summons could not damage their master with area spells, because now that's how it works. 3. And last, not that important as two...
  14. Syryniss

    Solved PvP system

    Umm, sorry for misunderstanding your first post. Now everything works. May I ask you one more thing? After changing what files I should rebuild project instead of just compiling it? Anyway, thank you very much for help. @update The pvp system wasn't working, I couldn't damage or target any...
  15. Syryniss

    Solved PvP system

    If you mean changing this: int32_t LuaScriptInterface::luaGetPlayerSecureMode(lua_State* L) to this: static int32_t luaGetPlayerSecureMode(lua_State* L); unfortunately it doesn't work, error: 1236 C:\...\luascript.cpp expected unqualified-id before '{' token I also removed ";" at the end...
  16. Syryniss

    Solved PvP system

    Hi. I found a topic with pvp system (LINK) which I really wanted to add to my 0.3.6pl1 server. It says that firstly I need to add function in luascript.cpp as in this thread (LINK), but I don't know exactly where to add it. I tried by myself, but I'm reciving error while compiling : 2951...
  17. Syryniss

    Solved Area teleport problem (spell)

    Thanks, everything works now.
  18. Syryniss

    Solved Area teleport problem (spell)

    Okey, I got it now. The last thing I wanted to do is randomize areas where players get teleported by this skill. I have never used random function, so I will probably need some help with that. Now it looks like this : local function doTeleportBack(cid, tid, pPos, pos) if isPlayer(cid)...
  19. Syryniss

    Solved Area teleport problem (spell)

    bump
  20. Syryniss

    Solved Area teleport problem (spell)

    Hi. I wanted to make an 1x1 area spell which teleports all players in range to some place and then teleport them back after a while. I made script that was working, but was teleporting all players to 1 spot and I wanted to improve it, so teleported players are in the same distance from caster as...
Back
Top