Jump to content
MakeWebGames

Recommended Posts

Posted

1.) Make a file called dailycrystals.php add this into it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

2.) add this to cron_day.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

3.) add this into your mysql

[mysql]

CREATE TABLE IF NOT EXISTS `dailycrystals` (

`crystals_done` int(11) NOT NULL default '60'

)[/mysql]

If your missing something from it and it does not work please tell me my friend and I made this awhile back so I am going off of what i remember if it says missing something tell me on this thread so i can add what needs to be added for you guys. Thank you and enjoy! oh also what this mods does is when someone clicks Daily Crystals on the mainmenu or explore where ever you put it it will get them 60 crystals you can change that by editing 60 in mysql to say 100 and the file too. Thank you! =]

Posted

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

did not really edit much but your SELECT query was asking for things that globals already has in $ir (its the whole user table) also added a small event the rest does the same :)

Posted

The default for the SQL for daily will be 1 it will be as defined 1 so it will give them once a day if it has none there it will not give hem anything but if it is 1 then they get it once a day. Am i correct?

Posted

Original. However you should add it to cron day, this way you make sure it gets credited once only ( you save 1 field in your mysql table too, not much but something ), plus you can still add an event saying you've been credited X amount of crystals. More automated (:.. You could also make it so if a user hasnt been on in X days they dont collect until they start playing again.

Posted

@ Dominion:

Why are you adding ( '' ) onto a numeric? I know it's for the SQL querys Via PHPMYADMIN.. But I don' get it.. =/

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I really don't see the need? :P

Posted

on my first post for it there is a cron day code for it and when they click daily crystals it say you have been credited 60 crystals today. well on line 15 on the code it says what it will tell you and the daily cron is this

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

@wazam - i know lol not the 1st time thats been said to me i seem to do it anyway and take them out later did that in the message box guess i should of looked it over still should work :P

@Aurora078 they can't get them unless online since you must vist the file it only has 1 user addon so not an issue and it does reset on the day cron ><

Posted

so... The file I made is good? Does everything properly right? Because My friend and I made it so long ago and I saw someone wanted it for a wish in mods so i posted it here!..lol

Posted

its ok but for mccodes you don't need the select query (since its in $ir) you also would not need a new table just a basic 0 or 1 set in the user table (since yours adding something to users anyway) but its not bad :)

Posted

@ Dom:

Yeah, lol. Just saying, haven't seem many people do it. :P

@ Matt:

It's ok mate..

It's kind of plain if you get me, 60 crystals every day? Would be better if they were random :) ( $???? = rand(1,60);) :P

Posted

if its 1-60 with is they get 1 crystals their gona be like wth man and someone else gets 60 i mean you can change it to 100 or 300 but that will really put a bad economy on the game and the game will be shot. And yah i know its kinda plain but it was made while back ago long time ago and thats why it is free lol =] But yah thanks for your input you all.:)

Posted

@wazum - thats cos i am unique and with mccodes i check every little thing no matter if its pointless cos it will go wrong if i don't lol

random amount won -

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...