Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2011, 05:13 PM
Shamanistik08
Sarnak
 
Join Date: Apr 2011
Posts: 47
Default Bot nameand quest

Not really sure where to post that, so I'll try here for now..

Ok, I decided to compile with bots this time, so here's my problem/question

I would like people to have only one bot at a time max, that I know how to do it.

But I would like to give them bots by questing, so I found the plugin that do it.

Code:
sub EVENT_SAY {

  if($text =~ /Hail/i) {    
  quest::createBot(firstname, lastname, int 20, int 7, int 1, int male);
  }}
But apparently, only one name can be given. which mean if I do quest::creatbot (Soandso, int 20, int 7, int 1, int male) the first who will finish the quest will get the bot, others will have "name already exist" error message.
Since NPCs can have same names, why can't the bots?? like Soandso00 Soandso01 etc..

Anyone can point me the right direction to do that?
Also, what is the isbot column in npc_types? I feel I could do something to resolve my problem with that.

Thanks in advance
Reply With Quote
  #2  
Old 05-23-2011, 08:28 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

I wrote this function, and didn't implement something to handle duplicate quest names. If roleplaying names aren't important to you, you can make the name something like "SoAndSo's cleric" to work around duplicates. Otherwise, you could use a qglobal to flag the char to be able to create a bot and prompt them for a name (eg. /say call my bot AwesomeBot, and use a regular expression to extract 'AwesomeBot'), check if the bot was created successfully, and clear the global if it was.

You could also modify the function to append _00n if a duplicate name is found, but that would take more work than I have time for right now.
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 03:09 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