se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#15663 - 09/19/07 01:12 AM Need help!!!
Metacat
Malt-o-Meal


Registered: 09/16/07
Posts: 9

Offline
I've tried to make an ordinary movement cost TP, just to tense the hit down on hardcore players. BUT... oh yes is always a BUT ... after get everything done i can't move and TP are auto incremented with a random number. If someone already did this kind of mod please mail it to me at HERE . THX !
Top
#15666 - 09/19/07 07:42 AM Re: Need help!!! [Re: Metacat]
Fayt
Crunchberries
***

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

Offline
I really really hope you didn't go through alot of trouble for this. This is all your need to do.

Open explore.php

Find this line or one like it

$updatequery = doquery("UPDATE {{table}} SET $action latitude='$latitude', longitude='$longitude', currentfat=currentfat+$run,templist='0', location='Exploring', dropcode='0', dropcode2='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");


Change to this


$updatequery = doquery("UPDATE {{table}} SET $action latitude='$latitude', longitude='$longitude', currentfat=currentfat+$run,templist='0', location='Exploring', dropcode='0', dropcode2='0', currenttp=currenttp-1 WHERE id='".$userrow["id"]."' LIMIT 1", "users");



Then it will work, but also to ensure everything goes correctly and you don't get a division by zero, you can add a tp block.

if($userrow["currenttp" == 0){ header("Location: index.php?do=qitem:79"); die(); }
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#15680 - 09/19/07 07:17 PM Re: Need help!!! [Re: Fayt]
Jamin Administrator
Cookie Crisp
****

Registered: 02/25/05
Posts: 2649
Loc: Texas

Offline
Be careful making normal movement cost TP. People are gonna be pissed if they run out of TP and get locked into some random location on the map. Unless that's your goal... in which case... that's pretty evil, dude. :P

---Jamin
_________________________
Diablo 3 Lead Designer Jay Wilson:
“The development of a Blizzard game is sometimes a long affair. This is how long it took us to be ready.”

Top
#15681 - 09/19/07 10:07 PM Re: Need help!!! [Re: Jamin]
Fayt
Crunchberries
***

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

Offline
Good point jamin. I say but a block when they have 5 tp left, you can't move anymore. That way you have enough tp to warp back to the 1st town.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#15684 - 09/20/07 12:20 AM Re: Need help!!! [Re: Fayt]
Brendon
Grape Nuts


Registered: 09/18/07
Posts: 40

Offline
or there is discussion on making the server refresh everyone stats every 5 mins or so.. i believe this would be a great mod if you were to incorporate that aspect too.
Top
#15688 - 09/20/07 03:20 AM Re: Need help!!! [Re: Brendon]
AnmanIndustries
Cookie Crisp
*****

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

Offline
Real time in browsers games DOES NOT WORK. Full stop.
_________________________
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
#15691 - 09/20/07 08:43 AM Re: Need help!!! [Re: AnmanIndustries]
Fayt
Crunchberries
***

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

Offline
Logged in it does work.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#15699 - 09/20/07 06:24 PM Re: Need help!!! [Re: Fayt]
Jamin Administrator
Cookie Crisp
****

Registered: 02/25/05
Posts: 2649
Loc: Texas

Offline
Refreshing several status elements every 5 minutes on a game that's even anything remotely resembling popular is a really good way to get yourself kicked off your host for violating the AUP. A lot of shared hosts don't give you access to Cron at all, or at least severely restrict how often you're allowed to run something with it, for this very reason.

I guess if you did it individually per user, and only when they were active and logged in, it wouldn't be that bad. But if you run a bunch of MySQL with a *5**** cronjob, that's just asking for trouble.

---Jamin
_________________________
Diablo 3 Lead Designer Jay Wilson:
“The development of a Blizzard game is sometimes a long affair. This is how long it took us to be ready.”

Top
#15700 - 09/20/07 11:24 PM Re: Need help!!! [Re: AnmanIndustries]
Brendon
Grape Nuts


Registered: 09/18/07
Posts: 40

Offline
 Originally Posted By: Anmanrulz00
Real time in browsers games DOES NOT WORK. Full stop.


wrong.. Mafiadeath.com is an excellent game that runs on real time..
there are plenty that do this.

maybe even after the tp runs out put a time stamp that states the time that their tp will replenish.
If anyone wants to help me develop this i dont see why it would be such a bad idea?

Top
#15703 - 09/21/07 04:45 AM Re: Need help!!! [Re: Brendon]
AnmanIndustries
Cookie Crisp
*****

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

Offline
Browser games, games that run from your browser, not from java or anything similar.

Real time, as in updating your game every couple seconds for pure stats.

Things like utopia, nukezone, that have hourly updates, is ok.. Things like my shop mod for DS is ok... But dont try to incorporate full real time aspects.
_________________________
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
#15706 - 09/21/07 08:48 AM Re: Need help!!! [Re: AnmanIndustries]
Metacat
Malt-o-Meal


Registered: 09/16/07
Posts: 9

Offline
dear ones :)) I think it will be best if someone will develop such a mod because it will make some equality between ordinary player and a hardcore player. a hardcore player will get bored after 2 days and it will get to the level 80 for eq. and the ordinary player will get bitted an PvP for eq. You'll get the picture. Thx!!
Top
#15707 - 09/21/07 08:49 AM Re: Need help!!! [Re: AnmanIndustries]
Brendon
Grape Nuts


Registered: 09/18/07
Posts: 40

Offline
no no.. thats not what i ment..
i ment something just like you said. just replenishing every so often. that way ppl dont abuse the inn for things like tp.

Top
#15724 - 09/24/07 04:59 PM Re: Need help!!! [Re: Brendon]
AnmanIndustries
Cookie Crisp
*****

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

Offline
How can they abuse the inn? It costs MONEY.
_________________________
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
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo