Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2003, 12:56 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default Quest commands as of 2-17-2003

Lots of folks have had quest related questions lately, so I wanted to post a list of commands here that's up-to-date:

TRIGGERS
TRIGGER_ATTACK - When the NPC attacks
TRIGGER_DEATH - For when the NPC dies
TRIGGER_KILLED - For when the NPC kills someone
TRIGGER_FLAGS - Triggers a set of npc flags and resets them to 0
TRIGGER_ITEM - Works when an item is turned in
TRIGGER_TEXT - Works by either hailing, or saying a specific text

SCRIPT COMMANDS
%CHARNAME% - Says the characters name
%CHARLEVEL% - Says the characters level
%CHARRACE% - Says the characters race
%CHARCLASS% - Says the characters class
FACTION_CHECK - Checks faction, can assign values of 1-6
SAY - NPC will say text
EMOTE - NPC will emote(does NOT do an animation), you can also tie text into this as one line instead of making a seperate say
TEXT - Text will show up after the trigger when this is used
SHOUT - NPC will shout
ADD_HATELIST - NPC will aggro the person triggering when this is used
DEPOP - Causes the NPC to depop
SPAWN_NPC - Spawns an npc, format is SPAWN_NPC npcid
LEVEL_CHECK - Checks the persons level that is triggering
CUMULATIVE FLAG - Works in coalation with TRIGGER_FLAGS
NPC_FLAG - For item turn-ins, format is NPC_FLAG flag# flagvalue
PLAYER_FLAG - Works much like NPC_FLAG in how you assign the flag
EXP - Gives the player exp, format is EXP expvalue
LEVEL - Raises the player to a certain level, format is LEVEL levelvalue
SAFEMOVE - Moves the player to the safepoint of the zone
RAIN - Turns rain on
SNOW - Turns snow on
GIVE_CASH - Gives the player coin in copper amounts, format is GIVE_CASH coinvalue
GIVE_ITEM - Summons the player a specific item, format is GIVE_ITEM itemid itemcharges(for item charges, it's how many of the item you want summoned)
CAST_SPELL - Causes the npc to cast a spell, format is CAST_SPELL spellid
PVP - Changes the players pvp flag, format is PVP ON
CHANGEFACTION - Changes faction, format is CHANGEFACTION factionid factionvalue
DO_ANIMATION - Causes npc to do an animation
FLAG_CHECK - Checks for flags set by the PLAYER_FLAG function
CHANCE - Sets a chance value, so the script only has a chance of running

Some examples:
Code:
TRIGGER_TEXT:Hail:{
PLAYER_FLAG 1 1
EMOTE:smiles, 'Greetings %CHARNAME%. If you are interested, I have some [work] for young %CHARCLASS%'s such as yourself.
}

TRIGGER_TEXT:work:{
FLAG_CHECK 1
SAY:Please go out and collect any rat fur you might find. Return to me when you have four, and I will reward you.
}

TRIGGER_ITEM:2341:{
CUMULATIVE_FLAG
}

TRIGGER_FLAGS 50 4 {
SAY:Excellent job! Here is your reward.
EXP 400
GIVE_ITEM 1193 10
}
END_FILE
That was an example of quite a few of the triggers and commands. The item id's were just whatever popped into my head, so this may or may not work on your server. :P But it's to simulate giving a player a stack of 10 food in return for them collecting rat fur for this NPC.

Code:
TRIGGER_ATTACK {
SAY:Argh, that was a dumb thing to do!
}

TRIGGER_DEATH {
SAY:You've won this time, but perhaps not the next!
}

TRIGGER_KILL {
EMOTE:laughs, 'You were hardly a worthy adversary
}
END_FILE
That was an example of giving an npc things to say when they're in combat, etc.

Code:
TRIGGER_TEXT:Hail:{
SAY:Hello there, would you be [interested] in helping me?
}

TRIGGER_TEXT:interested:{
SAY:That's great to hear! I've lost a few items that might pop up on creatures in the area, they seem to have stolen them. Please bring them back if you can; they're a Cloth Cap, a Cloth Tunic, Cloth Leggings, and Cloth Gloves
}

TRIGGER_ITEM:1001:{
NPC_FLAG 1 1
}

TRIGGER_ITEM:1002:{
NPC_FLAG 2 1
}

TRIGGER_ITEM:1003:{
NPC_FLAG 3 1
}

TRIGGER_ITEM:1004:{
NPC_FLAG 4 1
}

TRIGGER_FLAGS 1 2 3 4 {
SAY:Thank you, %CHARNAME%! Here is your reward.
EXP 250
GIVE_CASH 120
}
END_FILE
That's an example of multiple item types being needed. I still haven't figured out how to use CUMULATIVE_FLAG and NPC_FLAG in conjunction.
Reply With Quote
  #2  
Old 02-17-2003, 05:34 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Nice clean list.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #3  
Old 02-18-2003, 03:50 AM
SponkeyMonkey
Sarnak
 
Join Date: Jan 2003
Location: Underground in a hole
Posts: 30
Default question

What would i type if i wanted a npc too SET my Skill. This is what i have. >>>>>>>>


NPC_SCRIPT 100896{
TRIGGER_TEXT:Hail:{
SAY:Greetings %CHARNAME%, I can Set all your skills too lvl 180 if u wish? [okay]
}
}
TRIGGER_TEXT:okay:{

SAY:Gratz Your skills are now all 180 Thx. have fun. %CHARNAME%,!
}
}
__________________
Reply With Quote
  #4  
Old 02-18-2003, 03:51 AM
Piska's Avatar
Piska
Sarnak
 
Join Date: Sep 2002
Posts: 79
Default

thanks that was just what I was looking for.
__________________
-------------------------------------------------------
EQHost Changer's Web Site
-------------------------------------------------------
Reply With Quote
  #5  
Old 02-18-2003, 05:52 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Unfortunately I think ADDSKILL is only for one skill, so you would have to put in ADDSKILL for each skill you wish to raise(I'll test this and confirm it in a bit).

It would look something like this:
Code:
TRIGGER_TEXT:Hail:{ 
SAY:Greetings %CHARNAME%, I can Set all your skills too lvl 180 if u wish? [okay] 
} 

TRIGGER_TEXT:okay:{ 
SAY:Gratz Your skills are now all 180 Thx. have fun. %CHARNAME%,! 
ADDSKILL 1 180
ADDSKILL 2 180
ADDSKILL 3 180
ADDSKILL 4 180
ADDSKILL 5 180
ADDSKILL 6 180
ADDSKILL 7 180
} 
END_FILE
Then just save it as "100896.qst" if you're using notepad to edit it.
Reply With Quote
  #6  
Old 02-18-2003, 06:19 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Okay I just tested this. ADDSKILL does NOT work correctly. So I'm gonna remove it from the list above to avoid confusion.
Reply With Quote
  #7  
Old 02-18-2003, 06:29 AM
SponkeyMonkey
Sarnak
 
Join Date: Jan 2003
Location: Underground in a hole
Posts: 30
Default k

okay, when do u think a Addallskills Command will be added?
__________________
Reply With Quote
  #8  
Old 02-18-2003, 06:30 AM
SponkeyMonkey
Sarnak
 
Join Date: Jan 2003
Location: Underground in a hole
Posts: 30
Default question

what would i needa type if i wanted a npc too give me item once i turned in an item too him.
__________________
Reply With Quote
  #9  
Old 02-18-2003, 06:32 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

GIVE_ITEM itemid
Reply With Quote
  #10  
Old 02-18-2003, 07:12 AM
SponkeyMonkey
Sarnak
 
Join Date: Jan 2003
Location: Underground in a hole
Posts: 30
Default k?

k this is what i have soo far


NPC_SCRIPT 100899{
TRIGGER_TEXT:Hail:{
SAY:Greetings %CHARNAME%, Do you think you are worthy enough too recieve one of my homemade items? [yes]
}
}
TRIGGER_TEXT:yes:{
SAY:okay, if u goto the Far Reaches of Permafrost, thier will be a Dragon thier called So`vehi Kill it with a group of bout 3 or 4 and it will drop an item called Ring of so`vehi Bring that ring back too me and i will give u a Customed Ring. Good luck %CHARNAME%,!
}
}
GIVE_ITEM 32550
TRIGGER_ITEM 32551

the item i loot of so`vahi is 32550 and i wanna turn it into the npc and he will give me 32551 can u tell me what i needa type plz.
__________________
Reply With Quote
  #11  
Old 02-18-2003, 07:16 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Code:
TRIGGER_TEXT:Hail:{ 
SAY:Greetings %CHARNAME%, Do you think you are worthy enough too recieve one of my homemade items? [yes] 
} 
TRIGGER_TEXT:yes:{ 
SAY:okay, if u goto the Far Reaches of Permafrost, thier will be a Dragon thier called So`vehi Kill it with a group of bout 3 or 4 and it will drop an item called Ring of so`vehi Bring that ring back too me and i will give u a Customed Ring. Good luck %CHARNAME%,! 
} 
TRIGGER_ITEM:32550:{
GIVE_ITEM 32551 1
}
END_FILE
Reply With Quote
  #12  
Old 02-18-2003, 07:20 AM
SponkeyMonkey
Sarnak
 
Join Date: Jan 2003
Location: Underground in a hole
Posts: 30
Default YAY

SWEET AWSOME THX>
__________________
Reply With Quote
  #13  
Old 02-18-2003, 08:15 AM
SponkeyMonkey
Sarnak
 
Join Date: Jan 2003
Location: Underground in a hole
Posts: 30
Default question

what do i type too make a npc flag me 20?
__________________
Reply With Quote
  #14  
Old 02-18-2003, 09:02 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Can't. There aren't any quest commands in the code atm to change status - if that's what you mean anyway.
Reply With Quote
  #15  
Old 02-18-2003, 12:14 PM
RevlinXevlin
Sarnak
 
Join Date: Feb 2003
Posts: 41
Default

Thats a very nice list, but I'm missing something a little more basic:

Say I have an idea for a quest and I type up the text for it and it's all correct ... what do I do then ?

How do I save it, into what file format, if I smack it into the quests folder in eqemu will it work automatically ?

Stuff like that.
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 11:16 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