Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2008, 02:15 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default items run scripts?

can you make an item run a quest script?

i saw on one server where someone had a box or something that summoned a portable banker thought that was kinda cool and it got me thinking. could you do other things with that.

i cant even figure out how they summoned the banker much less doing something else with it but would be a nice thought maybe click the item every 1 hour and summon a new item that does something else but you only want the player to be able to do it once in a while.

like in wow how you can summon spell cloth and stuff every so many days for crafting would be cool to do something like that maybe.

well anyways can it be done and how if so?
Reply With Quote
  #2  
Old 06-18-2008, 02:30 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Scripts have to be run from NPCs. And that was my server that you saw the banker clickie. All I did was to make a new pet in the NPC_Types and Pet tables and then make it a banker. Then, I used one of the spells called "Free spell" and set it to summon the banker pet. Then just put that spell on a clickie item.

Using that same idea, you could theoretically make a pet with a certain name (I think) and then assign a quest script to it. You could even make the pet invisible and untargetable, so it is as if it isn't even there. Then, the NPC (pet) would execute whatever quest you have assigned for it to run. You could set it for certain zones only or all zones. You can also set the recast timer on the clickie item so it can only be used so often.

Interesting idea, really lol. I may have to put some thought into that...
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 06-18-2008, 02:52 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

to do it that way would all the players need the spell file since its being clicked from an item or can that be done server side only?
Reply With Quote
  #4  
Old 06-18-2008, 02:54 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

My banker item works perfectly fine server side only, but players will see the spell name as "Free Spell" instead of "Summon Banker" if they don't have my custom spell file. Minor reason to require a custom spell file, but I add it in mine since I have quite a few other reasons to have a custom file.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 06-18-2008, 02:59 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

ok cool ill play around with it and let you know how it turned out. thanks for the help and your right it was your server so thanks for the ideal also
Reply With Quote
  #6  
Old 06-18-2008, 03:17 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

hmm sitting here thinking about it and trying to figure out how to trigger it i started thinking of using the EVENT_SPAWN but would that trigger as the player that spawned the "pet" or would it trigger by the npc spawning?

im thinking the "pet" will spawn give an item to the player then depop.

but im finding myself having a hard time thinking of how to find the player to give the item to.

and how would i make the pet invisible and untargetable? is there a special attack field i have to put in or a model that don't have a graphic?
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:35 AM.


 

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