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:{ Code:
TRIGGER_ATTACK { Code:
TRIGGER_TEXT:Hail:{ |
Nice clean list.
|
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%,! } } |
thanks that was just what I was looking for.
|
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:{ |
Okay I just tested this. ADDSKILL does NOT work correctly. So I'm gonna remove it from the list above to avoid confusion.
|
k
okay, when do u think a Addallskills Command will be added?
|
question
what would i needa type if i wanted a npc too give me item once i turned in an item too him.
|
GIVE_ITEM itemid
|
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. |
Code:
TRIGGER_TEXT:Hail:{ |
YAY
SWEET AWSOME THX>
|
question
what do i type too make a npc flag me 20?
|
Can't. There aren't any quest commands in the code atm to change status - if that's what you mean anyway.
|
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. |
All times are GMT -4. The time now is 10:55 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.