Log in

View Full Version : Rof2 Spell ID


freewind1
01-16-2015, 07:09 PM
I created a new spell called "the returning" id is 33000 and added it to my item but upon my reboot the item does not have a clicky, i tested this by using #iteminfo and found that the spellID is negative (-32536 to be exact). Although the spell seems to work fine when tested in game using the #findspell and #castspell GM commands. I'm at a loss as to why this is happening and hoping for some help, thanks

rencro
01-16-2015, 07:29 PM
Looks like integer roll over if you do the math..Also, Im not sure what the highest supported spell id is per client, theres a list somewhere...

Try using a much lower spell id..

bufferofnewbies
01-16-2015, 11:14 PM
if spells are using a 16 bit signed format, then the max number for spells is (2^16/2)-1 or 32767.

Not sure why spells would be using + and - numbers, as it would go up to 65535 for just positive numbers.