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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-09-2003, 07:01 AM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Excellent addition... I certainly hope Wes picks this one up in his new code.

One suggestion though: Perhaps a checkslot(slotnumber), or a getfreeslot() routine would compliment this function nicely. Blindly tossing a backback in a slot that may be occupied by other important inventory might not be the greatest idea.

Not very familiar with the quest scripting, but you get the idea...

Code:
if($1 == "i am naked") { 
    $emptyslot = getfreeslot()
    if ($emptyslot != 0) {
        say("Very well, here you go $name, a nice new backpack with some clothing inside!") 
        placeitem($emptyslot,"17969","1") 
        $bagbase = 250 + (($emptyslot - 22) * 10)
        placeitem($bagbase,"1001","1") 
        placeitem($bagbase + 1,"1002","1") 
    } else {
        say("It appears you don't have room to carry this bag of goodies, come back to me when you have unencumbered yourself a bit.")
    }
}
Regards,

krich
Reply With Quote
 

Thread Tools
Display Modes

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 06:02 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