Go Back   OtLand > Resources > Tutorials > OpenTibia Tutorials

Reply
Old 12th April 2009, 15:16   1 links from elsewhere to this Post. Click to view. #1 (permalink)
ExibeR
Lua/C++/PHP Programmer
 
ExibeR's Avatar
 
Join Date: Aug 2007
Location: Tromso/Norway
Posts: 1,018
Reputation: ExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really nice



Send a message via MSN to ExibeR
[FAQ] - DaoPay Solutions

Greetings,

after answering about 20 threads today (70% of them alike), I decided to post all my solutions in one thread.
And if you get any errors that is not listed below, post here and I'll assist you.

Issue #1
Quote:
Warning: fopen() [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in C:\xampp\htdocs\buypoints.php on line 43
Quote:
Errors occured:
* Wrong PIN code, try to enter code again.
Solution #1
a)
1. Go to DaoPay.com
2. Log in (Who would have guessed?)
3. Click on Websites, then configure websites.
4. Choose your Website, and click edit.
5. Choose EASYpin, and click continue.
6. Click continue 2 more times, until you arrive at the Allowed IP addresses page.
7. In nr. 1 insert your domain: In nr. 2 insert your IP: x.x.x.x (You can find it at )
8. Under "Link back to your website" insert your domain
9. Click continue, then Save.

b)
1. Open buypoints.lua which is found in /xampp/htdocs/
2. Remember that the array must start with 0.
Etc:
Instead of:
Issue #2
Quote:
Pincode can be used infinite times
Solution #2
1. Log into your DaoPay
2. Go to Products, then Manage Products
3. Select your product, and click edit
4. 3rd line you will find something called "Validity"
5. Change it from "1 Day" to "1 Counts"
Problem solved


Issue #3
Quote:
Warning: fopen(trans/daopay.log) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\buypoints.php on line 35

Warning: fwrite(): supplied argument is not a valid stream resource in C:\xampp\htdocs\buypoints.php on line 37

Warning: fclose(): supplied argument is not a valid stream resource in C:\xampp\htdocs\buypoints.php on line 38
Solution #3
1. Go to /xampp/htdocs/
2. Create a new folder called "trans"
What can this be used for?
A log called daopay.log will be written. Inside you can see all Pin Codes that has been used, and which account they were used on. You can use this to check if they actually used their code, or if they are just saying that it didn't work.



Issue #4
Quote:
How do I get DaoPay to transfer money to PayPal?
Solution #4
1. Log into DaoPay
2. Go to My Account and then Customer
3. Change "Payout Typ" to "PayPal"
4. Go to Payouts and then Bank Data
5. Write in your email, and save.
And your done! Money will be transferred every second month (60days).


Issue #5
Quote:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ots.z_shop_history_pacc' doesn't exist' in D:\xampp\htdocs\shopsystem.php:374 Stack trace: #0 D:\xampp\htdocs\shopsystem.php(374): PDO->query('SELECT * FROM `...') #1 D:\xampp\htdocs\index.php(184): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\shopsystem.php on line 374
Quote:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'roxx.z_shop_offer' doesn't exist' in C:\xampp\htdocs\shopsystem.php:90 Stack trace: #0 C:\xampp\htdocs\shopsystem.php(90): PDO->query('SELECT * FROM `...') #1 C:\xampp\htdocs\shopsystem.php(174): getOfferArray() #2 C:\xampp\htdocs\index.php(187): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\shopsystem.php on line 90
Solution #5
In your MySQL database execute (in phpmyadmin):
and:
and:
and:
and:

Issue #6
Quote:
Errors occured:
* Account/account of player with this name doesn't exist.
Solution #6
1. Go to /xampp/htdocs/
2. Open buypoints.php and:
Change:
With:
3. Then try again, writing your Player Name instead of Account Number.
And your done!


Issue #7
Quote:
Items are not sent in-game. Not realized yet.
Solution #7
IF YOU USE NEW VERSION OF TFS 0.3 (alpha1 or new)
1. Go to: /data/globalevents/scripts/
2. Create a new lua file, and call it shop.lua
3. Insert:
4. Go to /data/globalevents/ and open globalevents.xml
5. Insert:
It will give the players items every 30 seconds. Don't set it lower, will lag down the server.

IF YOU USE TFS 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.2.15, 0.2.16, 0.2.17, 0.2.18, 0.2.19 OR TFS 0.3 REV. under 815:
1. Go to /data/creaturescripts/scripts/ and open login.lua
2. Delete everything inside and insert:

Issue #8
Quote:
How do I get pictures in my shop?
Solution #8
1. Go to /xampp/htdocs/item_images/
2. Add the desired picture there called ID.jpg
Example:
Boots of Haste
Check id in the z_shop_offer table in your database for Boots of Haste. In this example they have ID 7. Then take your picture of the Boots Of Haste and insert it in item_images. Then rename the file to 7.jpg
That's it.

If you want to use .gif instead:
Open up shopsystem.php
Replace all lines:
With:

Issue #9
Quote:
How do I make so there is a daopay logo in "buypoints" area, when you press it you will go to daopay.com to call or send sms?
Solution #9
You can edit this in buypoints.lua
Replace the old links.
a href = The destination URL
img src = url of the image you want to show
width = width of the picture
height = height of the picture
alt = alternative text, in case they can't load the picture

So when you click that picture, you will get redirected to DaoPay or whatever you set the link to



Issue #10
Quote:
I received this email from DaoPay:
Hi, We have done further investigations, and due to fraud suspicious traffic for your application we are forced to request a passport copy and a copy of any kind of bill, like electricity bill, where we are able to see your address.This address will have to match with the entered address at the daopay controlcenter.Until we receive the requested documents we are forced to freeze your payouts.Thanks for your understanding Kind regards,Daopay Customer SupportJosef mailto: daopay.com
Solution #10
Do not answer that mail. It is a scam. This can easily be seen as there are several writing and grammar mistakes in every line.

Hi, We have done further investigations, and due to fraud suspicious traffic for your application we are forced to request a passport copy and a copy of any kind of bill, like electricity bill, where we are able to see your address.This address will have to match with the entered address at the daopay controlcenter.Until we receive the requested documents we are forced to freeze your payouts.Thanks for your understanding Kind regards,Daopay Customer SupportJosef mailto: W - Should continue with a small w
to fraud - Should contain and a to combine
.T - Missing space
daopay - Is written DaoPay
controlcenter - Two words
.U - Missing space
your payouts. - Should be your account
.T - Missing space
your understanding - Bad sentence
understanding Kind regards - Missing dot
,D - Missing space
Daopay - Is written DaoPay
- Wrong email of DaoPay


Issue #11
a)
Quote:
Errors occured:
* Server has problem with connection to daopay.com, can't verify PIN code.
b)
Quote:
Warning: fopen() [function.fopen]: failed to open stream: Result too large in C:\xampp\htdocs\buypoints.php on line 43
Solution #11
1. Open up your "php.ini" (xampp/php/php.ini)
2. Search for: memory_limit (Line 246)
3. Replace:With:
4. Restart/reload your apache server.
__________________
If my post helped you, feel free to
Do you have a problem with DaoPay?
FAQ - DaoPay Solutions

Last edited by ExibeR; 2nd June 2009 at 02:15.
ExibeR is offline   Reply With Quote
Old 14th April 2009, 15:08   #2 (permalink)
ExibeR
Lua/C++/PHP Programmer
 
ExibeR's Avatar
 
Join Date: Aug 2007
Location: Tromso/Norway
Posts: 1,018
Reputation: ExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really nice



Send a message via MSN to ExibeR
~Reserved~
__________________
If my post helped you, feel free to
Do you have a problem with DaoPay?
FAQ - DaoPay Solutions
ExibeR is offline   Reply With Quote
Old 14th April 2009, 23:51   #3 (permalink)
ScOrPiOnX
Member
 
ScOrPiOnX's Avatar
 
Join Date: Apr 2009
Posts: 53
Reputation: ScOrPiOnX is on a distinguished road



WoW!!!
Really thanks u, you have helped me very much
Nice guide
+1 Rep 4 u
ScOrPiOnX is offline   Reply With Quote
Old 15th April 2009, 00:16   #4 (permalink)
Samme
PHP/LUA/XHTML/CSS/JS
 
Samme's Avatar
 
Join Date: Mar 2008
Location: Pwnosland
Posts: 820
Reputation: Samme is a splendid one to beholdSamme is a splendid one to beholdSamme is a splendid one to beholdSamme is a splendid one to beholdSamme is a splendid one to beholdSamme is a splendid one to behold



Send a message via ICQ to Samme Send a message via AIM to Samme Send a message via MSN to Samme Send a message via Yahoo to Samme Send a message via Skype™ to Samme
nice tutorial
__________________

Add me a reputation point, write your nick at the comment at I will give you that point back! CLICK:
Samme is offline   Reply With Quote
Old 15th April 2009, 01:06   #5 (permalink)
ExibeR
Lua/C++/PHP Programmer
 
ExibeR's Avatar
 
Join Date: Aug 2007
Location: Tromso/Norway
Posts: 1,018
Reputation: ExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really nice



Send a message via MSN to ExibeR
Thanks, please keep posting issues and I'll solve them.
__________________
If my post helped you, feel free to
Do you have a problem with DaoPay?
FAQ - DaoPay Solutions
ExibeR is offline   Reply With Quote
Old 17th April 2009, 21:34   #6 (permalink)
Azcarer
PHP
 
Azcarer's Avatar
 
Join Date: Nov 2008
Posts: 668
Reputation: Azcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to behold



Send a message via MSN to Azcarer Send a message via Yahoo to Azcarer Send a message via Skype™ to Azcarer
Arrow No. 2

Quote:
Originally Posted by ExibeR View Post
Greetings,

6. Click continue 2 more times, until you arrive at the Allowed IP addresses page.
7. In nr. 1 insert your domain: In nr. 2 insert your IP: x.x.x.x (You can find it at )
You said I gonna put it in (NR:2) ??
Does it have to be like that.. not the ip in number 1??
Please post back
__________________
IF I HELP U
Soon is good!!!
LEARNING PHP
Azcarer is offline   Reply With Quote
Old 17th April 2009, 21:54   #7 (permalink)
Likeee
Mappah!
 
Join Date: Apr 2009
Location: Under your bed.
Posts: 40
Reputation: Likeee is on a distinguished road



Nicely done! Repzzor!
__________________

If you don't like when kittens die, You're normal.

LEVEL HER UP GOD DAMNIT!
Creature Name: Pussy
Level this creature up! Click Here!
Likeee is offline   Reply With Quote
Old 17th April 2009, 21:55   #8 (permalink)
Azcarer
PHP
 
Azcarer's Avatar
 
Join Date: Nov 2008
Posts: 668
Reputation: Azcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to beholdAzcarer is a splendid one to behold



Send a message via MSN to Azcarer Send a message via Yahoo to Azcarer Send a message via Skype™ to Azcarer
For who? Exiber
__________________
IF I HELP U
Soon is good!!!
LEARNING PHP
Azcarer is offline   Reply With Quote
Old 18th April 2009, 01:39   #9 (permalink)
tyngaste
Senior Member
 
tyngaste's Avatar
 
Join Date: Dec 2008
Location: Sweden
Posts: 223
Reputation: tyngaste is on a distinguished road



great tutorial
__________________

Never argue with an idiot. They will bring you down to their level, then beat you with experience.
tyngaste is offline   Reply With Quote
Old 18th April 2009, 18:03   #10 (permalink)
ExibeR
Lua/C++/PHP Programmer
 
ExibeR's Avatar
 
Join Date: Aug 2007
Location: Tromso/Norway
Posts: 1,018
Reputation: ExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really niceExibeR is just really nice



Send a message via MSN to ExibeR
Quote:
Originally Posted by Azcarer View Post
You said I gonna put it in (NR:2) ??
Does it have to be like that.. not the ip in number 1??
Please post back
I would prefer having the IP in nr. 2, so you don't have to do that every time your IP changes.
__________________
If my post helped you, feel free to
Do you have a problem with DaoPay?
FAQ - DaoPay Solutions
ExibeR is offline   Reply With Quote
Reply

Tags
buypoints, daopay, pin, shop, validate


LinkBacks (?)
LinkBack to this Thread: http://otland.net/f137/faq-daopay-solutions-29245/
Posted By For Type Date
How To Setup Daopay With Photos | Articles | Tibia Help - Tibia & OpenTibia Community This thread Refback 29th September 2009 21:56

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:28.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO
Copyright ©2007 - 2010, OtLand.net.