Getting a free partyhat in RuneScape isn't really possible anymore. They used to drop from party crackers, but ever since those were removed, very few have entered the game.
Nowadays, if you want one, you'll have to buy it from the Grand Exchange, where they go for a hefty sum, around 40 million gp. So while they were once a fun freebie, they've become quite the expensive collector's item.