Ahhhh yes that's it.
That's cause the $shardIds value isn't defined anywhere. For me, it's my currency.
Let's say you want gold to be the currency, change getitem $shardIds[0], .@amount; by getitem 969, .@amount; or whatever you want the currency to be.
If you don't want to use item as currency, symply comment the getitem line, and uncommande the points one to use any kind of point you have on your server.
@Radian nope sorry, forgot about this file, it's only for herc use right now. I'll rewrite it for rathena, but it can't be easily right now as there's several missing functions.