Author Topic: How do I call on this.... PtokaX  (Read 2380 times)

0 Members and 1 Guest are viewing this topic.

Offline XPMAN

  • Double Ace
  • *
  • Posts: 106
  • Karma: +1/-0
How do I call on this.... PtokaX
« on: 29 May, 2005, 08:25:09 »
First, thanks alot for the tutorial on the rightclick, been working for while on putting it together :)

A problem for me though, simply cause i am still in learning mode ...lol, is I cannot get the text files called right in PtokaX. I wish to use the built in TEXT function, but nothing works. I can call the hub commands such as

Code: [Select]
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\Your Inbox$<%[mynick]> !inbox ||")
But when i try the same syntax to display a txt in the text folder in the PtokaX folder, it simply shows the command in chat, not the text file.

I tried using the same :
Code: [Select]
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\How to use$<%[mynick]> !itest ||")
But it only displayed  !test  in main chat instead of the txt file it was suppose to. I thought i was doing good till I hit this ...lol . I realize i could probably use a text bot, but I like the built in one in the hub software + its bugging the freaking #@%#$ out of me cause i know it can be done........ or can it?

Any help on this I would really appreciate.

PtokaX forum

How do I call on this.... PtokaX
« on: 29 May, 2005, 08:25:09 »

Markitos

  • Guest
(No subject)
« Reply #1 on: 29 May, 2005, 09:44:50 »
Quote
Originally posted by XPMAN
First, thanks alot for the tutorial on the rightclick, been working for while on putting it together :)

A problem for me though, simply cause i am still in learning mode ...lol, is I cannot get the text files called right in PtokaX. I wish to use the built in TEXT function, but nothing works. I can call the hub commands such as

Code: [Select]
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\Your Inbox$<%[mynick]> !inbox ||")
But when i try the same syntax to display a txt in the text folder in the PtokaX folder, it simply shows the command in chat, not the text file.

I tried using the same :
Code: [Select]
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\How to use$<%[mynick]> !itest ||")
But it only displayed  !test  in main chat instead of the txt file it was suppose to. I thought i was doing good till I hit this ...lol . I realize i could probably use a text bot, but I like the built in one in the hub software + its bugging the freaking #@%#$ out of me cause i know it can be done........ or can it?

Any help on this I would really appreciate.

Check in ur ptokax the function Enable text files suport if u activated nd still getin the problem try plop's texter

Cheers...

Offline jiten

  • Scripter
  • Forum Legend
  • ******
  • Posts: 1 577
  • Karma: +71/-5
(No subject)
« Reply #2 on: 29 May, 2005, 10:03:39 »
Try this:

1. Copy your .txt files to your PtokaX/texts folder (you've done this);
2. Go to the Options tab and tick "Enable text files support";
3. Then, reload the .txt files with "!reloadtxt" in main;
4. Type !"filename" and the file content should appear.

Best regards

Offline XPMAN

  • Double Ace
  • *
  • Posts: 106
  • Karma: +1/-0
Already did...
« Reply #3 on: 29 May, 2005, 10:15:11 »
Did all that, my problem is....... it works fine as long as its typed in main chat. I was trying to figure out how to call upon the txt files in the text folder in my rightclick script i am working on. It simply sends the command..ex..   !test  in main chat without showing the file, while i can type  !test  in main chat and it shows the file like its suppose to. I am thinking it may be because the script is trying to call upon a file "outside" the scripts folder. I assumed it would work since the command is still sent to main chat.

Just can seem to get it to work in a right click :(

Offline jiten

  • Scripter
  • Forum Legend
  • ******
  • Posts: 1 577
  • Karma: +71/-5
(No subject)
« Reply #4 on: 29 May, 2005, 10:54:25 »
Try these:
Code: [Select]
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\Your Inbox$<%[mynick]> !inbox||")
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\How to use$<%[mynick]> !itest||")
The Main difference is the extra space between the command and the &.

Cheers m8

Offline XPMAN

  • Double Ace
  • *
  • Posts: 106
  • Karma: +1/-0
Thank u..
« Reply #5 on: 29 May, 2005, 15:37:50 »
duh................a space......lol  imagine that :)  Thanks buddy. Setting up profile specific........ i am sure i will get stumped again and need help....lol  You guys are great!!!  Thanks again.

Offline jiten

  • Scripter
  • Forum Legend
  • ******
  • Posts: 1 577
  • Karma: +71/-5
(No subject)
« Reply #6 on: 29 May, 2005, 21:02:15 »
Quote
Originally posted by XPMAN
duh................a space......lol  imagine that :)  Thanks buddy. Setting up profile specific........ i am sure i will get stumped again and need help....lol  You guys are great!!!  Thanks again.
Indeed, sometimes a simple thing can give us more headaches than a bigger one :D

Best regards

PtokaX forum

(No subject)
« Reply #6 on: 29 May, 2005, 21:02:15 »