Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Trust Basics #364

Merged
merged 116 commits into from
Mar 26, 2020
Merged
Show file tree
Hide file tree
Changes from 112 commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
b14748b
Add new bindings: getJobLevel & hasJob (#386)
zach2good Feb 24, 2020
fa613df
Added the auto creation of a vector list of trust id's
Omnione Jan 5, 2020
bc229d5
style fixes, (not mine lol)
Omnione Jan 5, 2020
9cd8d39
Changed iteration method of trust id's to query trust.
Omnione Jan 5, 2020
3d34a94
new iteration and struct for spellid + capitalised names
Omnione Jan 5, 2020
2967506
try again for AppVeyor
Omnione Jan 5, 2020
f87bf5f
Bring in line with trust master
Omnione Jan 5, 2020
e7fae40
• Added most trust scripts.
Omnione Feb 10, 2020
ad904fb
Remove unused include and format
TeoTwawki Feb 11, 2020
293ea9a
Style change
zach2good Feb 20, 2020
f7a0fc7
Rebrand debug breaks
zach2good Feb 20, 2020
128561c
Scripts branding
zach2good Feb 20, 2020
3167fba
Cleanup
zach2good Feb 20, 2020
6b27e22
Remove behaviour scripts
zach2good Feb 20, 2020
f09b9c2
Remove MSCV macro for each loops
zach2good Feb 20, 2020
94a09d1
Add some trust handling code to targetfind
zach2good Feb 21, 2020
db854bc
Rename spell Shantotto_II -> shantotto_ii
zach2good Feb 25, 2020
2acbfc8
General cleanup
zach2good Feb 25, 2020
84af918
Revert "Add new bindings: getJobLevel & hasJob (#386)"
zach2good Feb 26, 2020
aa998f6
Pointer formatting
zach2good Feb 26, 2020
c5571a0
Clean up some warnings
zach2good Feb 26, 2020
203b659
More cleanup
zach2good Feb 26, 2020
d673054
Stealing from various other branches
zach2good Feb 26, 2020
59d3146
Shrink entity update
zach2good Feb 28, 2020
a0a81ed
More trust related items
zach2good Feb 28, 2020
374fb9e
Another tweak
zach2good Feb 29, 2020
95e40f8
Review: Move all trust onMagicCastingCheck and onSpellCast logic to t…
zach2good Mar 14, 2020
04f29ed
Review: Remove canCastTrust core binding
zach2good Mar 14, 2020
0eb8848
Return the things!
zach2good Mar 14, 2020
3e0ab13
Remove currently unused trust party message helper
zach2good Mar 14, 2020
e413ad4
Some debugging of trust.canCast
zach2good Mar 14, 2020
a0752af
Misc fixes
zach2good Mar 14, 2020
188a64e
TRUST lua zone status
zach2good Mar 14, 2020
3274345
Misc party cleanup
zach2good Mar 14, 2020
13964be
Little tidy
zach2good Mar 14, 2020
994cbf1
Fill out Shantotto spell list
zach2good Mar 14, 2020
91a74c5
Revert trust change in ai magic state
zach2good Mar 14, 2020
8dab217
Clean up trust related utils
zach2good Mar 14, 2020
1829430
Audit starting trusts spell lists and zero off spell/skill lists for …
zach2good Mar 15, 2020
b662b39
Zero out skill lists too until theres a plan
zach2good Mar 15, 2020
6c553df
Shantotto spell lists are the same for now
zach2good Mar 15, 2020
71d7dda
Add isValidHealTarget(caster, target) helper
zach2good Mar 15, 2020
aea9b9a
Add ForEachTrust and ForEachTrustInstance
zach2good Mar 15, 2020
60834ff
Revert trust_sync packet until I understand how it works
zach2good Mar 15, 2020
827d6c2
Stop trusts despawning when a mount is present
zach2good Mar 15, 2020
402bc07
Reject trusts in an alliance by default
zach2good Mar 15, 2020
be83ea6
Move trust core logic to trustutils
zach2good Mar 15, 2020
8a14dcb
Clean up trust loading SQL
zach2good Mar 15, 2020
e3de244
TODOs for trust.lua
zach2good Mar 15, 2020
3c5276a
Little cleanup
zach2good Mar 15, 2020
be04a03
Add Monberaux trust spell script, because why not
zach2good Mar 15, 2020
0410d7f
Include Trusts in getParty() and test ROV item limits
zach2good Mar 16, 2020
a423914
Re-add getTrustID binding and clean up getParty lua table building
zach2good Mar 16, 2020
6159e2f
Fix Shantotto vs D Shantotto vs Shantotto II trust exclusion
zach2good Mar 16, 2020
0caf9c0
Load packet_name of trust
zach2good Mar 16, 2020
6dbfbef
Horrible bandaid over cast-on-trust-client-crash
zach2good Mar 16, 2020
bf88a20
The grand re-naming
zach2good Mar 16, 2020
9f229c2
Fix missing '
zach2good Mar 16, 2020
c6f3b96
Spawn trust after creation!
zach2good Mar 16, 2020
d4fec87
OnMobSpawn/OnMobDespawn/OnMobDeath now support trusts
zach2good Mar 16, 2020
f4e801b
Add/fix/test some trust exclusions
zach2good Mar 17, 2020
d064bef
Trusts now die correctly
zach2good Mar 17, 2020
1d97ec6
MobEntity cleanup
zach2good Mar 17, 2020
8604e66
Add trust messages to message_standard.h
zach2good Mar 17, 2020
98c319d
Add trust basic messages
zach2good Mar 17, 2020
aa9aebe
Fix compilation
zach2good Mar 20, 2020
d9170d2
FIX TRUST CASTING CRASH? WHAT?!
zach2good Mar 20, 2020
7558b15
Upgrade !hp command to also use cursor target
zach2good Mar 20, 2020
56acbe2
Add binding: getPartyTrusts
zach2good Mar 20, 2020
6f4b976
return getParty to only returning a table of Players
zach2good Mar 20, 2020
9e3f600
Make getPartySize usable
zach2good Mar 20, 2020
179569e
Hook up trust.canCast with the last few binding changes
zach2good Mar 20, 2020
a7ee7fc
Use trust packet name in party entry
zach2good Mar 20, 2020
0cb99ba
Basic spellcasting from lists and stability
zach2good Mar 20, 2020
fd5f023
Let Kupipi and Ajido Marujido cast spells from their lists
zach2good Mar 20, 2020
67ebbe1
Remove Shantotto chat for now
zach2good Mar 20, 2020
09c7691
Formatting + branding
zach2good Mar 20, 2020
c084d5d
Warp to owner when far away
zach2good Mar 20, 2020
d04c8d1
Add more mob-like stat and hp/mp calculation for trusts
zach2good Mar 20, 2020
105225b
Job checking for MP
zach2good Mar 20, 2020
d8a76f4
Stability
zach2good Mar 20, 2020
4a82db5
Audit a couple of trust jobs
zach2good Mar 20, 2020
5e1718f
General cleanup and make things a little more robust
zach2good Mar 20, 2020
ef44c0a
Yet more cleanup
zach2good Mar 20, 2020
9957143
messageParty placeholder
zach2good Mar 21, 2020
1132d49
Trust random message selection
zach2good Mar 21, 2020
b930787
Tidy tidy
zach2good Mar 21, 2020
fde02e0
Audit all trust jobs
zach2good Mar 21, 2020
c1b9ce1
Hook up weapon speed
zach2good Mar 21, 2020
cfb014b
Remove fake party chat
zach2good Mar 22, 2020
d818688
Re-add Monberaux after confirming spell number from POLUtils
zach2good Mar 23, 2020
d9b607b
Add all remaining trust scripts
zach2good Mar 23, 2020
b92b5ac
Update scripts, rename
zach2good Mar 23, 2020
62b2e98
Maybe fix extra spell
zach2good Mar 23, 2020
4a52f9f
Remove Trust: Cornelia (1003) - she was removed May 2018
zach2good Mar 23, 2020
4708c32
Clear trusts on death
zach2good Mar 24, 2020
5d74550
Remove unused method
zach2good Mar 24, 2020
db0ce11
Add and use MasterHasTopEnmity()
zach2good Mar 24, 2020
4f2506e
Audit mob families of all trusts
zach2good Mar 24, 2020
1101736
Add somewhat-functional declumping
zach2good Mar 24, 2020
36e1d26
lerp, lerp_position and experimenting with weights and distances
zach2good Mar 24, 2020
4321461
Add basic Provoke mobskill
zach2good Mar 24, 2020
22df9fd
Add super basic provoke to the starting tanks
zach2good Mar 24, 2020
85ce5e3
Add listener for enmity changed
zach2good Mar 25, 2020
0ae010a
Replace getPartyTrusts() with getPartyWithTrusts()
zach2good Mar 25, 2020
347e070
Cleaner listener based provoke for Naji
zach2good Mar 25, 2020
fe6fa47
Add sentinel to curilla, basic WSs
zach2good Mar 25, 2020
3dc313c
Remove mobstyle spell casting and add basic curing for Kupipi
zach2good Mar 25, 2020
093516d
Review: Add trust I/II exclusions, fix copy-paste errors and typos
zach2good Mar 26, 2020
8e27135
Review: Lua TODOs
zach2good Mar 26, 2020
92a174f
Review: Core quick fixes
zach2good Mar 26, 2020
1c1d51e
Review: Audit trusts jobs SQL
zach2good Mar 26, 2020
997146a
Clean up trustData search
zach2good Mar 26, 2020
1b7e74e
More obvious usage of GetName() and packetName in packets
zach2good Mar 26, 2020
a9f6110
Clear StateStack on Die()
zach2good Mar 26, 2020
6853f99
ForParty is guaranteed to only be CCharEntity types
zach2good Mar 26, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/commands/addalltrusts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function onTrigger(player, target)
896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,
921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,
946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,
971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,1004,1005,1006,1007,1008,1009,
1010,1011,1012,1013,1014,1015,1016
971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,
996,997,998,999,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019
}

-- validate target
Expand All @@ -45,5 +45,5 @@ function onTrigger(player, target)
end
targ:addSpell(ValidSpells[i], silent, save)
end
player:PrintToPlayer(string.format("%s now has all spells.", targ:getName()))
player:PrintToPlayer(string.format("%s now has all trusts.", targ:getName()))
end
5 changes: 4 additions & 1 deletion scripts/commands/hp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function onTrigger(player, hp, target)

-- validate target
local targ
if (target == nil) then
local cursor_target = player:getCursorTarget()
if cursor_target ~= nil then
targ = cursor_target
elseif target == nil then
targ = player
else
targ = GetPlayerByName(target)
Expand Down
8 changes: 8 additions & 0 deletions scripts/globals/magic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ function getCureAsNukeFinal(caster,spell,power,divisor,constant,basepower)
return getCureFinal(caster,spell,power,divisor,constant,basepower)
end

function isValidHealTarget(caster, target)
return target:getAllegiance() == caster:getAllegiance() and
(target:getObjType() == tpz.objType.PC or
target:getObjType() == tpz.objType.MOB or
target:getObjType() == tpz.objType.TRUST or
target:getObjType() == tpz.objType.FELLOW)
end

-----------------------------------
-- Returns the staff bonus for the caster and spell.
-----------------------------------
Expand Down
15 changes: 15 additions & 0 deletions scripts/globals/mobskills/provoke.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---------------------------------------------
-- Provoke
---------------------------------------------
require("scripts/globals/msg")
require("scripts/globals/status")
---------------------------------------------

function onMobSkillCheck(target,mob,skill)
return 0
end

function onMobWeaponSkill(target, mob, skill)
target:addEnmity(mob, 1, 1800)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly to everyone, not necessarily you, Zach:
I'm okay with these new scripts for now as a testing bed, but we're going to have to come up with some solution to trusts having all the same abilities that players do! The last thing I want is additional burden to maintain an additional copy of weaponskills.

skill:setMsg(tpz.msg.basic.NONE)
end
15 changes: 15 additions & 0 deletions scripts/globals/mobskills/sentinel.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---------------------------------------------------
-- Sentinel
---------------------------------------------------
require("scripts/globals/msg")
require("scripts/globals/status")
---------------------------------------------------

function onMobSkillCheck(target,mob,skill)
return 0
end

function onMobWeaponSkill(target, mob, skill)
target:addEnmity(mob, 1, 1800)
skill:setMsg(tpz.msg.basic.NONE)
end
4 changes: 4 additions & 0 deletions scripts/globals/msg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,8 @@ tpz.msg.basic =
DESPOIL_EVA_DOWN = 597, -- ${actor} uses ${ability}.${lb}${actor} steals a ${item} from ${target}.${lb}Additional effect: ${target} is afflicted with Evasion Down.
DESPOIL_ACC_DOWN = 598, -- ${actor} uses ${ability}.${lb}${actor} steals a ${item} from ${target}.${lb}Additional effect: ${target} is afflicted with Accuracy Down.
DESPOIL_SLOW = 599, -- ${actor} uses ${ability}.${lb}${actor} steals a ${item} from ${target}.${lb}Additional effect: ${target} is afflicted with Slow.

-- TRUST & ALTER EGO
TRUST_NO_CAST_TRUST = 700, -- You are unable to use Trust magic at this time.
TRUST_NO_CALL_AE = 717, -- You cannot call forth alter egos here.
}
2 changes: 1 addition & 1 deletion scripts/globals/spells/cure.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function onSpellCast(caster,target,spell)
end
end

if (target:getAllegiance() == caster:getAllegiance() and (target:getObjType() == tpz.objType.PC or target:getObjType() == tpz.objType.MOB)) then
if isValidHealTarget(caster, target) then
if (USE_OLD_CURE_FORMULA == true) then
basecure = getBaseCureOld(power,divisor,constant)
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/globals/spells/cure_ii.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function onSpellCast(caster,target,spell)
end
end

if (target:getAllegiance() == caster:getAllegiance() and (target:getObjType() == tpz.objType.PC or target:getObjType() == tpz.objType.MOB)) then
if isValidHealTarget(caster, target) then
if (USE_OLD_CURE_FORMULA == true) then
basecure = getBaseCureOld(power,divisor,constant)
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/globals/spells/cure_iii.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function onSpellCast(caster,target,spell)
end
end

if (target:getAllegiance() == caster:getAllegiance() and (target:getObjType() == tpz.objType.PC or target:getObjType() == tpz.objType.MOB)) then
if isValidHealTarget(caster, target) then
if (USE_OLD_CURE_FORMULA == true) then
basecure = getBaseCureOld(power,divisor,constant)
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/globals/spells/cure_iv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function onSpellCast(caster,target,spell)
basepower = 0
end
end
if (target:getAllegiance() == caster:getAllegiance() and (target:getObjType() == tpz.objType.PC or target:getObjType() == tpz.objType.MOB)) then
if isValidHealTarget(caster, target) then
if (USE_OLD_CURE_FORMULA == true) then
basecure = getBaseCureOld(power,divisor,constant)
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/globals/spells/cure_v.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function onSpellCast(caster,target,spell)
end
end

if (target:getAllegiance() == caster:getAllegiance() and (target:getObjType() == tpz.objType.PC or target:getObjType() == tpz.objType.MOB)) then -- e.g. is a PC and not a monster (?)
if isValidHealTarget(caster, target) then -- e.g. is a PC and not a monster (?)
if (USE_OLD_CURE_FORMULA == true) then
basecure = getBaseCureOld(power,divisor,constant)
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/globals/spells/cure_vi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function onSpellCast(caster,target,spell)
basepower = 0
end

if (target:getAllegiance() == caster:getAllegiance() and (target:getObjType() == tpz.objType.PC or target:getObjType() == tpz.objType.MOB)) then
if isValidHealTarget(caster, target) then
basecure = getBaseCure(power,divisor,constant,basepower)
final = getCureFinal(caster,spell,basecure,minCure,false)
if (caster:hasStatusEffect(tpz.effect.AFFLATUS_SOLACE) and target:hasStatusEffect(tpz.effect.STONESKIN) == false) then
Expand Down
14 changes: 0 additions & 14 deletions scripts/globals/spells/trust/Shantotto_II.lua

This file was deleted.

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/aaev.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: AAEV
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/aagk.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: AAGK
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/aahm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: AAHM
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/aamr.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: AAMR
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/aatt.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: AATT
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/abenzio.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: Abenzio
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/abquhbah.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: Abquhbah
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/adelheid.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: Adelheid
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

13 changes: 13 additions & 0 deletions scripts/globals/spells/trust/ajido-marujido.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----------------------------------------
-- Trust: Ajido-Marujido
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end
14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/aldo.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
zach2good marked this conversation as resolved.
Show resolved Hide resolved
-- Trust: Aldo
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
zach2good marked this conversation as resolved.
Show resolved Hide resolved
return tpz.trust.canCast(caster, spell, 1007)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/aldo_uc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: Aldo UC
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need some additional Unity logic later. I don't know how we'd handle adding/removing Unity trusts. But this is far, far in the future. Just noting it here.

And our favorite head of a criminal organization might need to check for himself.

return tpz.trust.canCast(caster, spell, 930)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/amchuchu.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: Amchuchu
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

13 changes: 13 additions & 0 deletions scripts/globals/spells/trust/apururu_uc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----------------------------------------
-- Trust: Apururu UC
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end
13 changes: 13 additions & 0 deletions scripts/globals/spells/trust/arciela.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----------------------------------------
-- Trust: Arciela
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell, 1017)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end
13 changes: 13 additions & 0 deletions scripts/globals/spells/trust/arciela_ii.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----------------------------------------
-- Trust: Arciela II
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell, 965)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end
14 changes: 14 additions & 0 deletions scripts/globals/spells/trust/areuhat.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------
-- Trust: Areuhat
-----------------------------------------
require("scripts/globals/trust")
-----------------------------------------

function onMagicCastingCheck(caster, target, spell)
return tpz.trust.canCast(caster, spell)
end

function onSpellCast(caster, target, spell)
return tpz.trust.spawn(caster, spell)
end

Loading