EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Bugs (https://www.eqemulator.org/forums/forumdisplay.php?f=622)
-   -   NPC Scripting Error - is it just me? (https://www.eqemulator.org/forums/showthread.php?t=997)

mByte 04-03-2002 08:47 AM

NPC Scripting Error - is it just me?
 
I get this when ever I try to use my scripting. This also crashes the zonent.exe file and boots my characters in the zone to character select.

http://66.12.139.58/images/qsterror.gif

my script is simple

NPC_SCRIPT 2006{
TRIGGER_TEXT:Hail:{
SAY:Hiya
}
}

N E ideas?

mByte 04-03-2002 12:06 PM

it works in the zone9x.exe fyi

Lurker_005 04-03-2002 12:30 PM

Just a wild guess, is there extra charage returns after the last }

I have no idea if it matters, just a thought.

strychn 04-03-2002 04:34 PM

only problem i've had with the scripting was that TRIGGER_ITEM doesn't seem to work.

Lyenu X`Arie 04-04-2002 06:30 PM

Re: NPC Scripting Error - is it just me?
 
Quote:

Originally posted by mByte
NPC_SCRIPT 2006{
TRIGGER_TEXT:Hail:{
SAY:Hiya
}
}
Here is the fix:
Code:

NPC_SCRIPT 2006{
TRIGGER_TEXT:Hail:{
SAY:Hiya
}

You just had 1 to many ending spaghetti lines ;-)

strychn 04-08-2002 06:44 PM

fixed trigger item...
changed:

CheckQuests(zone->GetShortName(), "%%item%%", tmp->GetID(), TradeList[0]);

to:

if (tmp->IsNPC()) { CheckQuests(zone->GetShortName(), "%%item%%", tmp->CastToNPC()->GetNPCTypeID(), TradeList[0]);
}}

in client_process.cpp.

this way it passes the correct ID to checkquests.
:)


All times are GMT -4. The time now is 11:56 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.