Welcome to the Builder Academy

Question Warrior skill whirlwind doesn't work.

More
03 Jul 2016 20:07 #6077 by thomas
My first thought was that the ch* pointer (pMudEvent->pStruct) is now pointing to someone who's died or is otherwise transported to NOWHERE.

On which line does the crash happen?

Please Log in or Create an account to join the conversation.

More
03 Jul 2016 20:47 #6080 by zusuk
Like Thomas said, off the top of my head, somehow being in NOWHERE would be a BOOM. I imagine if you are in the menu (death) when the event was running might cause some issues?

I think we added some dummy checks in our version of whirlwind before we removed it, something to the effect of:
Code:
/* dumb dumb checks */ if (!IS_PLAYING(ch->desc)) return 0; if (!IN_ROOM(ch)) return 0; if (GET_HIT(ch) < 1) /* makes sense right? */ return 0;

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

More
04 Jul 2016 14:46 - 04 Jul 2016 14:59 #6082 by Errigour
I'll try those checks. Also I finally got it to crash again it happened when I attacked a protected mob this was the line it crashed on:
196 pContent = pIterator->pItem ? pIterator->pItem->pContent : NULL;
Last edit: 04 Jul 2016 14:59 by Errigour.

Please Log in or Create an account to join the conversation.

Time to create page: 0.229 seconds