Regarding conforming to KSI-GS:
You have two successive checks of the same event. :-\
Rather than doing:
NPC Code:
if (event1 && condition1) {
dostuff();
}
if (event1 && condition2) {
dootherstuff();
}
Do:
NPC Code:
if (event1) {
if (condition1) {
dostuff();
}
else if (condition2) {
dootherstuff();
}
}
Also, you are using one equals sign for comparisons - bad!