This repository has been archived by the owner on May 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix market imbued item * Fix Summon Issues * Update data/spells/scripts/summon/summons.lua Co-Authored-By: gerotib <princessgeroo@gmail.com> * Fix Pets Issues * Fix boat to issavi
- Loading branch information
1 parent
3cc9d01
commit 177e076
Showing
21 changed files
with
159 additions
and
62 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
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,52 @@ | ||
local combat = Combat() | ||
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) | ||
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) | ||
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) | ||
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true) | ||
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) | ||
|
||
function onGetFormulaValues(player, level, magicLevel) | ||
local min = (level / 5) + (magicLevel * 3.2) + 20 | ||
local max = (level / 5) + (magicLevel * 5.4) + 40 | ||
return min, max | ||
end | ||
|
||
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") | ||
|
||
local spell = Spell(SPELL_RUNE) | ||
|
||
function spell.onCastSpell(creature, variant, isHotkey) | ||
return combat:execute(creature, variant) | ||
end | ||
|
||
spell:name("test rune") | ||
spell:runeId(2275) | ||
spell:id(220) | ||
spell:level(20) | ||
spell:magicLevel(5) | ||
spell:needTarget(true) | ||
spell:isAggressive(false) | ||
spell:allowFarUse(true) | ||
spell:charges(25) | ||
spell:vocation("sorcerer;true", "master sorcerer") | ||
spell:register() | ||
|
||
local conjureRune = Spell(SPELL_INSTANT) | ||
|
||
function conjureRune.onCastSpell(creature, variant) | ||
return creature:conjureItem(2260, 2275, 25) | ||
end | ||
|
||
conjureRune:name("Test") | ||
conjureRune:id(221) | ||
conjureRune:words("adori mas test") | ||
conjureRune:level(30) | ||
conjureRune:mana(530) | ||
conjureRune:group("support") | ||
conjureRune:soul(3) | ||
conjureRune:isAggressive(false) | ||
conjureRune:cooldown(2000) | ||
conjureRune:groupCooldown(2000) | ||
conjureRune:needLearn(false) | ||
conjureRune:vocation("sorcerer", "master sorcerer") | ||
conjureRune:register() |
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,27 @@ | ||
local combat = Combat() | ||
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) | ||
|
||
function onCreateMagicWall(creature, tile) | ||
local item = Game.createItem(ITEM_MAGICWALL, 1, tile) | ||
item:setAttribute(ITEM_ATTRIBUTE_DURATION, math.random(14000, 20000)) | ||
end | ||
|
||
combat:setCallback(CALLBACK_PARAM_TARGETTILE, "onCreateMagicWall") | ||
|
||
local spell = Spell("rune") | ||
function spell.onCastSpell(creature, variant, isHotkey) | ||
return combat:execute(creature, variant) | ||
end | ||
|
||
spell:name("Magic Wall Rune") | ||
spell:group("attack") | ||
spell:id(86) | ||
spell:cooldown(2 * 1000) | ||
spell:groupCooldown(2 * 1000) | ||
spell:level(32) | ||
spell:magicLevel(9) | ||
spell:runeId(2293) | ||
spell:charges(3) | ||
spell:isBlocking(true, true) | ||
spell:allowFarUse(true) | ||
spell:register() |
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,28 @@ | ||
local combat = Combat() | ||
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH) | ||
|
||
function onCreateMagicWall(creature, tile) | ||
local item = Game.createItem(ITEM_WILDGROWTH, 1, tile) | ||
item:setAttribute(ITEM_ATTRIBUTE_DURATION, math.random(38000, 45000)) | ||
end | ||
|
||
combat:setCallback(CALLBACK_PARAM_TARGETTILE, "onCreateMagicWall") | ||
|
||
local spell = Spell("rune") | ||
function spell.onCastSpell(creature, variant, isHotkey) | ||
return combat:execute(creature, variant) | ||
end | ||
|
||
spell:name("Wild Growth Rune") | ||
spell:group("attack") | ||
spell:id(94) | ||
spell:cooldown(2 * 1000) | ||
spell:groupCooldown(2 * 1000) | ||
spell:level(27) | ||
spell:magicLevel(8) | ||
spell:runeId(2269) | ||
spell:charges(2) | ||
spell:isBlocking(true, true) | ||
spell:allowFarUse(true) | ||
spell:vocation("druid", "elder druid") | ||
spell:register() |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.