<attribute key="runeSpellName" value="adevo ina" />
Yee i removed but still works becouse i create the changes sex run and now i don't want spell "Adevo Ina" but i want that changes sex rune must "stay"
#Edit.
again explein.
I changed chameleon rune to sex rune but i don't want spell which change blank rune for chameleon(sex rune). What i can remove this?
You do not need to be rude. We are only trying to help.@ups
If you have nothing to say please don't say i said i removed but this still warks
<item id="2291" article="a" name="chameleon rune">
<attribute key="runeSpellName" value="adevo ina"/> -- this line.
<attribute key="type" value="rune"/>
<attribute key="weight" value="210"/>
</item>
[10/03/2015 17:35:55] [Warning - Event::loadScript] Event onCastSpell not found (data/spells/scripts/sex_rune.lua)
When removed
This is an action script, add it to actions or change function onUse to function onCastSpell.But i have and doesn't work
My code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local sex = (getPlayerSex(cid) == 0 and 1 or 0)
return (doPlayerSetSex(cid, sex) and doRemoveItem(item.uid) and doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED))
end
This is an action script, add it to actions or change function onUse to function onCastSpell.
If you want to make it a (rune) spell, remove doRemoveItem(item.uid) since item isn't a parameter in function onCastSpell.