PtokaX forum

Development Section => Your Developing Problems => Topic started by: Wolfbane99 on 21 May, 2004, 14:34:07

Title: Gotta Override!
Post by: Wolfbane99 on 21 May, 2004, 14:34:07
I've made a script with a new command that will substitute the command implemented in a bot...but i cannot override it! The bot-command comes before my indipendent-command!

Some ideas? ah, i can't disable the command and cannot delete the command from the bot
Title:
Post by: NotRabidWombat on 21 May, 2004, 14:47:13
Change the name of the script to be something like: aaa_scriptname.lua. Then look in the script loading window to make sure the script that you want to catch the data first is loaded first. The order the scripts are loaded is the same order they recieve data.

-NotRabidWombat
Title:
Post by: Wolfbane99 on 26 May, 2004, 11:10:27
it's not running...i cant make the script go on top of the loaded scripts in ptokax... thanks however for the hint...some other ideas?
Title:
Post by: plop on 26 May, 2004, 15:16:26
also rename the other script but now with zzzzzzzzz infront of the name.

plop
Title:
Post by: Wolfbane99 on 27 May, 2004, 08:25:47
that's the right answer!  ;)
thx a lot guys! however is strange that i must rename the other script even if the script was already in alphabetical order...
Title:
Post by: Wolfbane99 on 04 June, 2004, 00:35:31
up!

i got a new problem!
the trick used to drop in the alphabetical order the gotta-override script worked only with the 3.2.6 td 4
But i got a new version and that isn't workin...even if the script dropped down in the list...ideas?
Title:
Post by: plop on 04 June, 2004, 01:30:37
make them 1 script.
not easy 2 do on all scripts but definatly solves it.

plop
Title:
Post by: Wolfbane99 on 04 June, 2004, 14:16:03
cannot do that, the bot i'm trying to override is compiled
Title:
Post by: SaintSinner on 04 June, 2004, 14:46:10
if its compiled and you cant edit that one then change the command you created:
 
if its
!rules
try
!hubrules

if its
!kick

try
!kill
Title:
Post by: NotRabidWombat on 04 June, 2004, 16:43:20
"But i got a new version and that isn't workin...even if the script dropped down in the list...ideas?"

Submit a bug report and go back to a previous version. That's the way betas are.

-NotRabidWombat
Title:
Post by: Wolfbane99 on 05 June, 2004, 02:11:05
QuoteOriginally posted by SaintSinner
if its compiled and you cant edit that one then change the command you created:

but i'm trying to override the command, i dont want another one  :P

QuoteOriginally posted by NotRabidWombat
Submit a bug report and go back to a previous version. That's the way betas are.

yup,k  :D