Need help... Bot quest...
Code:
##Bot Script ##Made by Dirge |
Are you setting the bot_spawn_limit qglobal in another script, cause I don't see you setting it anywhere in that script. Without it being set, it will fail to get a numeric value since it is undefined. You should do a defined check before trying to get a qglobal value.
Also, if you are missing the Whisper plugin in your plugins folder, that will cause an issue. You should be able to test if it works by replacing plugin:Whisper with quest::say throughout the script. |
Quick response, I like it. I've set it to quest::say, still get the error of nothing... No other scripts have been placed. The Q global has 5 bot_spawn_limit's this is where I'm confused at... Listed below is all of them that I see... As I said, I copied the one directly from the Bazaar and put him in the Nexus, and it STILL didn't work (he wouldn't talk to me, yet he would in the Bazaar)...
Code:
ID: 215 charid: 438 NPCID: 0 zoneid: 0 Name: bot_spawn_limit Value: 0 Code:
ID: 198 charid: 1 NPCID: 0 zoneid: 0 Name: bot_spawn_limit Value: 1 Code:
ID: 62 charid: 41 NPCID: 0 zoneid: 0 Name: bot_spawn_limit Value:6 Code:
ID: 228 charid: 507 NPCID: 0 zoneid: 0 Name: bot_spawn_limit Value:0 Code:
ID: 213 charid: 429 NPCID: 0 zoneid: 0 Name: bot_spawn_limit Value:0 |
what is it that isn't working?
|
your logic was a bit convoluted, had redundant checks, and at least one part was never going to be triggered (see highlights). also, when you were incrementing $botcount, it wasn't updating the qglobals, which it seemed to appear what you intended.
Quote:
Code:
##Bot Script ##Made by Dirge |
Hmm I'll try that out, Harmtouch made the script originally.
|
So tried it, it didn't set the bot limit...
|
probably because i forgot to include the duration parameter in my calls to quest::setglobal();
Code:
quest::setglobal(varname,value,options,duration) |
Also, make sure that the NPC entry in the npc_types table has qglobal enabled. There is a field setting for that and if it is set to 0 (default), it won't load/read qglobals at all.
|
This wouldn't work on a stock server setup that already has bots enabled where people can spawn a whole bunch of bots at once, correct? Because all they would have to do is not talk to the NPC and they could spawn all kinds of bots.
So I guess my question is, what needs to be set in order for this quest to work with every character from the start. I have a quest file just like this, but it relies on items being turned in for enabling more bots. I changed it to level based, but I want to know what settings in the database or anywhere else I need to change so that:
|
rule_values table:
Code:
Bots:QuestableSpawnLimit Then the server will use the type 5 quest global "bot_spawn_limit" for each player. To initialize this, place this in the global_player.pl (assuming you use Perl): Code:
sub EVENT_CONNECT { |
You're a badass. Thanks a ton.
|
Quote:
|
All times are GMT -4. The time now is 03:34 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.