Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Tools

Archive::Tools Archive area for Tools's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2003, 01:46 AM
Damilis's Avatar
Damilis
Hill Giant
 
Join Date: Dec 2002
Location: Nottingham!!
Posts: 217
Default Yet another thread about scripting woes

Okay. I have spent several hours sifting through thousands of forum entries and have come up with nothing other tha confusion. I am trying to do scripts for NPCs. I have created a \quests\ dir and have downloaded some .qst files off these boards to test. I read that the ID#s might not match so i fired up EQAdmin and checked that the NPC i was working with had a .qst and that the id# of the file and in the file were the same as the NPC. so far so good. Login, and 'hail' and no luck.
So i #repoped the zone, nothing. #zoned put then back in, nothing. Hell, even did a reboot of the server, nothing.
Then i read about "oh there might be improper spacing in the .qst file, check the thread about scripting." Pretty sure it doesnt exsist, been looking for a while. Been checking the Zone window regularly and it hasnt given me any "cant find quests\blahblah.qst" whether there is a matching NPCID.qst or not, so i dunno if its even looking for them. Cant find any of these supposed quest making utilities either. Found the threads where the USED to be, but no longer.
Is there any code i have to add? or is my spacing in the files? am i just thick?
I can tell you one thing for sure, i am frustraited as hell because it seems to work for everyone else. Grrrrrrrr. Some insight from those more clairvoyant than me please!

(Please dont tell me to look for a 'sticky' on How to make a quest, cause the only one i found is a discussion on advanced commands AFTER scripting is already working...i looked.)
Reply With Quote
  #2  
Old 02-16-2003, 05:34 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

My suggestion is to make a new guest, very simple, just a hail and response. See if that works. You might also want to try posting a zip of some of the quests for others to check over.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #3  
Old 02-16-2003, 06:01 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Try this:

Code:
TRIGGER_TEXT:Hail:{
SAY:Greetings, %CHARNAME%. How are you today?
}

TRIGGER_TEXT:I am fine:{
EMOTE:smiles, 'That's great to hear!
}
END_FILE
Other triggers are: TRIGGER_ITEM(item turn-ins), TRIGGER_DEATH(npc death, like if you want to spawn a mob on another mobs death), TRIGGER_ATTACK(for when the mob aggros, but this seems broken atm), and TRIGGER_FLAGS(check wiz's tutorial for his changes for info on this one).

Some common scripts that are run by the triggers: SAY, TEXT, EMOTE, NPC_FLAG(check wiz tutorial), SPAWN_NPC, SPAWN_ITEM, GIVECASH, DEPOP, ADDHATELIST(causes the npc to agro on a person when the trigger is run), FLAG_CHECK(see tutorial), CHANCE(chance for the script to happen when the trigger is run), and FACTION_CHECK.

There are a few others I'm probably forgetting, but those should all work.

Post a sample of one of your quests and I'm sure someone would be willing to help you figure out what went wrong.
Reply With Quote
  #4  
Old 02-16-2003, 09:30 AM
Damilis's Avatar
Damilis
Hill Giant
 
Join Date: Dec 2002
Location: Nottingham!!
Posts: 217
Default

Heres what i am running with. I am using the Aenia chick from qeynos2. EQadmin says her id is 121035 but the file i downloaded had her as ID 16. I tried putting in 121035 as ID and no joy. Also tried what her NPCSTATS returned as: aenia_ghenson00, again, no joy. *Bangs head on desk*


Filename: 121035.qst

Code:
# Aenia Ghenson, N Qeynos 121035 
NPC_SCRIPT 16 {
TRIGGER_TEXT:Hail:{
SAY:Why, hello there!  I'm Aenia, daughter of Dranom.  It's such a bore just sitting around here all day and night.  My father is soooooo overprotective! He never lets me go out and have any fun at all.  And he's so mean to my poor [boyfriend]!
}

TRIGGER_TEXT:boyfriend:
SAY:My boyfriend's name is Behroe Dlexon.  He is so dreamy..  <sigh>..  But, I haven\'t been able to see him lately.  He works nights down at the docks, and with my father here all day, we just can't seem to get together.  Oh, how I wish I could speak with him..
}

# Behroe's ballad
TRIGGER_ITEM:18026:{		
SAY:Oh.. My Behroe is so sweet. Oh, how I long to see him. Please, oh please, kind %CHARNAME%, can you do me but one favor? Here, quickly, before my father returns.. take this letter to my love, Behroe. I have no money to offer you, but as you are a friend of his, so are you a friend of mine, and I will not forget your good deeds Vaslin. Thank you and be safe.
SPAWN_ITEM 18027
}
}

Anyone pick out my noob mistakes? (I sure can't)
Reply With Quote
  #5  
Old 02-16-2003, 09:40 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

With the recent code changes wiz made you don't have to have the NPC_SCRIPT line in the quest file, try this:

Code:
# Aenia Ghenson, N Qeynos 121035 
TRIGGER_TEXT:Hail:{ 
SAY:Why, hello there!  I'm Aenia, daughter of Dranom.  It's such a bore just sitting around here all day and night.  My father is soooooo overprotective! He never lets me go out and have any fun at all.  And he's so mean to my poor [boyfriend]! 
} 

TRIGGER_TEXT:boyfriend:{
SAY:My boyfriend's name is Behroe Dlexon.  He is so dreamy..  <sigh>..  But, I haven\'t been able to see him lately.  He works nights down at the docks, and with my father here all day, we just can't seem to get together.  Oh, how I wish I could speak with him.. 
} 

# Behroe's ballad 
TRIGGER_ITEM:18026:{       
SAY:Oh.. My Behroe is so sweet. Oh, how I long to see him. Please, oh please, kind %CHARNAME%, can you do me but one favor? Here, quickly, before my father returns.. take this letter to my love, Behroe. I have no money to offer you, but as you are a friend of his, so are you a friend of mine, and I will not forget your good deeds Vaslin. Thank you and be safe. 
SPAWN_ITEM 18027 
}
END_FILE
Reply With Quote
  #6  
Old 02-16-2003, 10:03 AM
Damilis's Avatar
Damilis
Hill Giant
 
Join Date: Dec 2002
Location: Nottingham!!
Posts: 217
Default

Argh, so annoying. The last change made perfect sence, but still no worky worky.
More info:
this npc is ID 121035, belongs to spawngroup# qeynos2121035, is named Aenia_Ghenson, and is the only "aenia" in the bloody zone.

I put in the code exactly as you suggested Killspree, and verified that the filename is 121035.qst and in a eqemu\quests\.

Hell i even shutdown the server and MySQL and brought it back up, just to make sure the changes took. From all my research, it should be working. but its not. grrrrr.
Any more ideas? anyone? Please?
Reply With Quote
  #7  
Old 02-16-2003, 10:10 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Hmm, try this.

When you save the file, type in "121035.qst".

Save it like that, with the quotation marks, and see if it works.
Reply With Quote
  #8  
Old 02-16-2003, 10:23 AM
Damilis's Avatar
Damilis
Hill Giant
 
Join Date: Dec 2002
Location: Nottingham!!
Posts: 217
Default

Still a nogo man. Is there anyway to tell if the ID that EQAdmin is giving me is bad? i mean, is there a way to pull up a DB id ingame to verify?
Reply With Quote
  #9  
Old 02-16-2003, 10:29 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Yeah, target the NPC in question and type #showstats. It'll give you the npc info there, and should show the individual id.
Reply With Quote
  #10  
Old 02-16-2003, 10:34 AM
Damilis's Avatar
Damilis
Hill Giant
 
Join Date: Dec 2002
Location: Nottingham!!
Posts: 217
Default

You rule, its working now. appearently, EQAdmin isnt reporting IDs right. It said 121035 when in game is 121034. But it seems to be working now thanks.
Reply With Quote
  #11  
Old 02-16-2003, 10:12 PM
Damilis's Avatar
Damilis
Hill Giant
 
Join Date: Dec 2002
Location: Nottingham!!
Posts: 217
Default

NM about that ID mismatch, Noob Mistake. All is well.
Reply With Quote
  #12  
Old 02-17-2003, 05:58 AM
SponkeyMonkey
Sarnak
 
Join Date: Jan 2003
Location: Underground in a hole
Posts: 30
Default

hello im trying too get the Preist of discord guy too make me pvp , i can get him too talk too me and such i just cant get him too make me pvp hwen i say yes. Ne ideas?

NPC_SCRIPT 124478{
TRIGGER_TEXT:Hail:{
SAY:Greetings %CHARNAME%, Would you like you like to go PvP [yes]
}
}
TRIGGER_TEXT:yes:{
#pvp on %CHARNAME%
SAY:Have a Safe Journey %CHARNAME%
}
}
__________________
Reply With Quote
  #13  
Old 02-17-2003, 12:14 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Try this:

Code:
#Priest of Discord 124478
TRIGGER_TEXT:Hail:{ 
SAY:Greetings %CHARNAME%, Would you like you like to go PvP [yes] 
} 
TRIGGER_TEXT:yes:{ 
PVP ON
SAY:Have a Safe Journey %CHARNAME% 
}
END_FILE
Remember to save it as "124478.qst". You don't need NPC_SCRIPT anymore, but make sure to have END_FILE at the end of the script.

EDIT: I found what might be your problem. You were trying to use an emu command in the quest. You can't do that, but there used to be a PVP switch in quest scripting(not sure if it's still in) - so I updated the above script and it should work if that switch is still in.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:47 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3