Jump to content

FluxCP Addon: Freebies for FluxCP - FREE


Feefty

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   14
  • Joined:  11/21/11
  • Last Seen:  

Freebies for FluxCP - FREE


Features:

- Freebies Character Selection, You have to select the character where you want the freebies to claimed.

- IP Address Restriction, You can only use the code per IP Address. Freature can be disabled or enabled per code.

- Editing Freebies, You can edit the Code, Items, Zeny, Credits, Expiration, IP Restriction, Usage Limit and Description(optional).

- Adding Freebies.

- Usage Limit, 0 for unlimited or until it expires.

- Items, item_id:amount,item_id2:amount2 or just item_id for 1 item.

- Expiration, Setting the expiration date for the freebies.

- Zeny, Giving an amount of zeny to selected character.

- Description(optional), You can give a small description for the freebies to avoid the confusion.

- Deleting Freebies.

- Freebies History, List of all claimed freebies by the user.

1.2 Version

- Use for Account ID or Character ID. Feature can be disabled or enabled.

- ex. Account ID 2000000:2000500:2000600to2000700 (The Account ID with 2000000 and 2000500 and from 2000600 to 2000700 will be able to use the code)

Compability:

- Tested on Xantara's FluxCP for rAthena - https://github.com/m...ntara/fluxcp-rA

Rules:

- Do not steal the credit of this work.

How to Install:

- Make folder named freebies in your addons folder.

- Extract the file to freebies folder

- Update your database.

- Done.

If you find a bug, please contact me.

Email: [email protected]

rAthena: Feefty

Buy me a coffee


 

Edited by Feefty
  • Upvote 4
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

i need help to modify this code

 

Account ID or Char ID:

 

to

 

Account ID or userid:

 

thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

thanks mate will try later

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

Is there something wrong with this? I just use Calcium's Flux.

 

post-374-0-56418400-1363150145_thumb.jpg

 

 

EDIT:

Please don't forget to import the SQL tables schemas on freebies\schemas\logindb. Thank you for this helpful addon! :D

 

 

EDIT2: 

 

Already imported 2 SQL files on schemes folder. And when claiming here's the ERROR.

post-374-0-25719400-1363151109_thumb.jpg

Edited by Jezu
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

How do you even access this like what's the url path... I can get to cp/?module=freebies whats the path to add items?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

How do you even access this like what's the url path... I can get to cp/?module=freebies whats the path to add items?

 

Login your admin account and you will see 'Add' button on your 'Freebies' Navigation.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

How do you even access this like what's the url path... I can get to cp/?module=freebies whats the path to add items?

 

Login your admin account and you will see 'Add' button on your 'Freebies' Navigation.

 

Yeah I had to reinstall it only problem now is normal users don't have primission to access the redemption freebies page.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

i need help to modify this code

 

Account ID or Char ID:

 

to

 

Account ID or userid:

 

thanks.

 

?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

thanks for this working properly but problem this is not secured on hack.. if your admin account gets hacked.. 

how about to put an security code that one owner only can use the addons? 

Edited by zhen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

thx. im using it now :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

i need help to modify this:

 

use for account ID or Char ID

 

to

 

use for account ID or  userid:

 

thanks.

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

Hello,

 

I installed the Freebies correctly, when i use a code to give Zeny it works , but when i try to give items like TCG, i get this :

 

Critical Error

        
        

An error was encountered during the lifetime of the application.


        

This could be due to a variety of problems, such as a bug in the application.


        

However, normally it is caused by misconfiguration.


        
        

Exception Details

        

Error: Flux_Error


        

Message: MySQL error (SQLSTATE: 42S02, ERROR: 1146): Table 'ragnarok.item_db_re' doesn't exist


        

File: E:\webserver\htdocs\site\lib\Flux\Connection\Statement.php:27



                         

File Line Function/Method E:\webserver\htdocs\site\addons\freebies\modules\freebies\function.php 19 Flux_Connection_Statement::execute() E:\webserver\htdocs\site\addons\freebies\modules\freebies\index.php 179 getItemType() E:\webserver\htdocs\site\lib\Flux\Template.php 337 include() E:\webserver\htdocs\site\lib\Flux\Dispatcher.php 168 Flux_Template::render() E:\webserver\htdocs\site\index.php 174 Flux_Dispatcher::dispatch()

        
        

Exception Trace As String

        

#0 E:\webserver\htdocs\site\addons\freebies\modules\freebies\function.php(19): Flux_Connection_Statement->execute(Array)#1 E:\webserver\htdocs\site\addons\freebies\modules\freebies\index.php(179): getItemType(7227, Object(Flux_Athena))#2 E:\webserver\htdocs\site\lib\Flux\Template.php(337): include('E:\webserver\ht...')#3 E:\webserver\htdocs\site\lib\Flux\Dispatcher.php(168): Flux_Template->render()#4 E:\webserver\htdocs\site\index.php(174): Flux_Dispatcher->dispatch(Array)#5 {main}
Edited by BFPkiller
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

ERROR download!!! /oops

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  6
  • Reputation:   0
  • Joined:  07/27/13
  • Last Seen:  

How do you even access this like what's the url path... I can get to cp/?module=freebies whats the path to add items?

same with me.. i even log to my admin account.. but nothing change

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  161
  • Reputation:   5
  • Joined:  02/07/13
  • Last Seen:  

Unable to download.

Is this file still available?

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Question: How does it calculate the final expiration of the code?..

Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

On 3/13/2013 at 12:46 PM, Jezu said:

Is there something wrong with this? I just use Calcium's Flux.

 

post-374-0-56418400-1363150145_thumb.jpg

 

 

EDIT:

Please don't forget to import the SQL tables schemas on freebies\schemas\logindb. Thank you for this helpful addon! :D

 

 

EDIT2: 

 

Already imported 2 SQL files on schemes folder. And when claiming here's the ERROR.

post-374-0-25719400-1363151109_thumb.jpg

have you solve the error #2?

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   4
  • Joined:  10/20/16
  • Last Seen:  

Link Please

Link to comment
Share on other sites

  • 8 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  8
  • Reputation:   1
  • Joined:  08/23/18
  • Last Seen:  

item directly to char inventory..  can make it send via mail ?

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

PHP Notice:  Undefined variable: riftpoints in /home/addons/freebies/modules/freebies/edit.php on line 107
PHP Notice:  Trying to get property of non-object in /home/addons/freebies/modules/freebies/index.php on line 40
PHP Notice:  Trying to get property of non-object in /home/addons/freebies/modules/freebies/index.php on line 41
PHP Notice:  Trying to get property of non-object in /home/addons/freebies/modules/freebies/index.php on line 42
PHP Notice:  Trying to get property of non-object in /home/addons/freebies/modules/freebies/index.php on line 43
PHP Notice:  Trying to get property of non-object in /home/addons/freebies/modules/freebies/index.php on line 44
PHP Notice:  Trying to get property of non-object in /home/addons/freebies/modules/freebies/index.php on line 45
PHP Warning:  date() expects parameter 2 to be long, string given in /home/addons/freebies/themes/default/freebies/edit.php on line 27

 

Edited by Haikenz
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

hi i have an error when i try to Redeem Freebie, i got this message: Code is already expired or doesn't exists.

image.png.e05130d27ba8f15ed0e045bbd8c5e499.png

just happens with the fluxcp in my VPS, locally it works normally, can any1 help me please?

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

This addon don't work with last FluxCP

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   62
  • Joined:  02/04/19
  • Last Seen:  

@Sanasol Could you look at this too please

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

@KeyMaster no errors found, everything works for me. (php7.3)

 

Could you check data/logs/mysql/errors or data/logs/errors/exception?

 

Link to comment
Share on other sites

×
×
  • Create New...