How Do I Get a Simple New Release Script
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

How Do I Get a Simple New Release Script

Started by s1m0nlx, 18 August, 2005, 13:57:18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

s1m0nlx

I'm running a hub and i just need a simple New Release Script
where people can type like !read (and get newly added stuff)
and !write (to add new stuff to the list) ive tried every version i can find of FreshStuff and its too complicated.. theres too many features and every version i downloaded WONT work.

Pleas help!

bastya_elvtars

I just don't get why the latest version of FreshStuff is complicated for you, since it's having right-click support. It works with the latest PtokaX only.
Everything could have been anything else and it would have just as much meaning.

s1m0nlx

ive tried freshstuff3 4.2 and when i right click theres no options

no version works

maybe can someone tell me where to put the file.. if i need to create any other files?

all i did was download the .lua file and put it in scripts and loaded it

s1m0nlx

The bot loads up in the member list but theirs no options in the right click menu

bastya_elvtars

QuoteOriginally posted by s1m0nlx
The bot loads up in the member list but theirs no options in the right click menu

You have to reconect.
Everything could have been anything else and it would have just as much meaning.

s1m0nlx

i did that i stopped my hub and restarted it.. closed dc++ and repopened it
nothing

bastya_elvtars

QuoteOriginally posted by s1m0nlx
i did that i stopped my hub and restarted it.. closed dc++ and repopened it
nothing

Works fine here. Are there any errors?
Everything could have been anything else and it would have just as much meaning.

imby

Maybe 'accept custom user commands from hub' needs to be checked.

s1m0nlx

sorry im a PtokaX newbie
wheres that option at?

bastya_elvtars

QuoteOriginally posted by s1m0nlx
sorry im a PtokaX newbie
wheres that option at?

In DC++ Settings/Advanced

Also make sure you have the latest PtokaX version.
Everything could have been anything else and it would have just as much meaning.

s1m0nlx

ive done everything i still cant get it to work
NO right click menu for it
no commands work for it
it wont even load
in Ptoka X it wont even let me check the box under the scripts section it says FreshStuff.ini cannot be found for Freshstuff_2.5.9.lua

nothing works

bastya_elvtars

QuoteOriginally posted by s1m0nlx
ive done everything i still cant get it to work
NO right click menu for it
no commands work for it
it wont even load
in Ptoka X it wont even let me check the box under the scripts section it says FreshStuff.ini cannot be found for Freshstuff_2.5.9.lua

nothing works

Use this.

Don't forget this.
Everything could have been anything else and it would have just as much meaning.

s1m0nlx

OK i downloaded that and a Post It Memo Bot loads but now what

theres no options in right click  or anything

bastya_elvtars

QuoteOriginally posted by s1m0nlx
OK i downloaded that and a Post It Memo Bot loads but now what

theres no options in right click  or anything

Have you done the settings we posted before and did you reconnect?
Everything could have been anything else and it would have just as much meaning.

Zen

s1m0nlx.

Are you using Robocop as your bot?
If yes, try changing the profiles in FreshStuff.

Find this piece of code in the script. (It's located a few lines down from where it says: "-- please do not edit below"


function Main()
  if FreshStuff.ProfilesUsed==0 or FreshStuff.ProfilesUsed~=2 or FreshStuff.ProfilesUsed~=3 then
    userlevels={ [-1] = 1, [0] = 5, [1] = 4, [2] = 3, [3] = 2 } -- rights management, edit if you are using a bot that has default profiles
  elseif FreshStuff.ProfilesUsed==2 then
    userlevels={ [-1] = 1, [0] = 5, [1] = 4, [2] = 3, [3] = 2 ,[4] = 6, [5] = 7} -- psyguard
  else
    userlevels={[5]=7, [0]=6, [4]=5, [1]=4, [2]=3, [3]=2, [-1]=1} -- robocop
  end



Copy this code:
userlevels={[5]=7, [0]=6, [4]=5, [1]=4, [2]=3, [3]=2, [-1]=1}

and paste it over this code:
userlevels={ [-1] = 1, [0] = 5, [1] = 4, [2] = 3, [3] = 2 }
-- rights management, edit if you are using a bot that has default profiles


So now it will look like this:

function Main()
  if FreshStuff.ProfilesUsed==0 or FreshStuff.ProfilesUsed~=2 or FreshStuff.ProfilesUsed~=3 then
    userlevels={[5]=7, [0]=6, [4]=5, [1]=4, [2]=3, [3]=2, [-1]=1} -- rights management, edit if you are using a bot that has default profiles
  elseif FreshStuff.ProfilesUsed==2 then
    userlevels={ [-1] = 1, [0] = 5, [1] = 4, [2] = 3, [3] = 2 ,[4] = 6, [5] = 7} -- psyguard
  else
    userlevels={[5]=7, [0]=6, [4]=5, [1]=4, [2]=3, [3]=2, [-1]=1} -- robocop
  end


Save the script, restart the hub and reconnect to it.
If you're using the Robocop as your bot, you should be able to get the right-clicks now.

Good luck!

bastya_elvtars

Are you kidding? There is a setting for this.

    ProfilesUsed= 0, -- 0 for lawmaker/terminator (standard), 1 for robocop, 2 for psyguard
Everything could have been anything else and it would have just as much meaning.

Zen

Yes, I know Bastya, but no, I'm not kidding.

I've tried several times (last time was after reading your reply here) on just changing the ProfilesUsed but could not get it working.
When changing the code as in my last post, I could though.

I'll make a report on this on the Lawmaker forum. --> http://lawmaker.no-ip.org/forum/forum.php?id=11

((KMN))Gazza-95

if u a running a bot like terminator or robocop u need to make sure that the extra script is above the bot script otherwise the extra script wont work

bastya_elvtars

Quote from: ((KMN))Gazza-95 on 20 April, 2006, 20:03:16
if u a running a bot like terminator or robocop u need to make sure that the extra script is above the bot script otherwise the extra script wont work

Has been solved long ago. :)
Everything could have been anything else and it would have just as much meaning.

jiten

Just as a side-note, for those that may need a complete release script (available in LUA 5.0/5.1):

- Release/Request Bot; and
- Entry Bot.

SMF spam blocked by CleanTalk