se7enet purgatorio

Page 3 of 6 <12345>Last »
Topic Options
Rate This Topic
#18291 - 09/14/08 07:33 PM Re: Want a custom feature? [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Anman your a stupid fucker.

Using a timestamp for a player, would mean that if they logged in at 3AM they would have to login at 3AM again.

Where a cron job would reset every 24 on the exact same time as any other player you fucker.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18295 - 09/15/08 05:31 PM Re: Want a custom feature? [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
 Originally Posted By: Fayt

Using a timestamp for a player, would mean that if they logged in at 3AM they would have to login at 3AM again.

 Originally Posted By: Fayt

Where a cron job would reset every 24 on the exact same time as any other player you fucker.


The difference being? 3am-3am is still 24 hours. 24 hours still equals ONE day.

If that isnt good enough for you then:

$give = number of hours since last give
$gendate = now - ( now * ($give / 24))
if now < $gendate {$gendate = now - $give

or something like that. I havnt thought about it much because I honestly dont care enough.

Same result.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#18297 - 09/15/08 08:36 PM Re: Want a custom feature? [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Of course an idiot like you is stupid because none of that coding would work, because you didn't format it right.

The point is to have reset at the same time every day. That is so that if they login before reset, they get orbs, if they miss it, they don't.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18299 - 09/15/08 09:33 PM Re: Want a custom feature? [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
 Originally Posted By: Fayt
Of course an idiot like you is stupid because none of that coding would work, because you didn't format it right.


Really? I really didnt format it properly? Did you figure that out on your own?

Stop trying to passively bypass the fact you have a cunt for a brain.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#18303 - 09/16/08 07:00 AM Re: Want a custom feature? [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
//Not encased in quotes. No semicolon.

$give = number of hours since last give

//Getting closer but also invalid.
$gendate = now - ( now * ($give / 24))

//No open ( now is suppose to be now(), no closing ) and no semicolon.
if now < $gendate {$gendate = now - $give
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18310 - 09/16/08 07:06 PM Re: Want a custom feature? [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
NO FUCKING SHIT? REALLY? YOU DONT FUCKING SAY YOU MORON!

LET ME GUESS, "number of hours since last give" IS ALSO A PHP FUNCTION?

If I was to cut off my huge man nuts, and then let them sit there for a month, they would STILL be smarter than you.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#18312 - 09/16/08 07:12 PM Re: Want a custom feature? [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
I have small nuts.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18346 - 09/18/08 04:36 PM Re: Want a custom feature? [Re: Fayt]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
i been working on a mod for cheats within the babblebox, but i have got have gotten no where. would u be able to make a cheat mod where u type in words in the babble box, and click babble, and your health restores, or it increases stuff like that. thanks
Top
#18347 - 09/18/08 05:19 PM Re: Want a custom feature? [Re: EAL]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
It's pointless to do, but yeah easy.

When a message is entered into the babble, it is inserted into the database. All you have to do is run a check if the message entered, matches the cheat code, and poof run the query to update the player.

Very simple
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18348 - 09/18/08 06:21 PM Re: Want a custom feature? [Re: Fayt]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
i tried both of these
elseif ($safecontent == "give me money" || $safecontent == "give me money"){
$update = doquery("UPDATE {{table}} SET gold='.$userrow[gold]. + 100'", "users");
}



elseif ($safecontent == "give me money" || $safecontent == "give me money"){

doquery("UPDATE {{table}} SET gold='gold + 100'", "users");
}


when the text is entered it doesn't display it but it doesnt increase your gold.

Top
#18349 - 09/18/08 07:27 PM Re: Want a custom feature? [Re: EAL]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Your doing it wrong, there is many mistakes in that. Hold on I need to go way back to the old script and look at it.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18350 - 09/18/08 07:34 PM Re: Want a custom feature? [Re: Fayt]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Ok this is untested but should work.

Open index.php and find

$safecontent = makesafe($_POST["babble"]);

Add this under it.

$cheat = $_POST["babble"];

Find this line

} else { $to = ""; }

and after the closing bracket. Add this

if ($cheat == "gimme gold")
{
$updatequery = doquery("UPDATE {{table}} SET gold=gold+10000 WHERE id='".$userrow["id"]."' LIMIT 1", "users");
}
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18358 - 09/19/08 02:49 PM Re: Want a custom feature? [Re: Fayt]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
thanks it works great. I was wondering how would u make it so the cheat does not show in the babble box?
Top
#18359 - 09/19/08 05:21 PM Re: Want a custom feature? [Re: EAL]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Hmm good question. Try this out and see if it works.
---------------------------------------------------

if ($cheat == "gimme gold")
{
$safecontent = "";
$updatequery = doquery("UPDATE {{table}} SET gold=gold+10000 WHERE id='".$userrow["id"]."' LIMIT 1", "users");
}
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18360 - 09/19/08 07:57 PM Re: Want a custom feature? [Re: Fayt]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
no that didn't work
Top
Page 3 of 6 <12345>Last »


Hop to:

se7enet

Barack Obama Logo