forked from mattyx14/otxserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added custom scripts: firebug, lotteryticket, musicbox, partytrumpet, premiumscroll, voodoodoll - Added custom commands: save, pos, attr, addons, mounts - Added Lua functions for player chase, secure and fight mode (TFT) - Added Game.getVersion (table) (TFT) - Fix missing and negated conditions on looktype.lua (TFT) - Move bug report to Lua (TFT) - Move summon/illusion creature to Lua (TFT) - Remove compat function from swimming.lua (TFC) - Update Party spells (TFC)
- Loading branch information
Showing
34 changed files
with
358 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 1 addition & 3 deletions
4
...ctions/scripts/_scripts_otx/spellbook.lua → .../data/actions/scripts/other/spellbook.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 0 additions & 108 deletions
108
path_10_9/data/actions/scripts/valuables/randomitems.lua
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local condition = Condition(CONDITION_OUTFIT) | ||
condition:setTicks(180000) | ||
|
||
function onCastSpell(creature, variant) | ||
local returnValue = RETURNVALUE_NOERROR | ||
local monsterType = MonsterType(variant:getString()) | ||
if not monsterType then | ||
returnValue = RETURNVALUE_CREATUREDOESNOTEXIST | ||
elseif not getPlayerFlagValue(creature, PlayerFlag_CanIllusionAll) and not monsterType:isIllusionable() then | ||
returnValue = RETURNVALUE_NOTPOSSIBLE | ||
end | ||
|
||
if returnValue ~= RETURNVALUE_NOERROR then | ||
creature:sendCancelMessage(returnValue) | ||
creature:getPosition():sendMagicEffect(CONST_ME_POFF) | ||
return false | ||
end | ||
|
||
condition:setOutfit(monsterType:getOutfit()) | ||
creature:addCondition(condition) | ||
creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) | ||
return true | ||
end |
Oops, something went wrong.