se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#4676 - 09/15/04 02:37 PM Possible fight/spell bug
Jimp
Cheerios


Registered: 07/22/04
Posts: 132

Offline
If you are fighting a creature and you cast a spell, but you do not have enough MP to do that spell, you get a page that says "You don't have enough MP to do that spell!". This will make you stop fighting the monster, it can be abused if you are about to die and you cast Heal (for example) when you have 0 MP. You get the error page and you can just go to the town and heal yourself.

Nothing major but please take a look and if theres a fix, let me know

Cheers Smiler

Top
#4677 - 09/16/04 12:21 PM Re: Possible fight/spell bug
Jamin Administrator
Cookie Crisp
****

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

Offline
Interesting. I'll look into it, thanks for the report.

---Jamin

Top
#4678 - 09/16/04 12:51 PM Re: Possible fight/spell bug
Jimp
Cheerios


Registered: 07/22/04
Posts: 132

Offline
No probs

Its nothing huge but im sure its not too difficult to change and some of my friends have discovered it which is.. annoying to say the least.

Top
#4679 - 09/22/04 06:40 PM Re: Possible fight/spell bug
shadowbq
Grape Nuts


Registered: 09/22/04
Posts: 32
Loc: d.c.

Offline
  if (($town == true) && ($userrow["currentaction"] !="Fighting")){ 
$userrow["townslist"] .= "<a href="index.php?do=gotown:".$townrow2["id"]."">".$townrow2["name"]."</a><br />n";
}
else
{ if ($town == true) { $userrow["townslist"].=$townrow2["name"]."<br />n"; }
}

Top
#4680 - 09/22/04 06:42 PM Re: Possible fight/spell bug
shadowbq
Grape Nuts


Registered: 09/22/04
Posts: 32
Loc: d.c.

Offline
This code is a change in the
File: lib.php @line 214

Displays the name without link if fighting..

Top
#4681 - 09/22/04 08:34 PM Re: Possible fight/spell bug
Jamin Administrator
Cookie Crisp
****

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

Offline
Ok, v1.1.5 is uploaded now. Thanks, y'all. I did it a little differently than just taking the links out - the Travel To function redirects back to fight.php if your current action status is set as fighting. This way even if someone fakes a URL, they still can't get out of it.

---Jamin

Top
#4682 - 09/23/04 04:27 AM Re: Possible fight/spell bug
Jimp
Cheerios


Registered: 07/22/04
Posts: 132

Offline
Jamin,

I was wondering if there is any way you can post the changes you made for this on here, and say what line you put it at etc since i have modified each file a lot and dont particularly want to download the latest version from scratch.

cheers

Top
#4683 - 09/23/04 12:27 PM Re: Possible fight/spell bug
Jamin Administrator
Cookie Crisp
****

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

Offline
In towns.php, go down to the travelto() function, and right after the global declarations, add the following line:

if ($userrow["currentaction"] == "Fighting") { header("Location: index.php?do=fight"); die(); }

---Jamin

Top
#4684 - 09/23/04 01:24 PM Re: Possible fight/spell bug
Jimp
Cheerios


Registered: 07/22/04
Posts: 132

Offline
Cheers. done Smiler
Top
#4685 - 09/27/04 10:01 AM Re: Possible fight/spell bug
shadowbq
Grape Nuts


Registered: 09/22/04
Posts: 32
Loc: d.c.

Offline
Cheers as well.

Jimp the way Ive been doing updates is with a file comparison program. You should find a good line to line comparision. Take the previous version compare to the newest one and make notes of the changes.

Then apply them to your modified code.

JAMIN I really like how you arent changing the date timestamp of files you dont modify. Keep that up! I speeds up the updating process.

----------
working some super engine upgrades/mods .. when they're ready I'll let you know.. so you can play.

Top
#4686 - 09/27/04 11:03 AM Re: Possible fight/spell bug
Jamin Administrator
Cookie Crisp
****

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

Offline
Yeah, all new versions are built off a common trunk - the entire source for the old version is copied into a new folder for the new version, then only the new files are copied into it on top of the old files. Hence, files that never had bugs (like explore.php) still have the old timestamps (12/18/2003).

Barring the file touch timestamps, the file UPGRADE.TXT also lists every file changed for each version, so another quick way to do it would be just look in that file and compare only the files listed.

---Jamin

Top
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo