MadaraTajima
God Of Konoha " Hidden Leaf "
Hello OTLand ..
I've this question about if i can add storage value to spell
I want to create a server with rebirths and change vocations
Ex: i'm knight and i will rebirth to druid , so instead of making many vocations can i use storage on spells
so Ex: if you get rebirth from knight to druid " storage 1234 will be 1 "
but can i make spell knight can use and this storage can use
Ex: spell annihilation for knight i want druid can use it if he has storage 1234 = 1
so if i did this in annihilation.lua
not tested yet , but i ask lua expert if this will work xD
I've this question about if i can add storage value to spell
I want to create a server with rebirths and change vocations
Ex: i'm knight and i will rebirth to druid , so instead of making many vocations can i use storage on spells
so Ex: if you get rebirth from knight to druid " storage 1234 will be 1 "
but can i make spell knight can use and this storage can use
Ex: spell annihilation for knight i want druid can use it if he has storage 1234 = 1
so if i did this in annihilation.lua
Code:
function onCastSpell(creature, variant)
if player:getStorageValue(1234) == 1 or not isInArray({4, 8}, player:getVocation():getId()) then
return combat:execute(creature, variant)
else player:sendTextMessage(MESSAGE_INFO_DESCR, "You maybe not Knight or has been Rebirthed yet.")
end
end