Old 02-13-2004, 11:06 PM   #1
Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 78
Default ioDONATE

ioDONATE was done cause i need it ... if someone needs it too ... here ya go ...

Usage : site donate <user> <credits> (in MB)


1) Configure ioDONATE.ini
2) add CREDIT=%.[credits(mega)] to ioftpd.env
3) For Announce :

- Open up dzsbot.tcl

- Add 'DONATE' the 'set msgtypes(DEFAULT)'-line, so it looks kinda like this:

set msgtypes(DEFAULT) "INVITE LOGIN LOGOUT REQUEST REQFILLED REQDEL GIVE TAKE WARCWIPE WARCMOVE DONATE"

- Add 'set disable(DONATE) 0' to the MSGTYPE list.
For example you can put them just above 'set disable(DEFAULT) 0' so u get the following:

set disable(DONATE) 0

- Add these to the variable-list, so you get something like this (TAKE and DEFAULT should already be there):

set variables(DONATE) "%usergive %userget %mb"

- Add these to the announce-list, so you get something like this (IRCSTATS and DEFAULT should already be there):

set announce(DONATE) "-%sitename- \[DONATE\] + %bold%usergive%bold donates %bold%mb%boldMB to %bold%userget%bold"

(You can change the announces to your liking)

- Rehash your windrop

thats it ..
hot_pit is offline   Reply With Quote
Old 02-14-2004, 01:57 PM   #2
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

Word of warning to users of this script:

CREDITS cookies returns credits available in current section... so if you're in /pre/ and SITE DONATE ..., it will try to use credits from the /pre/ section (if there is one!)
Be careful what section you're in when u try to donate.

fuka: if u use CREDITS env var to check if the guy has enough credits to donate, make sure u decrement the right credit section (available in creditssection cookie)...
Mouton is offline   Reply With Quote
Old 02-14-2004, 08:34 PM   #3
Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 78
Default

Quote:
Originally posted by Mouton
Word of warning to users of this script:

CREDITS cookies returns credits available in current section... so if you're in /pre/ and SITE DONATE ..., it will try to use credits from the /pre/ section (if there is one!)
Be careful what section you're in when u try to donate.

fuka: if u use CREDITS env var to check if the guy has enough credits to donate, make sure u decrement the right credit section (available in creditssection cookie)...
you 100% right hehe .. but i made this app for my site and i only use 1 creditsection ... and here works great .. but thxn for tip
hot_pit is offline   Reply With Quote
Old 03-01-2004, 01:34 PM   #4
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 705
Default

fuka, would you post this script on scripts page? Tnx.
Zer0Racer is offline   Reply With Quote
Old 03-01-2004, 01:38 PM   #5
Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 78
Default

sure ... if anyone wanna download it heres the url : http://www.ioftpd.com/scripts/script.php?id=60
hot_pit is offline   Reply With Quote
Old 03-03-2004, 01:45 PM   #6
Junior Member
 
Join Date: Jan 2004
Posts: 2
Default

how to set announce for iobanana? :banana:
Grill-B is offline   Reply With Quote
Old 03-03-2004, 02:05 PM   #7
Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Mar 2003
Posts: 89
Default ;)

Like Dzbot, its easy to change for iobanana.

Read the first post.
biboun is offline   Reply With Quote
Old 05-09-2005, 03:06 PM   #8
Junior Member
 
Join Date: Feb 2005
Posts: 6
Unhappy script donate script error?

ioFTPD + iobanana + ioA version..

hey.. donate Script error.?

ioDONATE.exe --> error.

FlashFXP Cmd

ex) site donate test 100 enter „£

error ioDONATE.exe error massge..

Must use how?????????

tagsarang is offline   Reply With Quote
Old 07-20-2005, 02:28 PM   #9
Senior Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 221
Default

could this be reupped?
ChipMunk666 is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 05:19 AM.