DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • August 17, 2017, 04:16:48 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Instant Banking  (Read 4127 times)
0 Members and 1 Guest are viewing this topic.
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« on: September 01, 2004, 06:58:32 PM »

Instant banking module originally that I did for 0.9.7.

This has been converted to 0.9.8.

http://www.dragonprime.net/users/khatfield/instabank.zip
« Last Edit: November 16, 2005, 08:41:54 PM by Arune » Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #1 on: February 04, 2005, 07:39:45 AM »

I have always had the eagle.gif image call in the file, I have just always had it commented. I decided this morning to add the image to the zip and with a module setting to turn on/off showing the image.

Place the eagle.gif in your images folder.

http://dragonprime.net/users/khatfield/instabank.zip

Arune
« Last Edit: November 16, 2005, 08:41:37 PM by Arune » Logged
Atom
Guest
« Reply #2 on: April 03, 2005, 12:23:06 AM »

Not playing nice under v1.0 - return $arg?
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #3 on: November 16, 2005, 08:41:28 PM »

Yeah that is fixed.

Noticed someone had posted a similar version but either way. This one is updated and working with 1.0.+
Logged
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1738


View Profile
« Reply #4 on: March 14, 2008, 08:18:20 PM »

I've been helping sixf00t4 fix bugs and stuff on his legend of six server and he asked me to post any fixes in the module thread.
Code:
#
#-----[ FILE ]-----
#
modules/instabank.php

#
#-----[ FIND ]-----
#
# Line: 67 Missing closing `b
#
            output("`^`b`nYou deposit `&$_POST[amount]`^ gold in to your bank account. ");

#
#-----[ REPLACE WITH ]-----
#
            output("`^`b`nYou deposit `&$_POST[amount]`^ gold in to your bank account.`b");

#
#-----[ END ]-----
#
Logged

MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1738


View Profile
« Reply #5 on: July 03, 2008, 06:45:25 AM »

Came across an interesting glitch.

I used the banking link in the forest and when the next page loaded I had a YoM telling me my 10 stone had sold and the money put into the bank. I checked but the 100,000 gold had disappeared.

What I think happened...

instabank.php adds the gold to the session variable and Yebay saves the gold from the auction (has to) straight to the database. Session data was then saved (I assume when all other module code has finished running) to the database over writing what was in there.

:-/
* Afkamm goes searching for topics on this.

Logged

MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1738


View Profile
« Reply #6 on: September 18, 2008, 08:16:34 AM »

Fixed the above problem. Was Yebay saving to the database instead of to the session.

Anyhow, this module (instabank.php) bugged me because after I deposited gold I had to click to get back to the forest. Yes I know, 1 click, but still. Tongue

I wanted something like the marco the healer module that keeps you right there. So attached is my modified version of instabank.php

Removed a couple of bugs.
Removed unneeded code.
Rewrote what was left.

Version: 20080918  (The date backwards Tongue)

Smiley
« Last Edit: September 22, 2008, 11:19:18 AM by Afkamm » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
28 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search