Register for your free account! | Forgot your password?

You last visited: Today at 03:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Metin2 Offline Shop[LUA]

Discussion on Metin2 Offline Shop[LUA] within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
thenemne0032's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 19
Received Thanks: 23
Post Metin2 Offline Shop[LUA]

Hi all,

I decided to prepare this system, on the recommendation of a friend. I hope you enjoy, and you used. First, I do not think any bugs in the system. I tried to avoid any kind of bug that could, at least as far as I checked. If you encounter any bugs please let. The fix in a short time I publish a new one. In addition, the coding system for getting a bit of a hurry I could have done inexperience. Using the function, but was going to do it that way because I'm rushing. And it does not seem to have any problems in handy again.



What is the Offline Shopping System to do?


Players not in the game is a system that can even sell items.


How the system works?


Players throw on goods they want to sell NPC. Then, against the price, how long the information will remain on the sales and revenues which category you want to add. After making the selection of necessary attachments to exchange goods. Players may withdraw the goods and wills can update the prices of goods. It expires if the player's belongings after he blocked the sale of expired goods and goods sent to the player's safe entry and exit in the event of any game and is deleted from the shopping list. If a player of goods sold, Shopping Box of money is saved. If all merchandise sold money is kept there and wished you could take the money players.


If I'd let me share a detailed video on how the system works:




MySQL file "players" are adding to the database. You do not need to take any action. (After making the additions you do not need to take REBOOT)

Now we need to do another operation. "Player" table below, right click the "Design Table" call.



Then, "we alisveris_para" We are adding to our database column name.


IMPORTANT NOTE: The default value of 0 must do! Very important.




BETWEEN THE AMOUNT OF MONEY. (DOT) DO place:


Now between the amount of money. (Period) we came to put function. You also have to add this function. If you do not include this function the system work. According to him, it was coded. Now add to that function will show:

"questlib.lu" file, we are opening and closing, add the following code at the bottom. No need to reboot to take. No need to take any further action. "questlib.lu to" the bottom of the Simply add the code I have given below.


PHP Code:
function genel_veri(gelen_miktar)
    
gelen2 tostring(gelen_miktar)
    
local gelen gelen_miktar 
    local sayac 
10
    local basamak 
1
    local ilkhal 
basamak
    
while true do
        if 
gelen sayac >= 1 then
            basamak 
basamak 1
            sayac 
sayac 10
        
else
            break
        
end
    end
    t 
= {}
    
sonucText ""
    
for i=1string.len(gelen2) do
        
t[i]= (string.sub(gelen2,i,i))
    
end
    
for v in pairs(t) do--1324
        
if (basamak  == or basamak == or basamak == 3) and sonucText !=  "" then
            sonucText 
sonucText.."."
            
sonucText sonucText..v
        
else
            
sonucText sonucText..v
        end
        basamak 
basamak 1
    end
    
return sonucText
end 

After this process the bit "quest_functions" file and opens to the bottom "genel_ver" function, we are adding. We're done with this place.



LUA swipe file:


1) usr / game / share / locale / turkey / quests section "alisveris_sistemi.lu to" We put the file. Later;

2) We come to putty.

cd / usr / game / share / locale / turkey / quests are enterliy wrote. Then we write the following command.

./qc alisveris_sistemi.lua

We are done with putty.
3) We're going to the game and with a GM character "/ reload q" is suffering.
4) Then you can start using the Offline Shopping System.
Attached Files
File Type: rar alisveris_sistemi.rar (8.6 KB, 311 views)
File Type: rar alisveris.rar (594 Bytes, 263 views)
thenemne0032 is offline  
Thanks
4 Users
Old 06/07/2015, 17:40   #2
 
.Yacki's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 7,443
Received Thanks: 3,656
Taslar'dan sadece +4' olanlar mi var? ^^
_
Nettes Release, sitze an der Übersetzung für euch
.Yacki is offline  
Old 06/07/2015, 17:52   #3
 
elite*gold: 0
Join Date: May 2015
Posts: 25
Received Thanks: 0
very good! but it doesn't work ... I put everything navicat etc., you only see the item: \




this is the sysser

freddyryks is offline  
Old 06/07/2015, 18:19   #4
 
.Yacki's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 7,443
Received Thanks: 3,656
You don't have the right questlib to execute the mysql_query10 command, so the quest is trying to use it as a global variable.


Add this to your questlib:
Code:
mysql_query10 = function(query) 
    if not pre then 
        local rt = io.open('CONFIG','r'):read('*all') 
        pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)  %s(%S+).+','-h%1 -u%2 -p%3 -D%4') 
    end 
    math.randomseed(os.time()) 
    local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2  ^10),{},{} 
    --os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) -- für MySQL51 
    os.execute('mysql '..pre..' -e'..string.format('%q',query)..' > '..fi) -- für MySQL55 
    for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi); 
    for i = 2, table.getn(t) do table.foreach(t[i],function(a,b) 
        out[i-1]               = out[i-1] or {} 
        out[i-1][a]            = tostring(b) or b or 'NULL' 
        out[t[1][a]]           = out[t[1][a]] or {} 
        out[t[1][a]][i-1]      = tostring(b) or b or 'NULL' 
    end) end 
    return out 
end
.Yacki is offline  
Thanks
4 Users
Old 06/07/2015, 18:38   #5
 
elite*gold: 0
Join Date: May 2015
Posts: 25
Received Thanks: 0
Quote:
Originally Posted by .Yacki View Post
You don't have the right questlib to execute the mysql_query10 command, so the quest is trying to use it as a global variable.


Add this to your questlib:
Code:
mysql_query10 = function(query) 
    if not pre then 
        local rt = io.open('CONFIG','r'):read('*all') 
        pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)  %s(%S+).+','-h%1 -u%2 -p%3 -D%4') 
    end 
    math.randomseed(os.time()) 
    local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2  ^10),{},{} 
    --os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) -- für MySQL51 
    os.execute('mysql '..pre..' -e'..string.format('%q',query)..' > '..fi) -- für MySQL55 
    for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi); 
    for i = 2, table.getn(t) do table.foreach(t[i],function(a,b) 
        out[i-1]               = out[i-1] or {} 
        out[i-1][a]            = tostring(b) or b or 'NULL' 
        out[t[1][a]]           = out[t[1][a]] or {} 
        out[t[1][a]][i-1]      = tostring(b) or b or 'NULL' 
    end) end 
    return out 
end

Inserted, but the problem hasn't changed. I enclose my questlib maybe I was wrong


Questlib :


Sysser :

freddyryks is offline  
Old 06/07/2015, 19:01   #6

 
elite*gold: 0
Join Date: Feb 2015
Posts: 858
Received Thanks: 270
Can you make a system like rise of atalia / wom2 etc. have :d With an true offline shop

Would be much cooler haha
#H4x0r is offline  
Old 06/07/2015, 19:05   #7

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
It's more like a auction house which was released a few years ago ...
rollback is offline  
Thanks
1 User
Old 06/07/2015, 19:38   #8
 
thenemne0032's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 19
Received Thanks: 23
Quote:
Originally Posted by freddyryks View Post
Inserted, but the problem hasn't changed. I enclose my questlib maybe I was wrong


Questlib :


Sysser :


Try this
Attached Files
File Type: rar questlib.rar (16.0 KB, 75 views)
thenemne0032 is offline  
Old 06/07/2015, 20:29   #9
 
elite*gold: 0
Join Date: Jun 2015
Posts: 113
Received Thanks: 26
Quote:
Originally Posted by Silizium View Post
Can you make a system like rise of atalia / wom2 etc. have :d With an true offline shop

Would be much cooler haha

Better buy the Version from RoA or/and WoM etc..

@anti_spam: Is not really an offline shopsystem but thanks for your published work
AnTii™ is offline  
Old 06/07/2015, 20:37   #10
 
thenemne0032's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 19
Received Thanks: 23
Add if there are problems:

Skype: bakikaansert
thenemne0032 is offline  
Old 06/07/2015, 21:19   #11
 
.Yacki's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 7,443
Received Thanks: 3,656
German Translation ->


Habe auch noch die +0, +1, +2 und +3 Steine hinzugefügt. Auf dem Server wo es +5 oder höhere Steine gibt, sollten diese noch reineditiert werden.
.Yacki is offline  
Thanks
2 Users
Old 06/07/2015, 21:35   #12
 
MrLibya's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 517
Received Thanks: 339
OMG
I Open The Quest So I see This



Then i delete the quest
MrLibya is offline  
Thanks
1 User
Old 06/07/2015, 22:17   #13
 
elite*gold: 0
Join Date: Jun 2015
Posts: 113
Received Thanks: 26
Quote:
Originally Posted by .Yacki View Post
German Translation ->


Habe auch noch die +0, +1, +2 und +3 Steine hinzugefügt. Auf dem Server wo es +5 oder höhere Steine gibt, sollten diese noch reineditiert werden.
Hast aber den ein oder anderen Satz vergessen zu übersetzen
Zudem ist die Mysql Query alles andere wie Deutsch
AnTii™ is offline  
Old 06/08/2015, 16:04   #14
 
.Yacki's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 7,443
Received Thanks: 3,656
Quote:
Originally Posted by MrLibya View Post
OMG
I Open The Quest So I see This



Then i delete the quest
Yes because its sending the account information to his servers hum?
Can you please explain me, in which line the information is being sent, or any other information is going to be transfered outside the quest?

If you don't know a thing about lua, please don't announce such shitty comments. I red this script and there's no backdoor in it.
Ah and the information up there is to find out which item belongs to which account.


Quote:
Originally Posted by AnTii™ View Post
Hast aber den ein oder anderen Satz vergessen zu übersetzen
Zudem ist die Mysql Query alles andere wie Deutsch
Ja, aber ich wollte nicht auch noch die ganze Datenbank übersetzen und alles ändern in der Quest.

Ja kann sein dass ich den ein oder anderen Satz vergessen habe, aber freut euch doch einfach dass es überhaupt jemand gemacht hat. Das war nämlich nicht so einfach mal kurz alles übersichtliches übersetzen, weil ich schauen musste sogar zwischen den einzelnen Variablen, dass das auch wirklich ein Text ist und nicht nur eine Variable, die Türkisch bleiben muss weil ich sie sonst überall hätte abändern müssen. Dazu kommt noch, dass ich die Bonis übersetzen musste was die größte Drecksarbeit des Jahrhunderts war und na ja..

Edit: So jetzt müsste oben alles übersetzt sein, wenn es noch Sachen gibt die auf Türkisch sind, sagt sie mir einfach, dann kann ich es abändern.
Und dass die ganzen Variablen etc. türkisch bleiben, sollte hoffentlich jedem klar sein. Aber keine Angst, es ist kein Backdoor drin.
.Yacki is offline  
Thanks
2 Users
Old 06/08/2015, 17:43   #15
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,995
Received Thanks: 3,389
Quote:
Originally Posted by .Yacki View Post
Yes because its sending the account information to his servers hum?
Can you please explain me, in which line the information is being sent, or any other information is going to be transfered outside the quest?

If you don't know a thing about lua, please don't announce such shitty comments. I red this script and there's no backdoor in it.
Ah and the information up there is to find out which item belongs to which account.




Ja, aber ich wollte nicht auch noch die ganze Datenbank übersetzen und alles ändern in der Quest.

Ja kann sein dass ich den ein oder anderen Satz vergessen habe, aber freut euch doch einfach dass es überhaupt jemand gemacht hat. Das war nämlich nicht so einfach mal kurz alles übersichtliches übersetzen, weil ich schauen musste sogar zwischen den einzelnen Variablen, dass das auch wirklich ein Text ist und nicht nur eine Variable, die Türkisch bleiben muss weil ich sie sonst überall hätte abändern müssen. Dazu kommt noch, dass ich die Bonis übersetzen musste was die größte Drecksarbeit des Jahrhunderts war und na ja..

Edit: So jetzt müsste oben alles übersetzt sein, wenn es noch Sachen gibt die auf Türkisch sind, sagt sie mir einfach, dann kann ich es abändern.
Und dass die ganzen Variablen etc. türkisch bleiben, sollte hoffentlich jedem klar sein. Aber keine Angst, es ist kein Backdoor drin.
Der Themenersteller castet Strings in Strings und Numbers in Numbers, hierbei beißt sich die Katze in den Schwanz. MrLibya scheint sich nur unheimlich darüber aufgeregt zu haben, von Backdoors ist hier weniger die Rede.

lg
Nick is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Selling] >>10€ - 25€ PSC = Offline + DE Shop<<
05/10/2015 - elite*gold Trading - 12 Replies
Der Shop ist in diesem Moment: Inaktiv Liebe e*gold-Bunker, Ich verkaufe 10€ - 25 € PSCards Offline + DE aus Hamburg. Belege gibt es auf Anfrage (Das fotografieren/scannen ist umständlich also gibt vorher Bescheid) Zu einem Kurs von 1€ zu 70 E*Gold (kz. 1:70)NEW
offline PSC shop
09/22/2012 - elite*gold Trading - 6 Replies
10euro = 440e*g VHB aber Treasures stehen! 10er PSC Treasure Treasure Treasure bitte schreibt wenn ihr sie gekauft habt und gebt TBM ;)
Offline Shop
08/03/2009 - Lineage 2 - 0 Replies
Dont know if anyone of u know about that how to setup a offline shop on serv? Hope i get a answer would be really thankfully =):bandit:



All times are GMT +1. The time now is 03:16.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.